Class MasterDetailRecord
java.lang.Object
com.univocity.parsers.common.processor.MasterDetailRecord
- All Implemented Interfaces:
Cloneable
An utility class to store data of a master row and its detail records.
Instances of this class are typically generated by an instance of
AbstractParser
during the parsing of an input using a MasterDetailProcessor
.- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Empties the detail rows and sets the master row to null.clone()
Returns the detail rows which are associated with the master rowObject[]
Returns the master row as identified by aMasterDetailProcessor
void
setDetailRows
(List<Object[]> detailRows) Sets the detail rows associated with the master rowvoid
setMasterRow
(Object[] masterRow) Sets the master row data.
-
Field Details
-
masterRow
-
detailRows
-
-
Constructor Details
-
MasterDetailRecord
public MasterDetailRecord()
-
-
Method Details
-
getMasterRow
Returns the master row as identified by aMasterDetailProcessor
- Returns:
- the master row
-
setMasterRow
Sets the master row data.- Parameters:
masterRow
- the data of a master row
-
getDetailRows
Returns the detail rows which are associated with the master row- Returns:
- the detail rows which are associated with the master row
-
setDetailRows
Sets the detail rows associated with the master row- Parameters:
detailRows
- the list of rows associated with the master row
-
clear
public void clear()Empties the detail rows and sets the master row to null. -
clone
-