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

java.lang.Object
  extended by org.kuali.rice.krad.datadictionary.validation.processor.OptionalElementConstraintProcessor<ExistenceConstraint>
      extended by org.kuali.rice.krad.datadictionary.validation.processor.ExistenceConstraintProcessor
All Implemented Interfaces:
ConstraintProcessor<Object,ExistenceConstraint>

public class ExistenceConstraintProcessor
extends OptionalElementConstraintProcessor<ExistenceConstraint>

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
ExistenceConstraintProcessor()
           
 
Method Summary
 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, ExistenceConstraint constraint, AttributeValueReader attributeValueReader)
          process the provided constraint
protected  ConstraintValidationResult processSingleExistenceConstraint(DictionaryValidationResult result, Object value, ExistenceConstraint constraint, AttributeValueReader attributeValueReader)
           
 
Methods inherited from class org.kuali.rice.krad.datadictionary.validation.processor.OptionalElementConstraintProcessor
isOptional
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExistenceConstraintProcessor

public ExistenceConstraintProcessor()
Method Detail

process

public ProcessorResult process(DictionaryValidationResult result,
                               Object value,
                               ExistenceConstraint constraint,
                               AttributeValueReader attributeValueReader)
                        throws AttributeValidationException
Description copied from interface: ConstraintProcessor
process the provided constraint

Parameters:
result - - holds dictionary validation results
value - - the value of the attribute
constraint - - the constraint to process
attributeValueReader - - - provides access to the attribute being validated
Returns:
the result of the constraint processing
Throws:
AttributeValidationException
See Also:
\

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()

processSingleExistenceConstraint

protected ConstraintValidationResult processSingleExistenceConstraint(DictionaryValidationResult result,
                                                                      Object value,
                                                                      ExistenceConstraint constraint,
                                                                      AttributeValueReader attributeValueReader)
                                                               throws AttributeValidationException
Throws:
AttributeValidationException


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