public abstract class MetadataElementLoader extends ConfigElementLoader
Modifier and Type | Field and Description |
---|---|
static String |
ANCHORED_ATTRIBUTE
Anchored attribute.
|
static String |
ARG_ELEMENT
Arg element.
|
static String |
ATTRIBUTE_DEF_ELEMENT
AttributeDef element.
|
static String |
ATTRIBUTE_ELEMENT
Attribute element.
|
static String |
ATTRIBUTES_DEF_ENTITY
AttributesDef entity element.
|
static String |
ATTRIBUTES_ELEMENT
Attributes element.
|
static String |
BEHAVIOR_ENTITY
Behavior entity element.
|
static String |
BEHAVIOR_REFERENCE
Behavior reference.
|
static String |
CLONE_ATTRIBUTE
Clone attribute.
|
static String |
CONTENT_ENTITY
Content entity element.
|
static String |
CONTENT_REFERENCE
Content reference.
|
static String |
CONTROL_ATTRIBUTE
Control attribute.
|
static String |
CONVERT_ATTRIBUTE
Convert attribute.
|
static String |
DESCRIPTION_ATTRIBUTE
Description attribute.
|
static String |
DESCRIPTION_ELEMENT
Description element.
|
static String |
DOMAIN_ATTRIBUTE
Domain attribute.
|
static String |
ELEMENT_ATTRIBUTE
Element attribute.
|
static String |
ENGINE_ENTITY
Engine entity element.
|
static String |
ENGINE_REFERENCE
Engine reference.
|
static String |
GROUP_ENTITY
Group entity element.
|
static String |
GROUP_REFERENCE
Group reference.
|
static String |
HOLDER_ATTRIBUTE
Holder attribute.
|
static String |
IDENT_ATTRIBUTE
Ident attribute.
|
static String |
INPUT_ELEMENT
Input element.
|
static String |
MEMBER_ELEMENT
Member element.
|
static String |
NOTES_ATTRIBUTE
Notes attribute.
|
static String |
NOTES_ELEMENT
Notes element.
|
static String |
ORIGIN_ENTITY
Origin entity element.
|
static String |
ORIGIN_REFERENCE
Origin reference.
|
static String |
OTHER_ELEMENT
Other element.
|
static String |
PARAM_DEF_ENTITY
ParamDef entity element.
|
static String |
PARAM_ELEMENT
Param element.
|
static String |
PERMISSIONS_ELEMENT
Permissions element.
|
static String |
PERMISSIONS_ENTITY
Permissions entity element.
|
static String |
PERMISSIONS_REFERENCE
Permissions reference.
|
static String |
POINT_ENTITY
Point entity element.
|
static String |
POINT_REFERENCE
Point reference.
|
static String |
PROCESSOR_ENTITY
Processor entity element.
|
static String |
PROCESSOR_REFERENCE
Processor reference.
|
static String |
REPLICATE_ELEMENT
Replicate element.
|
static String |
STORE_ENTITY
Store entity element.
|
static String |
STORE_REFERENCE
Store reference.
|
static String |
SYNC_ENTITY
Sync entity element.
|
static String |
SYNC_REFERENCE
Sync reference.
|
static String |
TEXT_ELEMENT
Text element.
|
static String |
TITLE_ATTRIBUTE
Title attribute.
|
static String |
TITLE_ELEMENT
Title element.
|
static String |
TRANSFORM_ENTITY
Transform entity element.
|
static String |
TRANSFORM_REFERENCE
Transform reference.
|
static String |
UNSPECIFIED_CONTENT
Unspecified content.
|
static String |
UNSPECIFIED_ORIGIN
Unspecified origin.
|
static String |
UNSPECIFIED_STORE
Unspecified store.
|
static String |
UNSPECIFIED_TRANSFORM
Unspecified transform.
|
static String |
USAGE_ATTRIBUTE
Usage attribute.
|
ALIAS_ELEMENT, ALLOW_ATTRIBUTE, CACHED_ATTRIBUTE, CLASS_DEF_ENTITY, CLASS_DEF_REFERENCE, CLASS_LIB_ENTITY, CLASS_LIB_REFERENCE, DECRYPT_ATTRIBUTE, DECRYPT_KEY_ELEMENT, DEF_ATTRIBUTE, DENY_ATTRIBUTE, ENV_ATTRIBUTE, EQ_ATTRIBUTE, EXTENDS_ATTRIBUTE, FROM_ATTRIBUTE, HIDDEN_ATTRIBUTE, IMPLEMENTS_ELEMENT, LOCATION_ATTRIBUTE, LOCATION_ELEMENT, MEMBER_ATTRIBUTE, MULTIPLE_ATTRIBUTE, OPTIONAL_ATTRIBUTE, OVERRIDES_ATTRIBUTE, PACKAGE_ATTRIBUTE, PROPERTIES_DEF_ENTITY, PROPERTIES_ELEMENT, PROPERTY_ATTRIBUTE, PROPERTY_DEF_ENTITY, PROPERTY_ELEMENT, REQUIRED_ATTRIBUTE, ROLE_ATTRIBUTE, SECURITY_ATTRIBUTE, SERVICE_ELEMENT, STAMP_ATTRIBUTE, SUPERSEDE_ATTRIBUTE, SYSTEM_ATTRIBUTE, VALIDATED_ATTRIBUTE, VALUE_ATTRIBUTE, VALUE_ELEMENT, VERIFY_ATTRIBUTE, VERIFY_KEY_ELEMENT
Constructor and Description |
---|
MetadataElementLoader() |
Modifier and Type | Method and Description |
---|---|
protected void |
anchorEntity(Entity entity)
Anchors an entity if requested.
|
protected Config |
getConfig()
Gets the config.
|
protected URL |
getContextURL()
Gets the URL for the current context.
|
protected DocumentLoader |
getDocumentLoader()
Gets the document loader.
|
protected DocumentElement |
getElement()
Gets the XML element.
|
protected Entity |
getEntity(String key,
String prefix)
Gets an entity registered to the owner.
|
protected Optional<? extends Entity> |
getEntity(String key,
String prefix,
boolean optional)
Gets an entity registered to the owner.
|
protected Optional<String> |
getLang()
Gets the information texts language.
|
protected Logger |
getLogger()
Gets the logger.
|
protected abstract void |
process()
Processes the entry XML informations.
|
protected void |
putEntity(Entity entity)
Registers an entity to the owner XML document.
|
protected void |
putEntity(Entity entity,
boolean supersede)
Registers an entity to the owner XML document.
|
protected void |
putEntity(String key,
Entity entity)
Registers an entity to the owner XML document.
|
protected void |
removeEntity(String key,
String prefix)
Removes an entity.
|
protected void |
updateTexts()
Updates information texts.
|
public static final String ANCHORED_ATTRIBUTE
public static final String ARG_ELEMENT
public static final String ATTRIBUTES_DEF_ENTITY
public static final String ATTRIBUTES_ELEMENT
public static final String ATTRIBUTE_DEF_ELEMENT
public static final String ATTRIBUTE_ELEMENT
public static final String BEHAVIOR_ENTITY
public static final String BEHAVIOR_REFERENCE
public static final String CLONE_ATTRIBUTE
public static final String CONTENT_ENTITY
public static final String CONTENT_REFERENCE
public static final String CONTROL_ATTRIBUTE
public static final String CONVERT_ATTRIBUTE
public static final String DESCRIPTION_ATTRIBUTE
public static final String DESCRIPTION_ELEMENT
public static final String DOMAIN_ATTRIBUTE
public static final String ELEMENT_ATTRIBUTE
public static final String ENGINE_ENTITY
public static final String ENGINE_REFERENCE
public static final String GROUP_ENTITY
public static final String GROUP_REFERENCE
public static final String HOLDER_ATTRIBUTE
public static final String IDENT_ATTRIBUTE
public static final String INPUT_ELEMENT
public static final String MEMBER_ELEMENT
public static final String NOTES_ATTRIBUTE
public static final String NOTES_ELEMENT
public static final String ORIGIN_ENTITY
public static final String ORIGIN_REFERENCE
public static final String OTHER_ELEMENT
public static final String PARAM_DEF_ENTITY
public static final String PARAM_ELEMENT
public static final String PERMISSIONS_ELEMENT
public static final String PERMISSIONS_ENTITY
public static final String PERMISSIONS_REFERENCE
public static final String POINT_ENTITY
public static final String POINT_REFERENCE
public static final String PROCESSOR_ENTITY
public static final String PROCESSOR_REFERENCE
public static final String REPLICATE_ELEMENT
public static final String STORE_ENTITY
public static final String STORE_REFERENCE
public static final String SYNC_ENTITY
public static final String SYNC_REFERENCE
public static final String TEXT_ELEMENT
public static final String TITLE_ATTRIBUTE
public static final String TITLE_ELEMENT
public static final String TRANSFORM_ENTITY
public static final String TRANSFORM_REFERENCE
public static final String UNSPECIFIED_CONTENT
public static final String UNSPECIFIED_ORIGIN
public static final String UNSPECIFIED_STORE
public static final String UNSPECIFIED_TRANSFORM
public static final String USAGE_ATTRIBUTE
protected void anchorEntity(@Nonnull Entity entity)
entity
- The entity.protected final Optional<String> getLang()
protected final void updateTexts()
@Nonnull @CheckReturnValue protected final Config getConfig()
@Nonnull @CheckReturnValue protected final URL getContextURL()
@Nonnull @CheckReturnValue protected final DocumentLoader getDocumentLoader()
@Nonnull @CheckReturnValue protected final DocumentElement getElement()
@Nonnull @CheckReturnValue protected final Entity getEntity(@Nonnull String key, @Nonnull String prefix) throws ValidationException
Produces a warning if the entity is not present.
key
- The entity key.prefix
- The prefix associated with the entity class.ValidationException
- When appropriate.@Nonnull @CheckReturnValue protected final Optional<? extends Entity> getEntity(@Nonnull String key, @Nonnull String prefix, boolean optional) throws ValidationException
key
- The entity name.prefix
- The prefix associated with the entity class.optional
- True if the entity is optional.ValidationException
- When appropriate.@Nonnull @CheckReturnValue protected final Logger getLogger()
protected abstract void process() throws ValidationException
ValidationException
- When appropriate.protected final void putEntity(@Nonnull Entity entity)
entity
- The entity to be registered.protected final void putEntity(@Nonnull Entity entity, boolean supersede)
entity
- The entity to be registered.supersede
- Allows supersede by name.protected final void putEntity(@Nonnull String key, @Nonnull Entity entity)
key
- The key for the registration.entity
- The entity to be registered.protected final void removeEntity(@Nonnull String key, @Nonnull String prefix)
key
- The entity definition key.prefix
- The key prefix for the entity.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.