C
- public abstract class ExporterImpl<C extends ExportItemConfig<?>> extends java.lang.Object implements Exporter
Constructor and Description |
---|
ExporterImpl() |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<EnclosedObjectConfig> |
addEnclosed(ExportSupervisor exportSupervisor,
java.util.Collection<ExportItemConfig<?>> configItems) |
java.util.Collection<EnclosedObjectConfig> |
addEnclosed(ExportSupervisor exportSupervisor,
EnclosedObjectConfig enclosedCon) |
java.util.Collection<ExportItemConfig<?>> |
addReferences(ExportSupervisor exportSupervisor,
java.util.Collection<ExportItemConfig<?>> configItems) |
java.util.Collection<ExportItemConfig<?>> |
addReferences(ExportSupervisor exportSupervisor,
EnclosedObjectConfig enclosedCon) |
void |
configure(java.util.Collection<ExporterSpecificExportConfig> specificConfigs,
java.util.Collection<ExportItemConfig<?>> configItems)
Configures the exporter and tells it what items it should export.
|
boolean |
consumes(ExportItemConfig<?> config)
Tells the exportservice whether this exporter can handle the given config
item.
|
boolean |
consumesEnclosedObject(EnclosedObjectConfig config)
Tells the exportservice if this exporter can export the given object.
|
void |
export(ExportSupervisor exportSupervisor)
Starts the export of the given configuration.
|
void |
exportEnclosed(ExportSupervisor supervisor,
EnclosedObjectConfig config)
Exports an enclosed entity.
|
ExportItemConfig<?> |
getConfigFor(java.lang.Object value) |
java.lang.String |
getDisplayNameFor(ExportedItem exportedItem)
Generates a name for the ExportedItem to display to the user
|
boolean |
hasConfigFor(java.lang.Object value) |
void |
setReflectionServices(ReflectionService reflectionServices) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
consumes, generateExportConfig, getExporterId
public void setReflectionServices(ReflectionService reflectionServices)
public boolean consumes(ExportItemConfig<?> config)
Exporter
public final void configure(java.util.Collection<ExporterSpecificExportConfig> specificConfigs, java.util.Collection<ExportItemConfig<?>> configItems)
Exporter
Exporter should throw Exception in case the configuration is invalid.
public final void export(ExportSupervisor exportSupervisor) throws javax.xml.stream.XMLStreamException
Exporter
public boolean consumesEnclosedObject(EnclosedObjectConfig config)
Exporter
This case occurs if an enclosed entity is encountered and the exporter asks the supervisor for help
consumesEnclosedObject
in interface Exporter
public void exportEnclosed(ExportSupervisor supervisor, EnclosedObjectConfig config)
Exporter
exportEnclosed
in interface Exporter
public final java.util.Collection<ExportItemConfig<?>> addReferences(ExportSupervisor exportSupervisor, java.util.Collection<ExportItemConfig<?>> configItems)
addReferences
in interface Exporter
public final java.util.Collection<EnclosedObjectConfig> addEnclosed(ExportSupervisor exportSupervisor, java.util.Collection<ExportItemConfig<?>> configItems)
addEnclosed
in interface Exporter
public java.util.Collection<ExportItemConfig<?>> addReferences(ExportSupervisor exportSupervisor, EnclosedObjectConfig enclosedCon)
addReferences
in interface Exporter
public java.util.Collection<EnclosedObjectConfig> addEnclosed(ExportSupervisor exportSupervisor, EnclosedObjectConfig enclosedCon)
addEnclosed
in interface Exporter
public boolean hasConfigFor(java.lang.Object value)
hasConfigFor
in interface Exporter
public ExportItemConfig<?> getConfigFor(java.lang.Object value)
getConfigFor
in interface Exporter
public java.lang.String getDisplayNameFor(ExportedItem exportedItem)
Exporter
getDisplayNameFor
in interface Exporter