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

java.lang.Object
  extended by org.kuali.rice.krad.datadictionary.validation.processor.MandatoryElementConstraintProcessor<LengthConstraint>
      extended by org.kuali.rice.krad.datadictionary.validation.processor.LengthConstraintProcessor
All Implemented Interfaces:
ConstraintProcessor<Object,LengthConstraint>

public class LengthConstraintProcessor
extends MandatoryElementConstraintProcessor<LengthConstraint>

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
LengthConstraintProcessor()
           
 
Method Summary
 Class<? extends Constraint> getConstraintType()
           
 String getName()
           
 ProcessorResult process(DictionaryValidationResult result, Object value, LengthConstraint constraint, AttributeValueReader attributeValueReader)
           
protected  ConstraintValidationResult processSingleLengthConstraint(DictionaryValidationResult result, Object value, LengthConstraint constraint, AttributeValueReader attributeValueReader)
           
protected  ConstraintValidationResult validateLength(DictionaryValidationResult result, String value, LengthConstraint constraint, AttributeValueReader attributeValueReader)
           
 
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

LengthConstraintProcessor

public LengthConstraintProcessor()
Method Detail

process

public ProcessorResult process(DictionaryValidationResult result,
                               Object value,
                               LengthConstraint constraint,
                               AttributeValueReader attributeValueReader)
                        throws AttributeValidationException
Throws:
AttributeValidationException
See Also:
org.kuali.rice.krad.datadictionary.validation.processor.ConstraintProcessor#process(DictionaryValidationResult, Object, org.kuali.rice.krad.datadictionary.validation.capability.Validatable, org.kuali.rice.krad.datadictionary.validation.AttributeValueReader)

getName

public String getName()

getConstraintType

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

processSingleLengthConstraint

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

validateLength

protected ConstraintValidationResult validateLength(DictionaryValidationResult result,
                                                    String value,
                                                    LengthConstraint constraint,
                                                    AttributeValueReader attributeValueReader)
                                             throws IllegalArgumentException
Throws:
IllegalArgumentException


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