|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.datadictionary.validation.result.DictionaryValidationResult
public class DictionaryValidationResult
DictionaryValidationResult holds dictionary validation results
Constructor Summary | |
---|---|
DictionaryValidationResult()
default constructor |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DictionaryValidationResult()
Method Detail |
---|
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 message
public 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 message
public 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 message
public ConstraintValidationResult addSuccess(AttributeValueReader attributeValueReader, String constraintName)
attributeValueReader
- - provides access to the attribute being validatedconstraintName
- - a descriptive name of the current constraint processor
public ConstraintValidationResult addSkipped(AttributeValueReader attributeValueReader, String constraintName)
attributeValueReader
- - provides access to the attribute being validatedconstraintName
- - a descriptive name of the current constraint processor
public ConstraintValidationResult addNoConstraint(AttributeValueReader attributeValueReader, String constraintName)
attributeValueReader
- - provides access to the attribute being validatedconstraintName
- - a descriptive name of the current constraint processor
public Iterator<ConstraintValidationResult> iterator()
ConstraintValidationResult
's contained in this class
iterator
in interface Iterable<ConstraintValidationResult>
protected EntryValidationResult getEntryValidationResult(String entryName)
entryName
entryName
- - the name that the data dictionary uses to store metadata about the attribute
EntryValidationResult
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |