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 Detail

      • getLocale

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

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

        default IGenericAttributeValidationConfiguration getGenericAttributeValidationConfiguration()
        Returns the configuration for generic attribute validation.
        Since:
        21.6
        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.