| Modifier and Type | Field and Description |
|---|---|
int |
columnIndex
Index of this column in the file being parsed.
|
protected String |
columnName
Name of the column.
|
ColumnFields |
fields
Set of fields for the column.
|
int |
formatIndex |
boolean |
useFormat |
| Constructor and Description |
|---|
ColumnInfo()
Create a ColumnInfo with empty information.
|
ColumnInfo(String columnName,
boolean transferGroups,
ColumnField... fields)
Create a ColumnInfo with provided information.
|
ColumnInfo(String columnName,
ColumnField... fields)
Create a ColumnInfo with provided information.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addField(ColumnField field)
Add a field to this column.
|
ColumnInfo |
copy() |
String |
getColumnName() |
ColumnField |
getField(String fieldName) |
String[] |
getGroups() |
boolean |
hasField(String fieldName) |
protected String columnName
public ColumnFields fields
public int columnIndex
public boolean useFormat
public int formatIndex
public ColumnInfo(String columnName, ColumnField... fields)
columnName - Name of the new column.fields - Fields in this column.public ColumnInfo(String columnName, boolean transferGroups, ColumnField... fields)
columnName - Name of the new column.transferGroups - Indicate that the column groups should be initialized with a copy of the fields' groups.fields - Fields in this column.public ColumnInfo()
public String getColumnName()
public void addField(ColumnField field)
field - Field to add to this column.public boolean hasField(String fieldName)
public ColumnField getField(String fieldName)
public ColumnInfo copy()
public String[] getGroups()
Copyright © 2018 Campagne Laboratory. All rights reserved.