Interface SchemaFacetValidationMessage
-
public interface SchemaFacetValidationMessageRepresents 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetDefaultMessage()Returns the non-localizedmessagedefined by the associated facet.Iterable<Locale>getLocales()Returns the locales for which a validation message is defined by the associated facet.StringgetLocalizedMessage(Locale aLocale)Returns the value of the localizedmessagedefined by the associated facet.SeveritygetSeverity()Returns theseverityof the validation message.
-
-
-
Method Detail
-
getDefaultMessage
String getDefaultMessage()
Returns the non-localizedmessagedefined by the associated facet.Returns
nullif the associated facet does not define a non-localizedmessage.
-
getLocalizedMessage
String getLocalizedMessage(Locale aLocale)
Returns the value of the localizedmessagedefined by the associated facet.Returns
nullif the associated facet does not define amessagefor the specifiedLocale.
-
getSeverity
Severity getSeverity()
Returns theseverityof the validation message.Returns
Severity.ERRORif the associated facet does not define a specificseverity.
-
-