Class ComplexAttributeDefinitionConstraintProvider
java.lang.Object
org.kuali.rice.krad.datadictionary.validation.constraint.provider.BaseConstraintProvider<ComplexAttributeDefinition>
org.kuali.rice.krad.datadictionary.validation.constraint.provider.ComplexAttributeDefinitionConstraintProvider
- All Implemented Interfaces:
ConstraintProvider<ComplexAttributeDefinition>
public class ComplexAttributeDefinitionConstraintProvider
extends BaseConstraintProvider<ComplexAttributeDefinition>
An object that 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
-
ComplexAttributeDefinitionConstraintProvider
public ComplexAttributeDefinitionConstraintProvider()
-
-
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<ComplexAttributeDefinition>
-
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:
-