org.kuali.rice.krad.datadictionary.validation.constraint.resolver
Class DefinitionConstraintResolver<T extends Constrainable>
java.lang.Object
org.kuali.rice.krad.datadictionary.validation.constraint.resolver.DefinitionConstraintResolver<T>
- 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.
An example is LengthConstrainable
, where members of the definition itself need to be made available to the ConstraintProcessor.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefinitionConstraintResolver
public DefinitionConstraintResolver()
resolve
public <C extends Constraint> List<C> resolve(T definition)
throws ClassCastException
- Specified by:
resolve
in interface ConstraintResolver<T extends Constrainable>
- Throws:
ClassCastException
Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.