Package ddf.catalog.validation
Interface AttributeValidator
public interface AttributeValidator
A service that validates a single
Metacard attribute and provides
information if problems exist with the attribute's value.
This code is experimental. While this interface is functional and tested, it may change or be removed in a future version of the library.
-
Method Summary
-
Method Details
-
validate
Validates a singleAttribute.- Parameters:
attribute- theAttributeto validate, cannot be null- Returns:
- an
Optionalcontaining anAttributeValidationReportif there are violations, or an emptyOptionalif there are no violations - Throws:
IllegalArgumentException- ifattributeis null
-