Package com.orchestranetworks.schema.info

# Interface SchemaFacetValidationMessage

public interface SchemaFacetValidationMessage
Represents the validation messages defined by a facet in a data model.

Since:
  6.0.0
See Also:
  - `SchemaFacet.getFacetValidationMessage()`
  - Validation properties
  - Labels and messages

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getDefaultMessage()`
  Returns the non-localized `message` defined by the associated facet.
  `Iterable<Locale>`
  `getLocales()`
  Returns the locales for which a validation message is defined by the associated facet.
  `String`
  `getLocalizedMessage(Locale aLocale)`
  Returns the value of the localized `message` defined by the associated facet.
  `Severity`
  `getSeverity()`
  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.