public class DataTypeConstraintProcessor extends MandatoryElementConstraintProcessor<DataTypeConstraint>
DataTypeConstraintdataDictionaryService, dateTimeService| Constructor and Description |
|---|
DataTypeConstraintProcessor() |
| 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,
DataTypeConstraint constraint,
AttributeValueReader attributeValueReader)
process the provided constraint
|
protected ConstraintValidationResult |
processDataTypeConstraint(DictionaryValidationResult result,
DataType dataType,
Object value,
AttributeValueReader attributeValueReader)
validates the value provided using
DataTypeConstraint |
getDataDictionaryService, getDateTimeService, isOptional, setDataDictionaryService, setDateTimeServicepublic DataTypeConstraintProcessor()
public ProcessorResult process(DictionaryValidationResult result, Object value, DataTypeConstraint 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 processDataTypeConstraint(DictionaryValidationResult result, DataType dataType, Object value, AttributeValueReader attributeValueReader)
DataTypeConstraintresult - - a holder for any already run validation resultsdataType - - the expected data typevalue - - the value to validateattributeValueReader - - provides access to the attribute being validatedCopyright © 2005–2018 The Kuali Foundation. All rights reserved.