Interface ValidationConstraint

All Known Implementing Classes:
OdfPackageConstraint, OdfSchemaConstraint

public interface ValidationConstraint
A ValidationConstraint is used to collect validation conditions and their return messages in case not appliance (invalid condition).
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates 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 as getMessage().
      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 Constraint instance (which may be null).