public class ProcessorResult extends Object
ConstraintProcessor
Constructor and Description |
---|
ProcessorResult(ConstraintValidationResult constraintValidationResult)
creates a processor result from the provided constraint validation result
|
ProcessorResult(ConstraintValidationResult constraintValidationResult,
Constrainable definition,
AttributeValueReader attributeValueReader,
Constraint... constraints)
creates a processor result from the parameters provided
|
ProcessorResult(ConstraintValidationResult constraintValidationResult,
Constrainable definition,
AttributeValueReader attributeValueReader,
List<Constraint> constraints)
creates a processor result from the parameters provided
|
ProcessorResult(List<ConstraintValidationResult> constraintValidationResults)
creates a processor result from the provided constraint validation results
|
ProcessorResult(List<ConstraintValidationResult> constraintValidationResults,
Constrainable definition,
AttributeValueReader attributeValueReader,
Constraint... constraints)
creates a processor result from the parameters provided
|
Modifier and Type | Method and Description |
---|---|
AttributeValueReader |
getAttributeValueReader() |
List<Constraint> |
getConstraints() |
List<ConstraintValidationResult> |
getConstraintValidationResults() |
Constrainable |
getDefinition() |
ConstraintValidationResult |
getFirstConstraintValidationResult()
gets the first constraint validation result
|
boolean |
isAttributeValueReaderProvided()
checks whether an attribute value reader is present
|
boolean |
isDefinitionProvided()
checks whether a Data Dictionary definition is present
|
boolean |
isSingleConstraintResult()
checks whether this object has a single constraint validation result
|
public ProcessorResult(ConstraintValidationResult constraintValidationResult)
constraintValidationResult
- - the constraint validation resultpublic ProcessorResult(ConstraintValidationResult constraintValidationResult, Constrainable definition, AttributeValueReader attributeValueReader, Constraint... constraints)
constraintValidationResult
- - the constraint validation resultdefinition
- - a Data Dictionary definition e.g. ComplexAttributeDefinition
or CollectionDefinition
attributeValueReader
- - provides access to the attribute being validatedconstraints
- - optional constraints to usepublic ProcessorResult(ConstraintValidationResult constraintValidationResult, Constrainable definition, AttributeValueReader attributeValueReader, List<Constraint> constraints)
constraintValidationResult
- - the constraint validation resultdefinition
- - a Data Dictionary definition e.g. ComplexAttributeDefinition
or CollectionDefinition
attributeValueReader
- - provides access to the attribute being validatedconstraints
- - the list of constraints to usepublic ProcessorResult(List<ConstraintValidationResult> constraintValidationResults)
constraintValidationResults
- - the constraint validation results to usepublic ProcessorResult(List<ConstraintValidationResult> constraintValidationResults, Constrainable definition, AttributeValueReader attributeValueReader, Constraint... constraints)
constraintValidationResults
- - the constraint validation resultsdefinition
- - a Data Dictionary definition e.g. ComplexAttributeDefinition
or CollectionDefinition
attributeValueReader
- - provides access to the attribute being validatedconstraints
- - optional constraints to usepublic boolean isSingleConstraintResult()
public boolean isDefinitionProvided()
public boolean isAttributeValueReaderProvided()
public ConstraintValidationResult getFirstConstraintValidationResult()
public List<ConstraintValidationResult> getConstraintValidationResults()
public Constrainable getDefinition()
public AttributeValueReader getAttributeValueReader()
public List<Constraint> getConstraints()
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.