Class DefinitionConstraintResolver<T extends Constrainable>
java.lang.Object
org.kuali.rice.krad.datadictionary.validation.constraint.resolver.DefinitionConstraintResolver<T>
- Type Parameters:
T- constrainable type
- All Implemented Interfaces:
ConstraintResolver<T>
public class DefinitionConstraintResolver<T extends Constrainable>
extends Object
implements ConstraintResolver<T>
An object that returns the constrainable definition itself as a list for a definition implementing the capability
Constrainable.
This definition must also implement the interface Constraint, or a ClassCastException will be thrown.- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<C extends Constraint>
List<C> gets the list of constraints from the provided definition
-
Constructor Details
-
DefinitionConstraintResolver
public DefinitionConstraintResolver()
-
-
Method Details
-
resolve
Description copied from interface:ConstraintResolvergets the list of constraints from the provided definition- Specified by:
resolvein interfaceConstraintResolver<T extends Constrainable>- Type Parameters:
C- - the java type of the constraint- Parameters:
definition- - a data dictionary definition- Returns:
- - a list of constraints
- Throws:
ClassCastException
-