RowValidators and
run them against a single array of strings.
This way complex validations can be performed.
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| private List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | Returns: true if all validators'
RowValidator#isValid(String[]) methods return true,
false otherwise.Array of strings to be validated. row)Runs all |
| pack-priv void | setValidators(List<RowValidator>
- list of validators to use. validators)Setter created for unit test. |
| public void | validate(String[]
Array of Strings to be validation. row)Runs all |
| CAPACITY | back to summary |
|---|---|
| private static final int CAPACITY | |
| MULTIPLIER | back to summary |
|---|---|
| private static final int MULTIPLIER | |
| validators | back to summary |
|---|---|
| private List<RowValidator> validators | |
| RowValidatorAggregator | back to summary |
|---|---|
| public RowValidatorAggregator() Default constructor. | |
| addValidator | back to summary |
|---|---|
| public void addValidator(RowValidator validator) Add a validator to the aggregator.
| |
| isValid | back to summary |
|---|---|
| public boolean isValid(final String[] row) Runs all
| |
| setValidators | back to summary |
|---|---|
| pack-priv void setValidators(List<RowValidator> validators) Setter created for unit test.
| |
| validate | back to summary |
|---|---|
| public void validate(String[] row) throws CsvValidationException Runs all
| |