Class AttributeDefinitionConstraintProvider
java.lang.Object
org.kuali.rice.krad.datadictionary.validation.constraint.provider.BaseConstraintProvider<AttributeDefinition>
org.kuali.rice.krad.datadictionary.validation.constraint.provider.AttributeDefinitionConstraintProvider
- All Implemented Interfaces:
ConstraintProvider<AttributeDefinition>
public class AttributeDefinitionConstraintProvider
extends BaseConstraintProvider<AttributeDefinition>
AttributeDefinitionConstraintProvider looks up constraints for attribute definitions by constraint type
This can either by instantiated by dependency injection, in which case a map of class names to constraint resolvers can be injected, or the default map can be constructed by calling the init() method immediately after instantiation.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Field Summary
Fields inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.provider.BaseConstraintProvider
resolverMap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit()initializes the constraintsbooleanisSupported(Constrainable definition) checks whether this provider supports the provided definitionMethods inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.provider.BaseConstraintProvider
getConstraints, getResolverMap, setResolverMap
-
Constructor Details
-
AttributeDefinitionConstraintProvider
public AttributeDefinitionConstraintProvider()
-
-
Method Details
-
init
public void init()Description copied from class:BaseConstraintProviderinitializes the constraintsBy doing initialization here, and not in a constructor, constraints are only placed in memory when they are utilized.
- Overrides:
initin classBaseConstraintProvider<AttributeDefinition>
-
isSupported
Description copied from interface:ConstraintProviderchecks whether this provider supports the provided definition- Parameters:
definition- - a Data Dictionary definition e.g.AttributeDefinition- Returns:
- true if supported, false otherwise
- See Also:
-