Interface ValueValidator
- All Known Implementing Classes:
MediaConditionValidator, NoOpValidator, PositiveIntValidator, PriceValidator, SleeveConditionValidator, YesNoValidator, ZeroOrPositiveIntValidator
public interface ValueValidator
Defines the interface to validate CSV value attributes based on type and/or conditions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
formatMessage
(InventoryHeader header, String msg) void
validate
(String value, InventoryHeader header, Integer row, Integer col) Validates a CSV attribute.
-
Method Details
-
validate
void validate(String value, InventoryHeader header, Integer row, Integer col) throws ValidationException Validates a CSV attribute.- Parameters:
value
- to validateheader
- the associated headerrow
- the row indexcol
- the column index- Throws:
ValidationException
- if the field contains an invalid/malformed value
-
formatMessage
-