public class ExportDataAnalyzerServiceImpl extends java.lang.Object implements ExportDataAnalyzerService
Constructor and Description |
---|
ExportDataAnalyzerServiceImpl(ExImportHelperService eiHelper,
ReflectionService reflectionService) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttribute(Element el,
java.lang.String attribute)
Returns the
Element s value of the given attribute |
java.util.List<Element> |
getCollectionValueElementsFor(Element el)
Returns the collection value elements for a given
element as a
NodeList |
java.util.List<ItemProperty> |
getCollectionValuesFor(Element el)
|
EnclosedItemProperty |
getEnclosedPropertyFor(Element el)
Returns the
EnclosedItemProperty for the given Element |
EnclosedItemProperty |
getEnclosedPropertyFor(ExportDataProvider dataProvider,
java.lang.String id)
Returns the
EnclosedItemProperty for the exported element identified
by the given ID. |
java.util.Date |
getExportDate(ExportDataProvider dataProvider)
Returns the export
Date of a given Document |
java.lang.String |
getExportDescription(ExportDataProvider dataProvider)
Returns the export description of a given
Document |
ExportedItem |
getExportedItemById(ExportDataProvider dataProvider,
java.lang.String id)
Gets the
ExportedItem identified by the given ID. |
Elements |
getExportedItemElementsFor(ExportDataProvider dataProvider,
java.lang.Class<? extends Exporter> exporter)
|
ExportedItem |
getExportedItemFor(Element el,
ExportDataProvider dataProvider)
Gets the
ExportedItem for the given Element |
java.util.List<ExportedItem> |
getExportedItemsFor(ExportDataProvider dataProvider,
java.lang.Class<? extends Exporter> exporter)
|
ExportedItem |
getExportedItemWithEnclosed(ExportDataProvider dataProvider,
java.lang.String id)
Gets the
ExportedItem identified by the given ID including enclosed
elements. |
java.lang.Class<?> |
getExporterClass(Element el)
Returns the
Class of the exporter of the given Element |
java.util.Collection<java.lang.Class<?>> |
getExporterClasses(ExportDataProvider dataProvider)
Returns a
Collection of exporter Class es of a given
Document |
Elements |
getExporterElements(ExportDataProvider dataProvider)
Returns a
NodeList of exporter elements of a given Document |
java.lang.Class<?> |
getExporterForEnclosed(ExportDataProvider dataProvider,
java.lang.String id)
Gets the
Class of the exporter type used for the enclosed elements of
the Element identified by the given ID. |
java.lang.String |
getExportName(ExportDataProvider dataProvider)
Returns the export name of a given
Document |
java.lang.String |
getItemId(Element el)
Returns the ID attribute of the given
Element |
java.util.Collection<ItemProperty> |
getItemPropertiesFor(Element el)
|
ItemProperty |
getItemPropertyFor(Element el)
Returns the
ItemProperty for the given Element |
java.util.List<Element> |
getItemsPropertyElements(Element el)
Returns the
Element s property elements as a NodeList |
java.lang.String |
getItemType(Element el)
Returns the type attribute of the given
Element |
java.lang.Class<?> |
getItemTypeAsClass(Element el)
Returns the type attribute of the given
Element as a Class |
ExportedItem |
getRoot(ExportDataProvider dataProvider,
java.lang.Class<? extends Exporter> exporter) |
boolean |
hasAttribute(Element el,
java.lang.String attribute)
Checks wether the given
Element has the given attribute or not |
boolean |
isExportedItemElement(Element el)
Checks wether a given
Element is an exported item element or not |
void |
validateExportedItemElement(Element el)
Validates the given exported item
Element |
public ExportDataAnalyzerServiceImpl(ExImportHelperService eiHelper, ReflectionService reflectionService)
public java.lang.String getExportName(ExportDataProvider dataProvider)
ExportDataAnalyzerService
Document
getExportName
in interface ExportDataAnalyzerService
Document
public java.lang.String getExportDescription(ExportDataProvider dataProvider)
ExportDataAnalyzerService
Document
getExportDescription
in interface ExportDataAnalyzerService
Document
public java.util.Date getExportDate(ExportDataProvider dataProvider)
ExportDataAnalyzerService
Date
of a given Document
getExportDate
in interface ExportDataAnalyzerService
Date
public Elements getExporterElements(ExportDataProvider dataProvider)
ExportDataAnalyzerService
NodeList
of exporter elements of a given Document
getExporterElements
in interface ExportDataAnalyzerService
NodeList
of exporter elementspublic java.util.Collection<java.lang.Class<?>> getExporterClasses(ExportDataProvider dataProvider) throws java.lang.ClassNotFoundException
ExportDataAnalyzerService
Collection
of exporter Class
es of a given
Document
getExporterClasses
in interface ExportDataAnalyzerService
Collection
of exporter Class
esjava.lang.ClassNotFoundException
public java.lang.Class<?> getExporterClass(Element el) throws java.lang.ClassNotFoundException
ExportDataAnalyzerService
Class
of the exporter of the given Element
getExporterClass
in interface ExportDataAnalyzerService
el
- The Element
Class
of the exporterjava.lang.ClassNotFoundException
public java.util.List<ExportedItem> getExportedItemsFor(ExportDataProvider dataProvider, java.lang.Class<? extends Exporter> exporter) throws java.lang.ClassNotFoundException
ExportDataAnalyzerService
getExportedItemsFor
in interface ExportDataAnalyzerService
exporter
- The Exporter
to useList
of ExportedItemsjava.lang.ClassNotFoundException
public ExportedItem getExportedItemFor(Element el, ExportDataProvider dataProvider) throws java.lang.ClassNotFoundException
ExportDataAnalyzerService
ExportedItem
for the given Element
getExportedItemFor
in interface ExportDataAnalyzerService
el
- The Element
ExportedItem
java.lang.ClassNotFoundException
public java.util.Collection<ItemProperty> getItemPropertiesFor(Element el) throws java.lang.ClassNotFoundException
ExportDataAnalyzerService
getItemPropertiesFor
in interface ExportDataAnalyzerService
el
- The Element
Collection
of ItemProperty
sjava.lang.ClassNotFoundException
public ItemProperty getItemPropertyFor(Element el) throws java.lang.ClassNotFoundException
ExportDataAnalyzerService
ItemProperty
for the given Element
getItemPropertyFor
in interface ExportDataAnalyzerService
el
- The Element
ItemProperty
java.lang.ClassNotFoundException
public EnclosedItemProperty getEnclosedPropertyFor(Element el) throws java.lang.ClassNotFoundException
ExportDataAnalyzerService
EnclosedItemProperty
for the given Element
getEnclosedPropertyFor
in interface ExportDataAnalyzerService
el
- The Element
EnclosedItemProperty
java.lang.ClassNotFoundException
public java.util.List<ItemProperty> getCollectionValuesFor(Element el) throws java.lang.ClassNotFoundException
ExportDataAnalyzerService
getCollectionValuesFor
in interface ExportDataAnalyzerService
el
- The Element
List
of ItemProperty
sjava.lang.ClassNotFoundException
public java.util.List<Element> getCollectionValueElementsFor(Element el)
ExportDataAnalyzerService
element
as a
NodeList
getCollectionValueElementsFor
in interface ExportDataAnalyzerService
el
- The Element
NodeList
public Elements getExportedItemElementsFor(ExportDataProvider dataProvider, java.lang.Class<? extends Exporter> exporter)
ExportDataAnalyzerService
getExportedItemElementsFor
in interface ExportDataAnalyzerService
public boolean isExportedItemElement(Element el)
ExportDataAnalyzerService
Element
is an exported item element or notisExportedItemElement
in interface ExportDataAnalyzerService
el
- The Element
Element
is an exporter item element; False
otherwisepublic void validateExportedItemElement(Element el)
ExportDataAnalyzerService
Element
validateExportedItemElement
in interface ExportDataAnalyzerService
el
- The exported item Element
public java.lang.String getItemId(Element el)
ExportDataAnalyzerService
Element
getItemId
in interface ExportDataAnalyzerService
el
- The Element
public java.lang.String getItemType(Element el)
ExportDataAnalyzerService
Element
getItemType
in interface ExportDataAnalyzerService
el
- The Element
public java.lang.Class<?> getItemTypeAsClass(Element el) throws java.lang.ClassNotFoundException
ExportDataAnalyzerService
Element
as a Class
getItemTypeAsClass
in interface ExportDataAnalyzerService
el
- The Element
Class
java.lang.ClassNotFoundException
public java.util.List<Element> getItemsPropertyElements(Element el)
ExportDataAnalyzerService
Element
s property elements as a NodeList
getItemsPropertyElements
in interface ExportDataAnalyzerService
el
- The Element
NodeList
public boolean hasAttribute(Element el, java.lang.String attribute)
ExportDataAnalyzerService
Element
has the given attribute or nothasAttribute
in interface ExportDataAnalyzerService
el
- The Element
attribute
- The attributeElement
as the given attribute; False otherwisepublic java.lang.String getAttribute(Element el, java.lang.String attribute)
ExportDataAnalyzerService
Element
s value of the given attributegetAttribute
in interface ExportDataAnalyzerService
el
- The Element
attribute
- The attributepublic ExportedItem getExportedItemById(ExportDataProvider dataProvider, java.lang.String id) throws java.lang.ClassNotFoundException
ExportDataAnalyzerService
ExportedItem
identified by the given ID.getExportedItemById
in interface ExportDataAnalyzerService
id
- The ID of the ExportedItem
ExportedItem
or nulljava.lang.ClassNotFoundException
public ExportedItem getExportedItemWithEnclosed(ExportDataProvider dataProvider, java.lang.String id) throws java.lang.ClassNotFoundException
ExportDataAnalyzerService
ExportedItem
identified by the given ID including enclosed
elements.getExportedItemWithEnclosed
in interface ExportDataAnalyzerService
id
- The ID of the ExportedItem
ExportedItem
including enclosed elements or nulljava.lang.ClassNotFoundException
public java.lang.Class<?> getExporterForEnclosed(ExportDataProvider dataProvider, java.lang.String id) throws java.lang.ClassNotFoundException
ExportDataAnalyzerService
Class
of the exporter type used for the enclosed elements of
the Element
identified by the given ID.getExporterForEnclosed
in interface ExportDataAnalyzerService
id
- The ID of the exported elementClass
of the used exporter type or nulljava.lang.ClassNotFoundException
public EnclosedItemProperty getEnclosedPropertyFor(ExportDataProvider dataProvider, java.lang.String id) throws java.lang.ClassNotFoundException
ExportDataAnalyzerService
EnclosedItemProperty
for the exported element identified
by the given ID.getEnclosedPropertyFor
in interface ExportDataAnalyzerService
id
- The ID of the exported ElementEnclosedItemProperty
of the exported elementjava.lang.ClassNotFoundException
public ExportedItem getRoot(ExportDataProvider dataProvider, java.lang.Class<? extends Exporter> exporter) throws java.lang.ClassNotFoundException
getRoot
in interface ExportDataAnalyzerService
java.lang.ClassNotFoundException