|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.student.common.validation.dto.ValidationResultInfo
public class ValidationResultInfo
Nested Class Summary | |
---|---|
static class |
ValidationResultInfo.ErrorLevel
|
Field Summary | |
---|---|
protected String |
element
|
private Object |
invalidData
|
protected ValidationResultInfo.ErrorLevel |
level
|
protected String |
message
|
private static long |
serialVersionUID
|
Constructor Summary | |
---|---|
ValidationResultInfo()
|
|
ValidationResultInfo(String element)
|
|
ValidationResultInfo(String element,
Object invalidData)
|
Method Summary | |
---|---|
String |
getElement()
|
ValidationResultInfo.ErrorLevel |
getErrorLevel()
Returns the ValidationResult's error level |
ValidationResultInfo.ErrorLevel |
getLevel()
|
String |
getMessage()
|
static boolean |
hasValidationErrors(List<ValidationResultInfo> validationResults,
ValidationResultInfo.ErrorLevel threshold,
List<String> ignoreFields)
Checks if there are any validation errors exceeding the threshold and ignoring the list of fieldPaths passed in |
boolean |
isError()
Convenience method. |
boolean |
isOk()
Convenience method. |
boolean |
isWarn()
Convenience method. |
void |
setElement(String element)
|
void |
setError(String message)
Convenience method. |
void |
setLevel(ValidationResultInfo.ErrorLevel level)
|
void |
setMessage(String message)
|
void |
setWarning(String message)
Convenience method. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private transient Object invalidData
protected String element
protected ValidationResultInfo.ErrorLevel level
protected String message
Constructor Detail |
---|
public ValidationResultInfo()
public ValidationResultInfo(String element)
public ValidationResultInfo(String element, Object invalidData)
Method Detail |
---|
public ValidationResultInfo.ErrorLevel getLevel()
public void setLevel(ValidationResultInfo.ErrorLevel level)
level
- the level to setpublic String getMessage()
public void setMessage(String message)
message
- the message to setpublic String getElement()
public void setElement(String element)
public ValidationResultInfo.ErrorLevel getErrorLevel()
public void setWarning(String message)
message
- the message to addpublic void setError(String message)
message
- the message to addpublic boolean isOk()
public boolean isWarn()
public boolean isError()
public String toString()
toString
in class Object
public static boolean hasValidationErrors(List<ValidationResultInfo> validationResults, ValidationResultInfo.ErrorLevel threshold, List<String> ignoreFields)
validationResults
- threshold
- ignoreFields
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |