Class ImportedObject
java.lang.Object
io.jmix.dataimport.extractor.data.ImportedObject
- All Implemented Interfaces:
- RawValuesSource
Represents an object in JSON or XML with the following info:
 
JSON example:
The "customer" object represents
- Data field name: for JSON - field name, for XML - tag name
- Raw values map: for JSON - raw values of JSON object fields by field names, for XML: values of child tags by tag names
JSON example:
The "customer" object represents
ImportedObject with data field name = "customer" and two raw values: "name" and "email".
 
 [
   {
     "orderNumber": "#001",
     "orderDate": "12/07/2021",
     "orderAmount": 100,
     "customer": {
       "name": "Shelby Robinson",
       "email": "robinson@mail.com"
     }
   }
 ]
 
 
 XML example:
 
 The "customer" tag represents ImportedObject with data field name = "customer" and two raw values: "name" and "email".
 
 <orders>
     <order>
         <number>#001</number>
         <amount>50.5</amount>
         <date>12/02/2021 12:00</date>
         <customer>
             <name>Parker Leighton</name>
             <email>leighton@mail.com</email>
         </customer>
     </order>
 </orders>
 - 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaddRawValue(String dataFieldName, Object value) Adds a raw value of specified data fieldgetRawValue(String dataFieldName) Gets a raw value of the specified data fieldvoidsetDataFieldName(String dataFieldName) voidsetRawValues(Map<String, Object> rawValues) Sets a map containing raw values of data fields.toString()
- 
Field Details- 
dataFieldName
- 
rawValues
 
- 
- 
Constructor Details- 
ImportedObjectpublic ImportedObject()
 
- 
- 
Method Details- 
getRawValues- Specified by:
- getRawValuesin interface- RawValuesSource
- Returns:
- map that contains raw values by data field names
 
- 
setRawValuesDescription copied from interface:RawValuesSourceSets a map containing raw values of data fields.- Specified by:
- setRawValuesin interface- RawValuesSource
- Parameters:
- rawValues- map with raw values
 
- 
getDataFieldName
- 
setDataFieldName
- 
addRawValueDescription copied from interface:RawValuesSourceAdds a raw value of specified data field- Specified by:
- addRawValuein interface- RawValuesSource
- Parameters:
- dataFieldName- data field name
- value- raw value
- Returns:
- current instance of raw values source
 
- 
getRawValueDescription copied from interface:RawValuesSourceGets a raw value of the specified data field- Specified by:
- getRawValuein interface- RawValuesSource
- Parameters:
- dataFieldName- data field name
- Returns:
- extracted raw value
 
- 
toString
 
-