Class ImportedDataItem
java.lang.Object
io.jmix.dataimport.extractor.data.ImportedDataItem
- All Implemented Interfaces:
- RawValuesSource
Represents a source of raw values for properties for one entity to import.
 
Contains the following info:
Contains the following info:
- Item index:
     - CSV, XLSX - row number;
- JSON - index of JSON object in the object array;
- XML - sequential number of XML child element in the root element.
 
- Raw values map:
     - CSV, XLSX - string cell values by column names;
- JSON - field values by field names. As a field value can be: string (for all simple fields), ImportedObjectorImportedObjectList;
- XML - tag value by tag names. As a tag value can be: string (for tags without child tags), ImportedObjectorImportedObjectList.
 
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaddRawValue(String dataFieldName, Object value) Adds a raw value of specified data fieldintgetRawValue(String dataFieldName) Gets a raw value of the specified data fieldvoidsetItemIndex(int itemIndex) voidsetRawValues(Map<String, Object> rawValues) Sets a map containing raw values of data fields.toString()
- 
Field Details- 
rawValues
- 
itemIndexprotected int itemIndex
 
- 
- 
Constructor Details- 
ImportedDataItempublic ImportedDataItem()
 
- 
- 
Method Details- 
getItemIndexpublic int getItemIndex()
- 
getRawValues- Specified by:
- getRawValuesin interface- RawValuesSource
- Returns:
- map that contains raw values by data field names
 
- 
setItemIndexpublic void setItemIndex(int itemIndex) 
- 
setRawValuesDescription copied from interface:RawValuesSourceSets a map containing raw values of data fields.- Specified by:
- setRawValuesin interface- RawValuesSource
- Parameters:
- rawValues- map with raw values
 
- 
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
 
-