RowProcessorSwitch that allows switching among different implementations of
RowProcessor based on values found on the rows parsed from the input.
| Access | Constructor and Description |
|---|---|
| public | InputValueSwitch()
Creates a switch that will analyze the first column of rows found in the input to determine which
|
| public | InputValueSwitch(int
the column index whose value will be used to determine which columnIndex)RowProcessor to use for each parsed row.Creates a switch that will analyze a column of rows parsed from the input to determine which
|
| public | InputValueSwitch(String
name of the column whose values will be used to determine which columnName)RowProcessor to use for each parsed row.Creates a switch that will analyze a column in rows parsed from the input to determine which
|
| Modifier and Type | Method and Description |
|---|---|
| protected final ParsingContext | wrapContext(ParsingContext
the context to wrap context)Implements abstract com. |
| InputValueSwitch | back to summary |
|---|---|
| public InputValueSwitch() Creates a switch that will analyze the first column of rows found in the input to determine which
| |
| InputValueSwitch | back to summary |
|---|---|
| public InputValueSwitch(int columnIndex) Creates a switch that will analyze a column of rows parsed from the input to determine which
| |
| InputValueSwitch | back to summary |
|---|---|
| public InputValueSwitch(String columnName) Creates a switch that will analyze a column in rows parsed from the input to determine which
| |
| wrapContext | back to summary |
|---|---|
| protected final ParsingContext wrapContext(ParsingContext context) Implements abstract com. Doc from com. Wraps a given parser context object that returns headers and extracted field indexes associated with a given processor in this switch.
| |