Class DefaultGenericAttributeValidationConfiguration

java.lang.Object
org.faktorips.runtime.validation.DefaultGenericAttributeValidationConfiguration
All Implemented Interfaces:
IGenericAttributeValidationConfiguration

public class DefaultGenericAttributeValidationConfiguration extends Object implements IGenericAttributeValidationConfiguration
Default implementation of IGenericAttributeValidationConfiguration that uses a Locale specific ResourceBundle to load messages.

Messages are created with one replacement parameter that is set to the attribute's localized label and with a message code created from an error specific prefix("InvalidAttribute.Mandatory"/"InvalidAttribute.Irrelevant"/"InvalidAttribute.Invalid"), the name of the policy type and the attribute name.

To add markers or other information to messages, you can override this class' methods and use Message.Builder to modify the messages returned from them.

An IMarker for missing required information, that will be used in the default implementation of createMessageForMissingMandatoryValue(PolicyAttribute, IModelObject, Class) can be provided in the constructor.