public class MasterDetailRecord
extends java.lang.Object
implements java.lang.Cloneable
AbstractParser
during the parsing of an input using a MasterDetailProcessor
.MasterDetailProcessor
,
RowProcessor
,
AbstractParser
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.lang.Object[]> |
detailRows |
private java.lang.Object[] |
masterRow |
Constructor and Description |
---|
MasterDetailRecord() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Empties the detail rows and sets the master row to null.
|
MasterDetailRecord |
clone() |
java.util.List<java.lang.Object[]> |
getDetailRows()
Returns the detail rows which are associated with the master row
|
java.lang.Object[] |
getMasterRow()
Returns the master row as identified by a
MasterDetailProcessor |
void |
setDetailRows(java.util.List<java.lang.Object[]> detailRows)
Sets the detail rows associated with the master row
|
void |
setMasterRow(java.lang.Object[] masterRow)
Sets the master row data.
|
private java.lang.Object[] masterRow
private java.util.List<java.lang.Object[]> detailRows
public java.lang.Object[] getMasterRow()
MasterDetailProcessor
public void setMasterRow(java.lang.Object[] masterRow)
masterRow
- the data of a master rowpublic java.util.List<java.lang.Object[]> getDetailRows()
public void setDetailRows(java.util.List<java.lang.Object[]> detailRows)
detailRows
- the list of rows associated with the master rowpublic void clear()
public MasterDetailRecord clone()
clone
in class java.lang.Object