Class ImportedObjectList
java.lang.Object
io.jmix.dataimport.extractor.data.ImportedObjectList
Represents an object list in JSON or XML with the following info:
JSON example:
The "items" JSON array represents
- Data field name: for JSON - field name, for XML - tag name
- List of
ImportedObject
s
JSON example:
The "items" JSON array represents
ImportedObjectList
with data field name = "items" and two ImportedObject
s.
[ { "orderNumber": "#001", "orderDate": "12/07/2021", "orderAmount": 100, "items": [ { "productName": "Outback Power Nano-Carbon Battery 12V", "quantity": 4 }, { "productName": "Fullriver Sealed Battery 6V", "quantity": 5 } ] } ]
XML example:
The "items" tag represents ImportedObjectList
with data field name = "items" and two ImportedObject
s.
<orders> <order> <number>#001</number> <amount>50.5</amount> <date>12/02/2021 12:00</date> <items> <item> <productName>Outback Power Nano-Carbon Battery 12V</productName> <quantity>5</quantity> </item> <item> <productName>Fullriver Sealed Battery 6V</productName> <quantity>4</quantity> </item> </items> </order> </orders>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddImportedObject
(ImportedObject importedObject) void
setDataFieldName
(String dataFieldName) void
setImportedObjects
(List<ImportedObject> importedObjects) toString()