T
- constrainable typepublic abstract class BaseConstraintProvider<T extends Constrainable> extends Object implements ConstraintProvider<T>
This provides a convenient base class from which other constraint providers can be derived.
Modifier and Type | Field and Description |
---|---|
protected Map<String,ConstraintResolver<T>> |
resolverMap |
Constructor and Description |
---|
BaseConstraintProvider() |
Modifier and Type | Method and Description |
---|---|
List<Constraint> |
getConstraints(T definition,
Class<? extends Constraint> constraintType)
gets the constraints provided
|
Map<String,ConstraintResolver<T>> |
getResolverMap() |
void |
init()
initializes the constraints
|
void |
setResolverMap(Map<String,ConstraintResolver<T>> resolverMap) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isSupported
protected Map<String,ConstraintResolver<T extends Constrainable>> resolverMap
public BaseConstraintProvider()
public void init()
By doing initialization here, and not in a constructor, constraints are only placed in memory when they are utilized.
public List<Constraint> getConstraints(T definition, Class<? extends Constraint> constraintType)
ConstraintProvider
getConstraints
in interface ConstraintProvider<T extends Constrainable>
definition
- - a Data Dictionary definition e.g. ComplexAttributeDefinition
or CollectionDefinition
constraintType
- - a java class that represents the constraintConstraintProvider.getConstraints(org.kuali.rice.krad.datadictionary.validation.capability.Constrainable,
java.lang.Class)
public Map<String,ConstraintResolver<T>> getResolverMap()
public void setResolverMap(Map<String,ConstraintResolver<T>> resolverMap)
resolverMap
- the resolverMap to setCopyright © 2005–2014 The Kuali Foundation. All rights reserved.