public class ExportSupervisor
extends java.lang.Object
Constructor and Description |
---|
ExportSupervisor(ExImportIdService idService,
ExImportHelperService eiHelper,
ReflectionService reflectionServices,
ExportConfig config,
java.util.List<Exporter> exporters,
javax.xml.stream.XMLStreamWriter xsw) |
Modifier and Type | Method and Description |
---|---|
void |
addIdAttributeToBaseElement(java.lang.String toExportId) |
void |
addReferenceTo(java.lang.Object value) |
void |
addReferenceTo(java.lang.Object value,
boolean optional) |
void |
beginElement(java.lang.String name) |
void |
beginExporterElement(Exporter exporter) |
void |
beginPropertyCollectionElement(java.lang.reflect.Field field) |
void |
beginPropertyCollectionElement(java.lang.String propertyName,
java.lang.Class<?> propertyType,
java.lang.Class<? extends java.util.Collection> collectionType) |
void |
beginPropertyElement(java.lang.reflect.Field field,
java.lang.Object value) |
void |
beginPropertyElement(java.lang.String propertyName,
java.lang.Class<?> propertyType) |
void |
beginSimpleCollectionValueElement(java.lang.Object value) |
boolean |
canBeReferenced(java.lang.Object object) |
void |
createCDataElement(java.lang.String data) |
void |
createPropertyElement(java.lang.reflect.Field field,
java.lang.Object value) |
void |
createPropertyElement(java.lang.String propertyName,
java.lang.Class<?> propertyType,
java.lang.Object value) |
void |
createSimpleCollectionValueElement(java.lang.Object value) |
void |
endElement() |
void |
export() |
void |
exportEnclosedObject(java.lang.Object enclosed) |
EnclosedObjectConfig |
getNewEnclosedConfigFor(java.lang.Object enclosed) |
ExportItemConfig<?> |
getNewExportConfigFor(java.lang.Object object) |
java.lang.String |
getReferenceId(java.lang.Object value) |
javax.xml.stream.XMLStreamWriter |
getXmlStream() |
boolean |
hasEncounteredId(java.lang.String id) |
public ExportSupervisor(ExImportIdService idService, ExImportHelperService eiHelper, ReflectionService reflectionServices, ExportConfig config, java.util.List<Exporter> exporters, javax.xml.stream.XMLStreamWriter xsw)
public void export() throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public void beginExporterElement(Exporter exporter) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public void beginElement(java.lang.String name) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public void endElement() throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public java.lang.String getReferenceId(java.lang.Object value)
public boolean hasEncounteredId(java.lang.String id)
public ExportItemConfig<?> getNewExportConfigFor(java.lang.Object object)
public void exportEnclosedObject(java.lang.Object enclosed) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public EnclosedObjectConfig getNewEnclosedConfigFor(java.lang.Object enclosed)
public void beginSimpleCollectionValueElement(java.lang.Object value) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public void createSimpleCollectionValueElement(java.lang.Object value) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public void beginPropertyElement(java.lang.reflect.Field field, java.lang.Object value) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public void beginPropertyElement(java.lang.String propertyName, java.lang.Class<?> propertyType) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public void createPropertyElement(java.lang.reflect.Field field, java.lang.Object value) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public void createPropertyElement(java.lang.String propertyName, java.lang.Class<?> propertyType, java.lang.Object value) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public void beginPropertyCollectionElement(java.lang.reflect.Field field) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public void beginPropertyCollectionElement(java.lang.String propertyName, java.lang.Class<?> propertyType, java.lang.Class<? extends java.util.Collection> collectionType) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public void addReferenceTo(java.lang.Object value) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public void addReferenceTo(java.lang.Object value, boolean optional) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public boolean canBeReferenced(java.lang.Object object)
public void createCDataElement(java.lang.String data) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public void addIdAttributeToBaseElement(java.lang.String toExportId) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public javax.xml.stream.XMLStreamWriter getXmlStream()