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>
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)
 
| Method Summary | 
| 
 | resolve(T definition)gets the list of constraints from the provided definition
 | 
 
| 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
- Description copied from interface: ConstraintResolver
- gets the list of constraints from the provided definition
 
- 
- Specified by:
- resolvein interface- ConstraintResolver<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
 
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.