Package net.datenwerke.eximport
Class ExportDataAnalyzerServiceImpl
java.lang.Object
net.datenwerke.eximport.ExportDataAnalyzerServiceImpl
- All Implemented Interfaces:
ExportDataAnalyzerService
-
Constructor Summary
ConstructorsConstructorDescriptionExportDataAnalyzerServiceImpl(ExImportHelperService eiHelper, ReflectionService reflectionService) -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(Element el, String attribute) Returns thes value of the given attributeinvalid reference
ElementList<Element> getCollectionValueElementsFor(Element el) Returns the collection value elements for a givenas ainvalid reference
elementNodeListgetCollectionValuesFor(Element el) getEnclosedPropertyFor(Element el) Returns theEnclosedItemPropertyfor the giveninvalid reference
ElementgetEnclosedPropertyFor(ExportDataProvider dataProvider, String id) Returns theEnclosedItemPropertyfor the exported element identified by the given ID.getExportDate(ExportDataProvider dataProvider) Returns the exportDateof a giveninvalid reference
DocumentgetExportDescription(ExportDataProvider dataProvider) Returns the export description of a giveninvalid reference
DocumentgetExportedItemById(ExportDataProvider dataProvider, String id) Gets theExportedItemidentified by the given ID.ElementsgetExportedItemElementsFor(ExportDataProvider dataProvider, Class<? extends Exporter> exporter) getExportedItemFor(Element el, ExportDataProvider dataProvider) Gets theExportedItemfor the giveninvalid reference
ElementgetExportedItemsFor(ExportDataProvider dataProvider, Class<? extends Exporter> exporter) getExportedItemWithEnclosed(ExportDataProvider dataProvider, String id) Gets theExportedItemidentified by the given ID including enclosed elements.getExporterClass(Element el) Returns theClassof the exporter of the giveninvalid reference
ElementCollection<Class<? extends Exporter>> getExporterClasses(ExportDataProvider dataProvider) ElementsgetExporterElements(ExportDataProvider dataProvider) Returns aNodeListof exporter elements of a giveninvalid reference
DocumentClass<?> getExporterForEnclosed(ExportDataProvider dataProvider, String id) Gets theClassof the exporter type used for the enclosed elements of theidentified by the given ID.invalid reference
ElementgetExportName(ExportDataProvider dataProvider) Returns the export name of a giveninvalid reference
DocumentgetItemId(Element el) Returns the ID attribute of the giveninvalid reference
ElementgetItemPropertiesFor(Element el) getItemPropertyFor(Element el) Returns theItemPropertyfor the giveninvalid reference
ElementList<Element> getItemsPropertyElements(Element el) Returns thes property elements as ainvalid reference
ElementNodeListgetItemType(Element el) Returns the type attribute of the giveninvalid reference
ElementClass<?> getItemTypeAsClass(Element el) Returns the type attribute of the givenas ainvalid reference
ElementClassgetRoot(ExportDataProvider dataProvider, Class<? extends Exporter> exporter) booleanhasAttribute(Element el, String attribute) Checks wether the givenhas the given attribute or notinvalid reference
ElementbooleanisExportedItemElement(Element el) Checks wether a givenis an exported item element or notinvalid reference
ElementvoidvalidateExportedItemElement(Element el) Validates the given exported iteminvalid reference
Element
-
Constructor Details
-
ExportDataAnalyzerServiceImpl
public ExportDataAnalyzerServiceImpl(ExImportHelperService eiHelper, ReflectionService reflectionService)
-
-
Method Details
-
getExportName
Description copied from interface:ExportDataAnalyzerServiceReturns the export name of a giveninvalid reference
Document- Specified by:
getExportNamein interfaceExportDataAnalyzerService- Returns:
- The export name of the
invalid reference
Document
-
getExportDescription
Description copied from interface:ExportDataAnalyzerServiceReturns the export description of a giveninvalid reference
Document- Specified by:
getExportDescriptionin interfaceExportDataAnalyzerService- Returns:
- The export description of the
invalid reference
Document
-
getExportDate
Description copied from interface:ExportDataAnalyzerServiceReturns the exportDateof a giveninvalid reference
Document- Specified by:
getExportDatein interfaceExportDataAnalyzerService- Returns:
- The export
Date
-
getExporterElements
Description copied from interface:ExportDataAnalyzerServiceReturns aNodeListof exporter elements of a giveninvalid reference
Document- Specified by:
getExporterElementsin interfaceExportDataAnalyzerService- Returns:
- A
NodeListof exporter elements
-
getExporterClasses
public Collection<Class<? extends Exporter>> getExporterClasses(ExportDataProvider dataProvider) throws ClassNotFoundException Description copied from interface:ExportDataAnalyzerService- Specified by:
getExporterClassesin interfaceExportDataAnalyzerService- Returns:
- A
Collectionof exporterClasses - Throws:
ClassNotFoundException
-
getExporterClass
Description copied from interface:ExportDataAnalyzerServiceReturns theClassof the exporter of the giveninvalid reference
Element- Specified by:
getExporterClassin interfaceExportDataAnalyzerService- Parameters:
el- Theinvalid reference
Element- Returns:
- The
Classof the exporter - Throws:
ClassNotFoundException
-
getExportedItemsFor
public List<ExportedItem> getExportedItemsFor(ExportDataProvider dataProvider, Class<? extends Exporter> exporter) throws ClassNotFoundException Description copied from interface:ExportDataAnalyzerService- Specified by:
getExportedItemsForin interfaceExportDataAnalyzerService- Parameters:
exporter- TheExporterto use- Returns:
- A
Listof ExportedItems - Throws:
ClassNotFoundException
-
getExportedItemFor
public ExportedItem getExportedItemFor(Element el, ExportDataProvider dataProvider) throws ClassNotFoundException Description copied from interface:ExportDataAnalyzerServiceGets theExportedItemfor the giveninvalid reference
Element- Specified by:
getExportedItemForin interfaceExportDataAnalyzerService- Parameters:
el- Theinvalid reference
ElementdataProvider-- Returns:
- The
ExportedItem - Throws:
ClassNotFoundException
-
getItemPropertiesFor
Description copied from interface:ExportDataAnalyzerService- Specified by:
getItemPropertiesForin interfaceExportDataAnalyzerService- Parameters:
el- Theinvalid reference
Element- Returns:
- A
CollectionofItemPropertys - Throws:
ClassNotFoundException
-
getItemPropertyFor
Description copied from interface:ExportDataAnalyzerServiceReturns theItemPropertyfor the giveninvalid reference
Element- Specified by:
getItemPropertyForin interfaceExportDataAnalyzerService- Parameters:
el- Theinvalid reference
Element- Returns:
- The
ItemProperty - Throws:
ClassNotFoundException
-
getEnclosedPropertyFor
Description copied from interface:ExportDataAnalyzerServiceReturns theEnclosedItemPropertyfor the giveninvalid reference
Element- Specified by:
getEnclosedPropertyForin interfaceExportDataAnalyzerService- Parameters:
el- Theinvalid reference
Element- Returns:
- The
EnclosedItemProperty - Throws:
ClassNotFoundException
-
getCollectionValuesFor
Description copied from interface:ExportDataAnalyzerService- Specified by:
getCollectionValuesForin interfaceExportDataAnalyzerService- Parameters:
el- Theinvalid reference
Element- Returns:
- A
ListofItemPropertys - Throws:
ClassNotFoundException
-
getCollectionValueElementsFor
Description copied from interface:ExportDataAnalyzerServiceReturns the collection value elements for a givenas ainvalid reference
elementNodeList- Specified by:
getCollectionValueElementsForin interfaceExportDataAnalyzerService- Parameters:
el- Theinvalid reference
Element- Returns:
- The collection value elements as a
NodeList
-
getExportedItemElementsFor
public Elements getExportedItemElementsFor(ExportDataProvider dataProvider, Class<? extends Exporter> exporter) Description copied from interface:ExportDataAnalyzerServiceReturns the exported item elements for awith a giveninvalid reference
DocumentExporteras aNodeList- Specified by:
getExportedItemElementsForin interfaceExportDataAnalyzerService
-
isExportedItemElement
public boolean isExportedItemElement(Element el) Description copied from interface:ExportDataAnalyzerServiceChecks wether a givenis an exported item element or notinvalid reference
Element- Specified by:
isExportedItemElementin interfaceExportDataAnalyzerService- Parameters:
el- Theinvalid reference
Element- Returns:
- True if the
is an exporter item element; False otherwise
invalid reference
Element
-
validateExportedItemElement
public void validateExportedItemElement(Element el) Description copied from interface:ExportDataAnalyzerServiceValidates the given exported iteminvalid reference
Element- Specified by:
validateExportedItemElementin interfaceExportDataAnalyzerService- Parameters:
el- The exported iteminvalid reference
Element
-
getItemId
Description copied from interface:ExportDataAnalyzerServiceReturns the ID attribute of the giveninvalid reference
Element- Specified by:
getItemIdin interfaceExportDataAnalyzerService- Parameters:
el- Theinvalid reference
Element- Returns:
- The ID attribute
-
getItemType
Description copied from interface:ExportDataAnalyzerServiceReturns the type attribute of the giveninvalid reference
Element- Specified by:
getItemTypein interfaceExportDataAnalyzerService- Parameters:
el- Theinvalid reference
Element- Returns:
- The type attribute
-
getItemTypeAsClass
Description copied from interface:ExportDataAnalyzerServiceReturns the type attribute of the givenas ainvalid reference
ElementClass- Specified by:
getItemTypeAsClassin interfaceExportDataAnalyzerService- Parameters:
el- Theinvalid reference
Element- Returns:
- The type attribute as a
Class - Throws:
ClassNotFoundException
-
getItemsPropertyElements
Description copied from interface:ExportDataAnalyzerServiceReturns thes property elements as ainvalid reference
ElementNodeList- Specified by:
getItemsPropertyElementsin interfaceExportDataAnalyzerService- Parameters:
el- Theinvalid reference
Element- Returns:
- The property elements as a
NodeList
-
hasAttribute
Description copied from interface:ExportDataAnalyzerServiceChecks wether the givenhas the given attribute or notinvalid reference
Element- Specified by:
hasAttributein interfaceExportDataAnalyzerService- Parameters:
el- Theinvalid reference
Elementattribute- The attribute- Returns:
- True if the
as the given attribute; False otherwise
invalid reference
Element
-
getAttribute
Description copied from interface:ExportDataAnalyzerServiceReturns thes value of the given attributeinvalid reference
Element- Specified by:
getAttributein interfaceExportDataAnalyzerService- Parameters:
el- Theinvalid reference
Elementattribute- The attribute- Returns:
- The value of the given attribute
-
getExportedItemById
public ExportedItem getExportedItemById(ExportDataProvider dataProvider, String id) throws ClassNotFoundException Description copied from interface:ExportDataAnalyzerServiceGets theExportedItemidentified by the given ID.- Specified by:
getExportedItemByIdin interfaceExportDataAnalyzerService- Parameters:
id- The ID of theExportedItem- Returns:
- The
ExportedItemor null - Throws:
ClassNotFoundException
-
getExportedItemWithEnclosed
public ExportedItem getExportedItemWithEnclosed(ExportDataProvider dataProvider, String id) throws ClassNotFoundException Description copied from interface:ExportDataAnalyzerServiceGets theExportedItemidentified by the given ID including enclosed elements.- Specified by:
getExportedItemWithEnclosedin interfaceExportDataAnalyzerService- Parameters:
id- The ID of theExportedItem- Returns:
- The
ExportedItemincluding enclosed elements or null - Throws:
ClassNotFoundException
-
getExporterForEnclosed
public Class<?> getExporterForEnclosed(ExportDataProvider dataProvider, String id) throws ClassNotFoundException Description copied from interface:ExportDataAnalyzerServiceGets theClassof the exporter type used for the enclosed elements of theidentified by the given ID.invalid reference
Element- Specified by:
getExporterForEnclosedin interfaceExportDataAnalyzerService- Parameters:
id- The ID of the exported element- Returns:
- The
Classof the used exporter type or null - Throws:
ClassNotFoundException
-
getEnclosedPropertyFor
public EnclosedItemProperty getEnclosedPropertyFor(ExportDataProvider dataProvider, String id) throws ClassNotFoundException Description copied from interface:ExportDataAnalyzerServiceReturns theEnclosedItemPropertyfor the exported element identified by the given ID.- Specified by:
getEnclosedPropertyForin interfaceExportDataAnalyzerService- Parameters:
id- The ID of the exported Element- Returns:
- The
EnclosedItemPropertyof the exported element - Throws:
ClassNotFoundException
-
getRoot
public ExportedItem getRoot(ExportDataProvider dataProvider, Class<? extends Exporter> exporter) throws ClassNotFoundException - Specified by:
getRootin interfaceExportDataAnalyzerService- Throws:
ClassNotFoundException
-