Package org.faktorips.runtime
Interface IValidationContext
-
- All Known Implementing Classes:
ValidationContext
public interface IValidationContextA 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 Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default IGenericAttributeValidationConfigurationgetGenericAttributeValidationConfiguration()Returns the configuration for generic attribute validation.java.util.LocalegetLocale()Returns the Locale that is to use for the creation of validation messages.java.lang.ObjectgetValue(java.lang.String propertyName)Returns the value for property with the specified name.
-
-
-
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.
-
-