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>
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)
-
Field Summary
Fields inherited from class org.kuali.rice.krad.datadictionary.validation.processor.MandatoryElementConstraintProcessor
dataDictionaryService, dateTimeService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends Constraint> gets the java class type of the constraint that this contraint processor handlesgetName()gets a descriptive name of this constraint processorprocess(DictionaryValidationResult result, Object value, CaseConstraint caseConstraint, AttributeValueReader attributeValueReader) process the provided constraintMethods inherited from class org.kuali.rice.krad.datadictionary.validation.processor.MandatoryElementConstraintProcessor
getDataDictionaryService, getDateTimeService, isOptional, setDataDictionaryService, setDateTimeService
-
Constructor Details
-
CaseConstraintProcessor
public CaseConstraintProcessor()
-
-
Method Details
-
process
public ProcessorResult process(DictionaryValidationResult result, Object value, CaseConstraint caseConstraint, AttributeValueReader attributeValueReader) throws AttributeValidationException Description copied from interface:ConstraintProcessorprocess 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:
-
getName
Description copied from interface:ConstraintProcessorgets a descriptive name of this constraint processore.g. @see CollectionSizeConstraintProcessor.CONSTRAINT_NAME
- Returns:
- a descriptive name
-
getConstraintType
Description copied from interface:ConstraintProcessorgets the java class type of the constraint that this contraint processor handles- Returns:
- an instance of
Constraint - See Also:
-