public abstract class MetadataEntityExporter extends DefEntityExporter
Modifier | Constructor and Description |
---|---|
protected |
MetadataEntityExporter(ConfigExporter owner,
Class<? extends Entity> entityClass)
Constructs an instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
export(Entity entity,
XMLElement element)
Exports an entity into the supplied element.
|
protected String |
getElementName()
Gets the XML element name.
|
protected Metadata |
getMetadata()
Gets the metadata.
|
protected void |
setAnchored(Entity entity,
XMLElement element)
Sets the anchored attribute if the entity is anchored.
|
export, registerReferences
addExporter, areDeferredSubstitutions, createElement, getConfig, getDocument, getEntity, getOwner, getReference, getRootElement, isWithAttributes, isWithAttributes, isWithTexts, isWithTexts, nextId, reference, registerReference
protected MetadataEntityExporter(ConfigExporter owner, Class<? extends Entity> entityClass)
owner
- The exporter owning this.entityClass
- The class of the entities exported by this.protected void export(Entity entity, XMLElement element)
export
in class DefEntityExporter
entity
- The entity to export.element
- The target element.protected String getElementName()
getElementName
in class XMLExporter
@Nonnull @CheckReturnValue protected final Metadata getMetadata()
protected void setAnchored(@Nonnull Entity entity, @Nonnull XMLElement element)
entity
- The entity.element
- The element.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.