public class ValidationResult
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
static ValidationResult |
error(java.lang.String resultKey,
ResultMessage message) |
ResultMessage |
getMessage() |
java.lang.String |
getResultKey() |
ResultSeverity |
getResultSeverity() |
int |
hashCode() |
static ValidationResult |
ok() |
java.lang.String |
toString() |
static ValidationResult |
warn(java.lang.String resultKey,
ResultMessage message) |
public ResultMessage getMessage()
public ResultSeverity getResultSeverity()
public java.lang.String getResultKey()
public static ValidationResult ok()
public static ValidationResult warn(java.lang.String resultKey, ResultMessage message)
resultKey
- key will be presented when transition via REST api failsmessage
- error/warning messagepublic static ValidationResult error(java.lang.String resultKey, ResultMessage message)
resultKey
- key will be presented when transition via REST api failsmessage
- error/warning messagepublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object