public class ConstraintValidationResult extends Object
ConstraintProcessor
processes a Constraint.| Constructor and Description |
|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
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
|
public ConstraintValidationResult(String constraintName)
constraintName - - a descriptive name of the current constraint processorpublic ConstraintValidationResult(String constraintName, ErrorLevel level)
constraintName - - a descriptive name of the current constraint processorlevel - - the applicable error level - selected from ErrorLevelpublic void addChild(ConstraintValidationResult child)
child - - the 'child' constraint validation resultpublic 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 messagepublic 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 setCopyright © 2005–2016 The Kuali Foundation. All rights reserved.