Interface SchemaFacetValidationMessage


public interface SchemaFacetValidationMessage
Represents the validation messages defined by a facet in a data model.
Since:
6.0.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the non-localized message defined by the associated facet.
    Returns the locales for which a validation message is defined by the associated facet.
    Returns the value of the localized message defined by the associated facet.
    Returns the severity of the validation message.
  • Method Details

    • getDefaultMessage

      String getDefaultMessage()
      Returns the non-localized message defined by the associated facet.

      Returns null if the associated facet does not define a non-localized message.

    • getLocalizedMessage

      String getLocalizedMessage(Locale aLocale)
      Returns the value of the localized message defined by the associated facet.

      Returns null if the associated facet does not define a message for the specified Locale.

    • getSeverity

      Severity getSeverity()
      Returns the severity of the validation message.

      Returns Severity.ERROR if the associated facet does not define a specific severity.

    • getLocales

      Iterable<Locale> getLocales()
      Returns the locales for which a validation message is defined by the associated facet.