public class MustOccurConstraintProcessor extends BasePrerequisiteConstraintProcessor<MustOccurConstraint>
dataDictionaryService, dateTimeService
Constructor and Description |
---|
MustOccurConstraintProcessor() |
Modifier and Type | Method and Description |
---|---|
Class<? extends Constraint> |
getConstraintType()
gets the java class type of the constraint that this contraint processor handles
|
String |
getName()
gets a descriptive name of this constraint processor
|
ProcessorResult |
process(DictionaryValidationResult result,
Object value,
MustOccurConstraint constraint,
AttributeValueReader attributeValueReader)
process the provided constraint
|
protected boolean |
processMustOccurConstraint(ConstraintValidationResult topLevelResult,
MustOccurConstraint constraint,
AttributeValueReader attributeValueReader) |
processPrerequisiteConstraint
getDataDictionaryService, getDateTimeService, isOptional, setDataDictionaryService, setDateTimeService
public MustOccurConstraintProcessor()
public ProcessorResult process(DictionaryValidationResult result, Object value, MustOccurConstraint constraint, AttributeValueReader attributeValueReader) throws AttributeValidationException
ConstraintProcessor
result
- - holds dictionary validation resultsvalue
- - the value of the attributeconstraint
- - the constraint to processattributeValueReader
- - - provides access to the attribute being validatedAttributeValidationException
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)
public String getName()
ConstraintProcessor
e.g. @see CollectionSizeConstraintProcessor.CONSTRAINT_NAME
public Class<? extends Constraint> getConstraintType()
ConstraintProcessor
Constraint
ConstraintProcessor.getConstraintType()
protected boolean processMustOccurConstraint(ConstraintValidationResult topLevelResult, MustOccurConstraint constraint, AttributeValueReader attributeValueReader) throws AttributeValidationException
AttributeValidationException
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.