public interface ValidationMessage extends ToJsonObjectConvertible
| Modifier and Type | Method and Description |
|---|---|
JsonObject |
convertToJsonObject()
Converts the message to a
JsonObject object. |
String |
getCode()
The validation code.
|
String |
getText()
The text of the message.
|
ValidationLevel |
getValidationLevel()
The validation level of thr message :
ERROR, WARNING or SUCCESS.
|
boolean |
isError()
Returns
true if the message level
is ERROR. |
boolean |
isSuccess()
Returns
true if the message level
is SUCCESS. |
boolean |
isWarning()
Returns
true if the message level
is WARNING. |
ValidationLevel getValidationLevel()
boolean isWarning()
true if the message level
is WARNING.boolean isSuccess()
true if the message level
is SUCCESS.boolean isError()
true if the message level
is ERROR.String getCode()
String getText()
JsonObject convertToJsonObject()
JsonObject object.
The resulting JsonObject object
is immutable.
convertToJsonObject in interface ToJsonObjectConvertibleCopyright © 2017. All rights reserved.