Package org.faktorips.runtime
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 Summary
Modifier and TypeMethodDescriptionReturns the configuration for generic attribute validation.Returns the Locale that is to use for the creation of validation messages.Returns the value for property with the specified name.
-
Method Details
-
getLocale
Locale getLocale()Returns the Locale that is to use for the creation of validation messages. -
getValue
Returns the value for property with the specified name. -
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
-