-
Constructor Summary
Constructors
Instantiates a new header impl.
-
Method Summary
int
Gets the index column of the first column with a certain name.
Gets the name of the header column with passed index.
Generate an error report on the header row.
int
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
HeaderImpl
public HeaderImpl(Line row)
Instantiates a new header impl.
- Parameters:
row
- the row
-
Method Details
-
size
public int size()
Description copied from interface: Header
Number of columns.
- Specified by:
size
in interface Header
- Returns:
- the number of columns
-
getName
public String getName(int columnIndex)
Description copied from interface: Header
Gets the name of the header column with passed index.
- Specified by:
getName
in interface Header
- Parameters:
columnIndex
- column index to find the name for
- Returns:
- name of the header column
-
getIndex
public int getIndex(String columnName)
Description copied from interface: Header
Gets the index column of the first column with a certain name.
- Specified by:
getIndex
in interface Header
- Parameters:
columnName
- column name to find the index for
- Returns:
- index of the header column
-
-
reportOnEndOfLine
Description copied from interface: Header
Generate an error report on the header row.
- Specified by:
reportOnEndOfLine
in interface Header
- Returns:
- error report on the header row