public class DictionaryValidationResult extends Object implements Iterable<ConstraintValidationResult>
Constructor and Description |
---|
DictionaryValidationResult()
default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addConstraintValidationResult(AttributeValueReader attributeValueReader,
ConstraintValidationResult constraintValidationResult)
adds the result of a constraint validation performed on an attribute
|
ConstraintValidationResult |
addError(AttributeValueReader attributeValueReader,
String constraintName,
String errorKey,
String... errorParameters)
provides information used to display error messages to the user concerning a constraint validation
|
ConstraintValidationResult |
addError(String constraintLabelKey,
AttributeValueReader attributeValueReader,
String constraintName,
String errorKey,
String... errorParameters)
provides information used to display error messages to the user concerning a constraint validation
|
ConstraintValidationResult |
addNoConstraint(AttributeValueReader attributeValueReader,
String constraintName)
indicates that a constraint validation processing has been skipped
|
ConstraintValidationResult |
addSkipped(AttributeValueReader attributeValueReader,
String constraintName)
indicates that a constraint validation has been skipped
|
ConstraintValidationResult |
addSuccess(AttributeValueReader attributeValueReader,
String constraintName)
indicates that a constraint validation has succeeded
|
ConstraintValidationResult |
addWarning(AttributeValueReader attributeValueReader,
String constraintName,
String errorKey,
String... errorParameters)
provides information used to display warning messages to the user concerning a constraint validation
|
protected EntryValidationResult |
getEntryValidationResult(String entryName)
gets an entry validation result for the given
entryName |
ErrorLevel |
getErrorLevel() |
int |
getNumberOfErrors() |
int |
getNumberOfWarnings() |
Iterator<ConstraintValidationResult> |
iterator()
gets an iterator over the various
ConstraintValidationResult 's contained in this class |
void |
setErrorLevel(ErrorLevel errorLevel) |
public DictionaryValidationResult()
public void addConstraintValidationResult(AttributeValueReader attributeValueReader, ConstraintValidationResult constraintValidationResult)
attributeValueReader
- - provides access to the attribute being validatedconstraintValidationResult
- - the result of processing a constraintpublic ConstraintValidationResult addError(AttributeValueReader attributeValueReader, String constraintName, String errorKey, String... errorParameters)
attributeValueReader
- - provides access to the attribute being validatedconstraintName
- - a descriptive name of the current constraint processorerrorKey
- - a key used to fetch an informational message to show the usererrorParameters
- - parameters to substitute into the informational messagepublic ConstraintValidationResult addError(String constraintLabelKey, AttributeValueReader attributeValueReader, String constraintName, String errorKey, String... errorParameters)
constraintLabelKey
- - a key used to fetch an information message to show the userattributeValueReader
- - provides access to the attribute being validatedconstraintName
- - a descriptive name of the current constraint processorerrorKey
- - a key used to fetch an error message to show the usererrorParameters
- - parameters to substitute into the error messagepublic ConstraintValidationResult addWarning(AttributeValueReader attributeValueReader, String constraintName, String errorKey, String... errorParameters)
attributeValueReader
- - provides access to the attribute being validatedconstraintName
- - a descriptive name of the current constraint processorerrorKey
- - a key used to fetch a warning message to show the usererrorParameters
- - parameters to substitute into the warning messagepublic ConstraintValidationResult addSuccess(AttributeValueReader attributeValueReader, String constraintName)
attributeValueReader
- - provides access to the attribute being validatedconstraintName
- - a descriptive name of the current constraint processorpublic ConstraintValidationResult addSkipped(AttributeValueReader attributeValueReader, String constraintName)
attributeValueReader
- - provides access to the attribute being validatedconstraintName
- - a descriptive name of the current constraint processorpublic ConstraintValidationResult addNoConstraint(AttributeValueReader attributeValueReader, String constraintName)
attributeValueReader
- - provides access to the attribute being validatedconstraintName
- - a descriptive name of the current constraint processorpublic Iterator<ConstraintValidationResult> iterator()
ConstraintValidationResult
's contained in this classiterator
in interface Iterable<ConstraintValidationResult>
protected EntryValidationResult getEntryValidationResult(String entryName)
entryName
entryName
- - the name that the data dictionary uses to store metadata about the attributeEntryValidationResult
for the given entryName
or creates a new one if
absentpublic ErrorLevel getErrorLevel()
public void setErrorLevel(ErrorLevel errorLevel)
errorLevel
- the errorLevel to setpublic int getNumberOfErrors()
public int getNumberOfWarnings()
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.