eu.webtoolkit.jwt
Class WValidator.Result

java.lang.Object
  extended by 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
WValidator.Result()
          Default constructor.
WValidator.Result(WValidator.State state)
          Constructor.
WValidator.Result(WValidator.State state, java.lang.CharSequence message)
          Constructor.
 
Method Summary
 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 Detail

WValidator.Result

public WValidator.Result()
Default constructor.

Creates an invalid result.


WValidator.Result

public WValidator.Result(WValidator.State state,
                         java.lang.CharSequence message)
Constructor.

Creates a result with given state and message.


WValidator.Result

public WValidator.Result(WValidator.State state)
Constructor.

Creates a result with given state and initalizes the message field to an empty WString.

Method Detail

getState

public WValidator.State getState()
Returns the validation state.


getMessage

public WString getMessage()
Returns the validation message.