Class Step.IsDataValid

  • Enclosing class:
    Step<T extends java.io.Serializable>

    protected static class Step.IsDataValid
    extends java.lang.Object
    This class holds information about whether the data is valid in a boolean. It also includes an optional error message for when the data turns out to be invalid.
    • Constructor Summary

      Constructors 
      Constructor Description
      IsDataValid​(boolean isValid)  
      IsDataValid​(boolean isValid, java.lang.String errorMessage)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getErrorMessage()
      Gets the optional error message, if any.
      boolean isValid()
      Determines whether the data is valid or not.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IsDataValid

        public IsDataValid​(boolean isValid)
      • IsDataValid

        public IsDataValid​(boolean isValid,
                           java.lang.String errorMessage)
    • Method Detail

      • isValid

        public boolean isValid()
        Determines whether the data is valid or not.
        Returns:
        True if the data is valid; false otherwise.
      • getErrorMessage

        public java.lang.String getErrorMessage()
        Gets the optional error message, if any.
        Returns:
        The optional error message, or null if none.