Class ImportedObjectList

java.lang.Object
io.jmix.dataimport.extractor.data.ImportedObjectList

public class ImportedObjectList extends Object
Represents an object list in JSON or XML with the following info:
  • Data field name: for JSON - field name, for XML - tag name
  • List of ImportedObjects

JSON example:
The "items" JSON array represents ImportedObjectList with data field name = "items" and two ImportedObjects.
 [
   {
     "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 ImportedObjects.

 <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 Details

  • Constructor Details

    • ImportedObjectList

      public ImportedObjectList()
  • Method Details