Class XmlDataExtractor
java.lang.Object
io.jmix.dataimport.extractor.data.impl.XmlDataExtractor
- All Implemented Interfaces:
ImportedDataExtractor
@Component("datimp_XmlDataExtractor")
public class XmlDataExtractor
extends Object
implements ImportedDataExtractor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
containsSimpleValues
(org.dom4j.Element element) protected ImportedDataItem
createImportedDataItem
(org.dom4j.Element parentElement, int itemIndex) protected ImportedObject
createImportedObject
(org.dom4j.Element parentElement) protected ImportedObjectList
createImportedObjectList
(List<org.dom4j.Element> elements) extract
(ImportConfiguration importConfiguration, byte[] inputData) Parses input data specified as a byte array and creates an instance ofImportedData
.extract
(ImportConfiguration importConfiguration, InputStream inputStream) Parses input data specified as input stream and creates an instance ofImportedData
.protected ImportedData
getImportedData
(org.dom4j.Document document) groupElementsByTag
(org.dom4j.Element parentElement) protected void
readRawValues
(org.dom4j.Element parentElement, RawValuesSource rawValuesSource)
-
Constructor Details
-
XmlDataExtractor
public XmlDataExtractor()
-
-
Method Details
-
extract
Description copied from interface:ImportedDataExtractor
Parses input data specified as input stream and creates an instance ofImportedData
.- Specified by:
extract
in interfaceImportedDataExtractor
- Parameters:
importConfiguration
- import configurationinputStream
- input data- Returns:
- an instance of
ImportedData
containing list ofImportedDataItem
with raw values for entity properties
-
extract
Description copied from interface:ImportedDataExtractor
Parses input data specified as a byte array and creates an instance ofImportedData
.- Specified by:
extract
in interfaceImportedDataExtractor
- Parameters:
importConfiguration
- import configurationinputData
- input data- Returns:
- an instance of
ImportedData
containing list ofImportedDataItem
with raw values for entity properties
-
getSupportedDataFormat
- Specified by:
getSupportedDataFormat
in interfaceImportedDataExtractor
- Returns:
- supported format of input data
-
getImportedData
-
createImportedDataItem
-
createImportedObject
-
readRawValues
-
containsSimpleValues
protected boolean containsSimpleValues(org.dom4j.Element element) -
createImportedObjectList
-
groupElementsByTag
-