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

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

      Creates a result with given state and message.

    • Result

      public Result​(WValidator.State state)
      Constructor.

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

  • Method Details