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
Elements 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<? extends Exporter> |
getExporterClass(Element el)
Returns the
Class of the exporter of the given Element |
java.util.Collection<java.lang.Class<? extends Exporter>> |
getExporterClasses(ExportDataProvider dataProvider)
Returns a
Collection of exporter Classes 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
Elements 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)
ExportDataAnalyzerServiceDocumentgetExportName in interface ExportDataAnalyzerServiceDocumentpublic java.lang.String getExportDescription(ExportDataProvider dataProvider)
ExportDataAnalyzerServiceDocumentgetExportDescription in interface ExportDataAnalyzerServiceDocumentpublic java.util.Date getExportDate(ExportDataProvider dataProvider)
ExportDataAnalyzerServiceDate of a given DocumentgetExportDate in interface ExportDataAnalyzerServiceDatepublic Elements getExporterElements(ExportDataProvider dataProvider)
ExportDataAnalyzerServiceNodeList of exporter elements of a given DocumentgetExporterElements in interface ExportDataAnalyzerServiceNodeList of exporter elementspublic java.util.Collection<java.lang.Class<? extends Exporter>> getExporterClasses(ExportDataProvider dataProvider) throws java.lang.ClassNotFoundException
ExportDataAnalyzerServiceCollection of exporter Classes of a given
DocumentgetExporterClasses in interface ExportDataAnalyzerServiceCollection of exporter Classesjava.lang.ClassNotFoundExceptionpublic java.lang.Class<? extends Exporter> getExporterClass(Element el) throws java.lang.ClassNotFoundException
ExportDataAnalyzerServiceClass of the exporter of the given ElementgetExporterClass in interface ExportDataAnalyzerServiceel - The ElementClass of the exporterjava.lang.ClassNotFoundExceptionpublic java.util.List<ExportedItem> getExportedItemsFor(ExportDataProvider dataProvider, java.lang.Class<? extends Exporter> exporter) throws java.lang.ClassNotFoundException
ExportDataAnalyzerServicegetExportedItemsFor in interface ExportDataAnalyzerServiceexporter - The Exporter to useList of ExportedItemsjava.lang.ClassNotFoundExceptionpublic ExportedItem getExportedItemFor(Element el, ExportDataProvider dataProvider) throws java.lang.ClassNotFoundException
ExportDataAnalyzerServiceExportedItem for the given ElementgetExportedItemFor in interface ExportDataAnalyzerServiceel - The ElementExportedItemjava.lang.ClassNotFoundExceptionpublic java.util.Collection<ItemProperty> getItemPropertiesFor(Element el) throws java.lang.ClassNotFoundException
ExportDataAnalyzerServicegetItemPropertiesFor in interface ExportDataAnalyzerServiceel - The ElementCollection of ItemPropertysjava.lang.ClassNotFoundExceptionpublic ItemProperty getItemPropertyFor(Element el) throws java.lang.ClassNotFoundException
ExportDataAnalyzerServiceItemProperty for the given ElementgetItemPropertyFor in interface ExportDataAnalyzerServiceel - The ElementItemPropertyjava.lang.ClassNotFoundExceptionpublic EnclosedItemProperty getEnclosedPropertyFor(Element el) throws java.lang.ClassNotFoundException
ExportDataAnalyzerServiceEnclosedItemProperty for the given ElementgetEnclosedPropertyFor in interface ExportDataAnalyzerServiceel - The ElementEnclosedItemPropertyjava.lang.ClassNotFoundExceptionpublic java.util.List<ItemProperty> getCollectionValuesFor(Element el) throws java.lang.ClassNotFoundException
ExportDataAnalyzerServicegetCollectionValuesFor in interface ExportDataAnalyzerServiceel - The ElementList of ItemPropertysjava.lang.ClassNotFoundExceptionpublic java.util.List<Element> getCollectionValueElementsFor(Element el)
ExportDataAnalyzerServiceelement as a
NodeListgetCollectionValueElementsFor in interface ExportDataAnalyzerServiceel - The ElementNodeListpublic Elements getExportedItemElementsFor(ExportDataProvider dataProvider, java.lang.Class<? extends Exporter> exporter)
ExportDataAnalyzerServicegetExportedItemElementsFor in interface ExportDataAnalyzerServicepublic boolean isExportedItemElement(Element el)
ExportDataAnalyzerServiceElement is an exported item element or notisExportedItemElement in interface ExportDataAnalyzerServiceel - The ElementElement is an exporter item element; False
otherwisepublic void validateExportedItemElement(Element el)
ExportDataAnalyzerServiceElementvalidateExportedItemElement in interface ExportDataAnalyzerServiceel - The exported item Elementpublic java.lang.String getItemId(Element el)
ExportDataAnalyzerServiceElementgetItemId in interface ExportDataAnalyzerServiceel - The Elementpublic java.lang.String getItemType(Element el)
ExportDataAnalyzerServiceElementgetItemType in interface ExportDataAnalyzerServiceel - The Elementpublic java.lang.Class<?> getItemTypeAsClass(Element el)
throws java.lang.ClassNotFoundException
ExportDataAnalyzerServiceElement as a ClassgetItemTypeAsClass in interface ExportDataAnalyzerServiceel - The ElementClassjava.lang.ClassNotFoundExceptionpublic java.util.List<Element> getItemsPropertyElements(Element el)
ExportDataAnalyzerServiceElements property elements as a NodeListgetItemsPropertyElements in interface ExportDataAnalyzerServiceel - The ElementNodeListpublic boolean hasAttribute(Element el,
java.lang.String attribute)
ExportDataAnalyzerServiceElement has the given attribute or nothasAttribute in interface ExportDataAnalyzerServiceel - The Elementattribute - The attributeElement as the given attribute; False otherwisepublic java.lang.String getAttribute(Element el,
java.lang.String attribute)
ExportDataAnalyzerServiceElements value of the given attributegetAttribute in interface ExportDataAnalyzerServiceel - The Elementattribute - The attributepublic ExportedItem getExportedItemById(ExportDataProvider dataProvider, java.lang.String id) throws java.lang.ClassNotFoundException
ExportDataAnalyzerServiceExportedItem identified by the given ID.getExportedItemById in interface ExportDataAnalyzerServiceid - The ID of the ExportedItemExportedItem or nulljava.lang.ClassNotFoundExceptionpublic ExportedItem getExportedItemWithEnclosed(ExportDataProvider dataProvider, java.lang.String id) throws java.lang.ClassNotFoundException
ExportDataAnalyzerServiceExportedItem identified by the given ID including enclosed
elements.getExportedItemWithEnclosed in interface ExportDataAnalyzerServiceid - The ID of the ExportedItemExportedItem including enclosed elements or nulljava.lang.ClassNotFoundExceptionpublic java.lang.Class<?> getExporterForEnclosed(ExportDataProvider dataProvider, java.lang.String id) throws java.lang.ClassNotFoundException
ExportDataAnalyzerServiceClass of the exporter type used for the enclosed elements of
the Element identified by the given ID.getExporterForEnclosed in interface ExportDataAnalyzerServiceid - The ID of the exported elementClass of the used exporter type or nulljava.lang.ClassNotFoundExceptionpublic EnclosedItemProperty getEnclosedPropertyFor(ExportDataProvider dataProvider, java.lang.String id) throws java.lang.ClassNotFoundException
ExportDataAnalyzerServiceEnclosedItemProperty for the exported element identified
by the given ID.getEnclosedPropertyFor in interface ExportDataAnalyzerServiceid - The ID of the exported ElementEnclosedItemProperty of the exported elementjava.lang.ClassNotFoundExceptionpublic ExportedItem getRoot(ExportDataProvider dataProvider, java.lang.Class<? extends Exporter> exporter) throws java.lang.ClassNotFoundException
getRoot in interface ExportDataAnalyzerServicejava.lang.ClassNotFoundException