Class Reason

  • All Implemented Interfaces:
    IReason

    public class Reason
    extends java.lang.Object
    implements IReason
    The Class Reason.
    • Constructor Detail

      • Reason

        public Reason​(boolean b)
        Creates a new Reason.
        Parameters:
        b - the bool
      • Reason

        public Reason​(boolean b,
                      java.lang.String reasonText)
        Creates a new Reason.
        Parameters:
        b - the bool
        reasonText - the reason text
    • Method Detail

      • createFalseReason

        public static IReason createFalseReason()
        Creates the false reason.
        Returns:
        the i reason
      • createFalseReason

        public static IReason createFalseReason​(java.lang.String string)
        Creates the false reason.
        Parameters:
        string - the string
        Returns:
        the i reason
      • createTrueReason

        public static IReason createTrueReason()
        Creates the true reason.
        Returns:
        the i reason
      • createTrueReason

        public static IReason createTrueReason​(java.lang.String string)
        Creates the true reason.
        Parameters:
        string - the string
        Returns:
        the i reason
      • getText

        public java.lang.String getText()
        Description copied from interface: IReason
        Gets the text.
        Specified by:
        getText in interface IReason
        Returns:
        the reason in words
      • setBool

        public void setBool​(boolean bool)
        Sets the bool.
        Parameters:
        bool - the new bool
      • setText

        public void setText​(java.lang.String reasonText)
        Sets the text.
        Parameters:
        reasonText - the new text
      • toBoolean

        public boolean toBoolean()
        Description copied from interface: IReason
        Converts to boolean.
        Specified by:
        toBoolean in interface IReason
        Returns:
        true, if to boolean
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object