public class LengthConstraintProcessor extends MandatoryElementConstraintProcessor<LengthConstraint>
dataDictionaryService, dateTimeService| Constructor and Description |
|---|
LengthConstraintProcessor() |
| 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,
LengthConstraint constraint,
AttributeValueReader attributeValueReader)
process the provided constraint
|
protected ConstraintValidationResult |
processSingleLengthConstraint(DictionaryValidationResult result,
Object value,
LengthConstraint constraint,
AttributeValueReader attributeValueReader) |
protected ConstraintValidationResult |
validateLength(DictionaryValidationResult result,
String value,
LengthConstraint constraint,
AttributeValueReader attributeValueReader) |
getDataDictionaryService, getDateTimeService, isOptional, setDataDictionaryService, setDateTimeServicepublic LengthConstraintProcessor()
public ProcessorResult process(DictionaryValidationResult result, Object value, LengthConstraint constraint, AttributeValueReader attributeValueReader) throws AttributeValidationException
ConstraintProcessorresult - - holds dictionary validation resultsvalue - - the value of the attributeconstraint - - the constraint to processattributeValueReader - - - provides access to the attribute being validatedAttributeValidationExceptionConstraintProcessor.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()
ConstraintProcessore.g. @see CollectionSizeConstraintProcessor.CONSTRAINT_NAME
public Class<? extends Constraint> getConstraintType()
ConstraintProcessorConstraintConstraintProcessor.getConstraintType()protected ConstraintValidationResult processSingleLengthConstraint(DictionaryValidationResult result, Object value, LengthConstraint constraint, AttributeValueReader attributeValueReader) throws AttributeValidationException
AttributeValidationExceptionprotected ConstraintValidationResult validateLength(DictionaryValidationResult result, String value, LengthConstraint constraint, AttributeValueReader attributeValueReader) throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2005–2015 The Kuali Foundation. All rights reserved.