Package eu.webtoolkit.jwt
Class WValidator.Result
java.lang.Object
eu.webtoolkit.jwt.WValidator.Result
- Enclosing class:
- WValidator
public static class WValidator.Result
extends java.lang.Object
A class that holds a validation result.
This structure is returned as the result of validation.
-
Constructor Summary
Constructors Constructor Description Result()
Default constructor.Result(WValidator.State state)
Constructor.Result(WValidator.State state, java.lang.CharSequence message)
Constructor. -
Method Summary
Modifier and Type Method Description WString
getMessage()
Returns the validation message.WValidator.State
getState()
Returns the validation state.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Result
public Result()Default constructor.Creates an invalid result.
-
Result
Constructor.Creates a result with given
state
andmessage
. -
Result
Constructor.Creates a result with given
state
and initalizes the message field to an emptyWString
.
-
-
Method Details
-
getState
Returns the validation state. -
getMessage
Returns the validation message.
-