Package ddf.catalog.validation.violation
Interface ValidationViolation
public interface ValidationViolation
Describes a violation of a constraint on an attribute or metacard.
This code is experimental. While this interface is functional and tested, it may change or be removed in a future version of the library.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumDescribes the severity of a validation violation. -
Method Summary
Modifier and TypeMethodDescriptionReturns the name(s) of the attribute(s) associated with the violation.Returns a message describing the violation.Returns the severity of the violation.
-
Method Details
-
getSeverity
ValidationViolation.Severity getSeverity()Returns the severity of the violation. Cannot return null.- Returns:
- the severity
-
getMessage
String getMessage()Returns a message describing the violation. Cannot return null.- Returns:
- the message
-
getAttributes
Returns the name(s) of the attribute(s) associated with the violation. Cannot return null.- Returns:
- the set of names
-