org.kuali.rice.krad.datadictionary.validation.constraint.provider
Class BaseConstraintProvider<T extends Constrainable>

java.lang.Object
  extended by org.kuali.rice.krad.datadictionary.validation.constraint.provider.BaseConstraintProvider<T>
All Implemented Interfaces:
ConstraintProvider<T>
Direct Known Subclasses:
AttributeDefinitionConstraintProvider, CollectionDefinitionConstraintProvider, ComplexAttributeDefinitionConstraintProvider, DataObjectEntryConstraintProvider

public abstract class BaseConstraintProvider<T extends Constrainable>
extends Object
implements ConstraintProvider<T>

A class that implements a simple in memory storage map of constraint resolvers. This provides a convenient base class from which other constraint providers can be derived.

Since:
1.1
Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
protected  Map<String,ConstraintResolver<T>> resolverMap
           
 
Constructor Summary
BaseConstraintProvider()
           
 
Method Summary
 List<Constraint> getConstraints(T definition, Class<? extends Constraint> constraintType)
           
 Map<String,ConstraintResolver<T>> getResolverMap()
           
 void init()
           
 void setResolverMap(Map<String,ConstraintResolver<T>> resolverMap)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.krad.datadictionary.validation.constraint.provider.ConstraintProvider
isSupported
 

Field Detail

resolverMap

protected Map<String,ConstraintResolver<T extends Constrainable>> resolverMap
Constructor Detail

BaseConstraintProvider

public BaseConstraintProvider()
Method Detail

init

public void init()

getConstraints

public List<Constraint> getConstraints(T definition,
                                       Class<? extends Constraint> constraintType)
Specified by:
getConstraints in interface ConstraintProvider<T extends Constrainable>
See Also:
ConstraintProvider.getConstraints(org.kuali.rice.krad.datadictionary.validation.capability.Constrainable, java.lang.Class)

getResolverMap

public Map<String,ConstraintResolver<T>> getResolverMap()
Returns:
the resolverMap

setResolverMap

public void setResolverMap(Map<String,ConstraintResolver<T>> resolverMap)
Parameters:
resolverMap - the resolverMap to set


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.