public interface AttributeValidator
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.
| Modifier and Type | Method and Description |
|---|---|
Optional<AttributeValidationReport> |
validate(Attribute attribute)
Validates a single
Attribute. |
Optional<AttributeValidationReport> validate(Attribute attribute)
Attribute.attribute - the Attribute to validate, cannot be nullOptional containing an AttributeValidationReport if there are
violations, or an empty Optional if there are no violationsIllegalArgumentException - if attribute is nullThis work is licensed under a Creative Commons Attribution 4.0 International License.