org.kuali.rice.krad.datadictionary.validation.constraint.provider
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)
Method Summary |
void |
init()
initializes the constraints |
boolean |
isSupported(Constrainable definition)
checks whether this provider supports the provided definition |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttributeDefinitionConstraintProvider
public AttributeDefinitionConstraintProvider()
init
public void init()
- Description copied from class:
BaseConstraintProvider
- initializes the constraints
By doing initialization here, and not in a constructor, constraints are only placed in memory when they are
utilized.
- Overrides:
init
in class BaseConstraintProvider<AttributeDefinition>
isSupported
public boolean isSupported(Constrainable definition)
- Description copied from interface:
ConstraintProvider
- checks whether this provider supports the provided definition
- Parameters:
definition
- - a Data Dictionary definition e.g. AttributeDefinition
- Returns:
- true if supported, false otherwise
- See Also:
ConstraintProvider.isSupported(org.kuali.rice.krad.datadictionary.validation.capability.Constrainable)
Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.