|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.krad.datadictionary.validation.result.ConstraintValidationResult
public class ConstraintValidationResult
ConstraintValidationResult is a composite class for all the different members that need to be returned when a ConstraintProcessor
processes a Constraint.
| Constructor Summary | |
|---|---|
ConstraintValidationResult(String constraintName)
creates a constraint validation result with the given constraint name |
|
ConstraintValidationResult(String constraintName,
ErrorLevel level)
creates a constraint validation result with the given constraint name and error level |
|
| Method Summary | |
|---|---|
void |
addChild(ConstraintValidationResult child)
allows a constraint validation result to be added as a child of the current one |
String |
getAttributeName()
|
String |
getAttributePath()
|
List<ConstraintValidationResult> |
getChildren()
|
String |
getConstraintLabelKey()
|
String |
getConstraintName()
|
String |
getEntryName()
|
String |
getErrorKey()
the error key is used to retrieve a message to display to the user |
String[] |
getErrorParameters()
|
ErrorLevel |
getStatus()
|
void |
setAttributeName(String attributeName)
|
void |
setAttributePath(String attributePath)
|
void |
setConstraintLabelKey(String constraintLabelKey)
|
void |
setConstraintName(String constraintName)
|
void |
setEntryName(String entryName)
|
void |
setError(String errorKey,
String... errorParameters)
provides information used to display error messages to the user concerning a constraint validation |
void |
setErrorKey(String errorKey)
|
void |
setErrorParameters(String[] errorParameters)
|
void |
setStatus(ErrorLevel level)
|
void |
setWarning(String errorKey,
String... errorParameters)
provides information used to display warning messages to the user concerning a constraint validation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConstraintValidationResult(String constraintName)
constraintName - - a descriptive name of the current constraint processor
public ConstraintValidationResult(String constraintName,
ErrorLevel level)
constraintName - - a descriptive name of the current constraint processorlevel - - the applicable error level - selected from ErrorLevel| Method Detail |
|---|
public void addChild(ConstraintValidationResult child)
child - - the 'child' constraint validation result
public void setError(String errorKey,
String... errorParameters)
errorKey - - a key used to fetch an error message to show the usererrorParameters - - parameters to substitute into the error message
public void setWarning(String errorKey,
String... errorParameters)
errorKey - - a key used to fetch an warning message to show the usererrorParameters - - parameters to substitute into the warning messagepublic ErrorLevel getStatus()
public void setStatus(ErrorLevel level)
level - the level to setpublic String getErrorKey()
RiceKeyConstantspublic void setErrorKey(String errorKey)
errorKey - the errorKey to setpublic String[] getErrorParameters()
public void setErrorParameters(String[] errorParameters)
errorParameters - the errorParameters to setpublic String getEntryName()
public void setEntryName(String entryName)
entryName - the entryName to setpublic String getAttributeName()
public void setAttributeName(String attributeName)
attributeName - the attributeName to setpublic String getConstraintName()
public void setConstraintName(String constraintName)
constraintName - the constraintName to setpublic List<ConstraintValidationResult> getChildren()
public String getConstraintLabelKey()
public void setConstraintLabelKey(String constraintLabelKey)
constraintLabelKey - the constraintLabelKey to setpublic String getAttributePath()
public void setAttributePath(String attributePath)
attributePath - the attributePath to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||