org.kuali.rice.krad.datadictionary.validation.constraint.resolver
Class DefinitionConstraintResolver<T extends Constrainable>

java.lang.Object
  extended by 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)

Constructor Summary
DefinitionConstraintResolver()
           
 
Method Summary
<C extends Constraint>
List<C>
resolve(T definition)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefinitionConstraintResolver

public DefinitionConstraintResolver()
Method Detail

resolve

public <C extends Constraint> List<C> resolve(T definition)
                                   throws ClassCastException
Specified by:
resolve in interface ConstraintResolver<T extends Constrainable>
Throws:
ClassCastException


Copyright © 2005-2014 The Kuali Foundation. All Rights Reserved.