public final class MetadataDocumentLoader extends ConfigDocumentLoader
| Modifier and Type | Class and Description |
|---|---|
protected class |
MetadataDocumentLoader.MetadataHandler
MetadataHandler.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_PATH
Default source of metadata XML text.
|
static String |
METADATA_PROPERTIES
Properties holding the metadata configuration.
|
static String |
METADATA_ROOT
Root element of metadata XML text.
|
static String |
PATH_PROPERTY
Property holding the path to the metadata XML text.
|
CONFIG_PROPERTY, CONFIG_ROOT, DEFAULT_CONFIG, DOCTYPE_STRINGS, VALIDATION_DISABLED_PROPERTY, VALIDATION_ENABLED_PROPERTYID_PATTERN, ID_PREFIX| Modifier and Type | Method and Description |
|---|---|
static Metadata |
fetchMetadata(MetadataFilter filter,
Optional<Config> config,
Optional<UUID> uuid,
Optional<String> from)
Fetches the Metadata.
|
protected DocumentLoader.RootHandler |
getRootHandler()
Gets a root handler.
|
protected URL |
getURL()
Gets the URL for this document.
|
protected boolean |
loadFrom(String from,
Optional<Reader> reader)
Loads this document from the specified location with a supplied reader.
|
protected boolean |
read(String xml)
Reads the document from an XML string.
|
getRootName, loadConfig, propertyChange, setURLaddPrefixNames, getEntity, getPrefixName, getThisLogger, handle, newXMLElement, setEntities, setSubstitutionDeferred, setSubstitutionEnabled, setValidatingpublic static final String DEFAULT_PATH
public static final String METADATA_PROPERTIES
public static final String METADATA_ROOT
public static final String PATH_PROPERTY
@Nullable @CheckReturnValue public static Metadata fetchMetadata(@Nonnull MetadataFilter filter, @Nonnull Optional<Config> config, @Nonnull Optional<UUID> uuid, @Nonnull Optional<String> from)
filter - A metadata filter.config - The optional config.uuid - The optional UUID for the metadata cache.from - The optional location to load from.protected DocumentLoader.RootHandler getRootHandler()
getRootHandler in class ConfigDocumentLoaderprotected URL getURL()
getURL in class ConfigDocumentLoaderprotected boolean loadFrom(String from,
Optional<Reader> reader)
loadFrom in class ConfigDocumentLoaderfrom - The location to load from.reader - The optional reader.protected boolean read(String xml)
read in class ConfigDocumentLoaderxml - The XML string.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.