public abstract class EntityExporter extends XMLExporter
| Modifier | Constructor and Description |
|---|---|
protected |
EntityExporter(ConfigExporter owner,
Class<? extends Entity> entityClass)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
export()
Exports its entities as elements of the root.
|
protected abstract void |
export(Entity entity,
XMLElement element)
Exports an entity into the supplied element.
|
protected void |
registerReferences(Entity entity)
Registers the entity's references.
|
addExporter, areDeferredSubstitutions, createElement, getConfig, getDocument, getElementName, getEntity, getOwner, getReference, getRootElement, isWithAttributes, isWithAttributes, isWithTexts, isWithTexts, nextId, reference, registerReferenceprotected EntityExporter(@Nonnull
ConfigExporter owner,
@Nonnull
Class<? extends Entity> entityClass)
owner - The exporter owning this.entityClass - The Class of the entities exported by this.protected final void export()
protected abstract void export(@Nonnull
Entity entity,
@Nonnull
XMLElement element)
entity - The entity to export.element - The target element.protected void registerReferences(@Nonnull
Entity entity)
entity - The entity holding the references.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.