org.kuali.rice.krad.datadictionary.validation.processor
Class CaseConstraintProcessor
java.lang.Object
org.kuali.rice.krad.datadictionary.validation.processor.MandatoryElementConstraintProcessor<CaseConstraint>
org.kuali.rice.krad.datadictionary.validation.processor.CaseConstraintProcessor
- All Implemented Interfaces:
- ConstraintProcessor<Object,CaseConstraint>
public class CaseConstraintProcessor
- extends MandatoryElementConstraintProcessor<CaseConstraint>
CaseConstraintProcessor processes 'case constraints', which are constraints that are imposed only in specific cases
For example, when a value is equal to some constant, or greater than some limit.
- 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 |
CaseConstraintProcessor
public CaseConstraintProcessor()
process
public ProcessorResult process(DictionaryValidationResult result,
Object value,
CaseConstraint caseConstraint,
AttributeValueReader attributeValueReader)
throws AttributeValidationException
- Description copied from interface:
ConstraintProcessor
- process the provided constraint
- Parameters:
result
- - holds dictionary validation resultsvalue
- - the value of the attributecaseConstraint
- - the constraint to processattributeValueReader
- - - provides access to the attribute being validated
- Returns:
- the result of the constraint processing
- Throws:
AttributeValidationException
- See Also:
ConstraintProcessor.process(org.kuali.rice.krad.datadictionary.validation.result.DictionaryValidationResult, Object, org.kuali.rice.krad.datadictionary.validation.constraint.Constraint, org.kuali.rice.krad.datadictionary.validation.AttributeValueReader)
getName
public String getName()
- Description copied from interface:
ConstraintProcessor
- gets a descriptive name of this constraint processor
e.g. @see CollectionSizeConstraintProcessor.CONSTRAINT_NAME
- Returns:
- a descriptive name
getConstraintType
public Class<? extends Constraint> getConstraintType()
- Description copied from interface:
ConstraintProcessor
- gets the java class type of the constraint that this contraint processor handles
- Returns:
- an instance of
Constraint
- See Also:
ConstraintProcessor.getConstraintType()
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.