Class SimpleConstraintProcessor
java.lang.Object
org.kuali.rice.krad.datadictionary.validation.processor.MandatoryElementConstraintProcessor<SimpleConstraint>
org.kuali.rice.krad.datadictionary.validation.processor.SimpleConstraintProcessor
- All Implemented Interfaces:
ConstraintProcessor<Object,SimpleConstraint>
public class SimpleConstraintProcessor
extends MandatoryElementConstraintProcessor<SimpleConstraint>
Processor for simple constraint which takes out each constraining value it contains and calls the appropriate
processor
-
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, SimpleConstraint constraint, AttributeValueReader attributeValueReader) Processes the SimpleConstraint by calling process on the other smaller constraints it represents and putting the results together in ProcessorResultMethods inherited from class org.kuali.rice.krad.datadictionary.validation.processor.MandatoryElementConstraintProcessor
getDataDictionaryService, getDateTimeService, isOptional, setDataDictionaryService, setDateTimeService
-
Constructor Details
-
SimpleConstraintProcessor
public SimpleConstraintProcessor()
-
-
Method Details
-
process
public ProcessorResult process(DictionaryValidationResult result, Object value, SimpleConstraint constraint, AttributeValueReader attributeValueReader) throws AttributeValidationException Processes the SimpleConstraint by calling process on the other smaller constraints it represents and putting the results together in ProcessorResult- Parameters:
result- - holds dictionary validation resultsvalue- - the value of the attributeconstraint- - the constraint to processattributeValueReader- - - provides access to the attribute being validated- Returns:
- processor result
- 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
-