Interface IValidationContext

All Known Implementing Classes:
ValidationContext

public interface IValidationContext
A validation context is provided to the validate() method generated by Faktor-IPS. By means of the validation context the caller can provide additional information to the validate method like for example the business context in which the validation is to execute.
  • Method Details

    • getLocale

      Locale getLocale()
      Returns the Locale that is to use for the creation of validation messages.
    • getValue

      Object getValue(String propertyName)
      Returns the value for property with the specified name.
    • getGenericAttributeValidationConfiguration

      default IGenericAttributeValidationConfiguration getGenericAttributeValidationConfiguration()
      Returns the configuration for generic attribute validation.
      Implementation Requirements:
      Implementers should overwrite this method to return their own implementation with custom error messages.
      Implementation Note:
      The default implementation always creates a new DefaultGenericAttributeValidationConfiguration.
      Since:
      21.6