org.kuali.rice.krad.datadictionary.validation.processor
Class MustOccurConstraintProcessor

java.lang.Object
  extended by org.kuali.rice.krad.datadictionary.validation.processor.MandatoryElementConstraintProcessor<C>
      extended by org.kuali.rice.krad.datadictionary.validation.processor.BasePrerequisiteConstraintProcessor<MustOccurConstraint>
          extended by org.kuali.rice.krad.datadictionary.validation.processor.MustOccurConstraintProcessor
All Implemented Interfaces:
ConstraintProcessor<Object,MustOccurConstraint>

public class MustOccurConstraintProcessor
extends BasePrerequisiteConstraintProcessor<MustOccurConstraint>

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
MustOccurConstraintProcessor()
           
 
Method Summary
 Class<? extends Constraint> getConstraintType()
           
 String getName()
           
 ProcessorResult process(DictionaryValidationResult result, Object value, MustOccurConstraint constraint, AttributeValueReader attributeValueReader)
           
protected  boolean processMustOccurConstraint(ConstraintValidationResult topLevelResult, MustOccurConstraint constraint, AttributeValueReader attributeValueReader)
           
 
Methods inherited from class org.kuali.rice.krad.datadictionary.validation.processor.BasePrerequisiteConstraintProcessor
processPrerequisiteConstraint
 
Methods inherited from class org.kuali.rice.krad.datadictionary.validation.processor.MandatoryElementConstraintProcessor
getDataDictionaryService, getDateTimeService, isOptional, setDataDictionaryService, setDateTimeService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MustOccurConstraintProcessor

public MustOccurConstraintProcessor()
Method Detail

process

public ProcessorResult process(DictionaryValidationResult result,
                               Object value,
                               MustOccurConstraint constraint,
                               AttributeValueReader attributeValueReader)
                        throws AttributeValidationException
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()

getConstraintType

public Class<? extends Constraint> getConstraintType()
See Also:
ConstraintProcessor.getConstraintType()

processMustOccurConstraint

protected boolean processMustOccurConstraint(ConstraintValidationResult topLevelResult,
                                             MustOccurConstraint constraint,
                                             AttributeValueReader attributeValueReader)
                                      throws AttributeValidationException
Throws:
AttributeValidationException


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