Interface ValidationConstraint
- All Known Implementing Classes:
OdfPackageConstraint, OdfSchemaConstraint
public interface ValidationConstraint
A
ValidationConstraint is used to collect validation conditions and their error
messages in case the constraint is not met.-
Method Summary
Modifier and TypeMethodDescriptionCreates a localized description of a Constraint.Returns the detail message string of this Constraint.
-
Method Details
-
getLocalizedMessage
String getLocalizedMessage()Creates a localized description of a Constraint. Subclasses may override this method in order to produce a locale-specific message. For subclasses that do not override this method, the default implementation returns the same result asgetMessage().- Returns:
- The localized description of this constraint.
-
getMessage
String getMessage()Returns the detail message string of this Constraint.- Returns:
- the detail message string of this
Constraintinstance (which may benull).
-