com.rational.test.ft.script

Class State

  • java.lang.Object
    • com.rational.test.ft.script.State


  • public class State
    extends java.lang.Object
    Describes the state of a checkbox in the software under test.
    Since:
    RFT1.0
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      static State construct(int state)
      Serializes a State object; should not be used directly.
      static State construct(java.lang.String val)
      Serializes a State object from a string
      boolean equals(java.lang.Object right)
      Compares state values.
      int getState()
      Used in serialization of a State object; should not be used directly.
      static java.lang.String[] getStateNames() 
      static java.lang.String[] getStateText()
      Specifies the names used in the editing of the state setting; is a name array.
      static State indeterminate()
      Creates an INDETERMINATE state object.
      boolean isIndeterminate()
      Returns true if this state represents an INDETERMINATE state.
      boolean isNotSelected()
      Returns true if this state represents a NOT_SELECTED state.
      boolean isSelected()
      Returns true if this state represents a SELECTED state.
      static State notSelected()
      Creates a NOT_SELECTED state object.
      static State selected()
      Creates a SELECTED state object.
      java.lang.String toString()
      Sets toString to the value that this class represents.
      void updateState(int newState)
      Updates the internal state setting appropriately.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • notSelected

        public static State notSelected()
        Creates a NOT_SELECTED state object.
        Since:
        RFT1.0
      • isNotSelected

        public boolean isNotSelected()
        Returns true if this state represents a NOT_SELECTED state.
        Since:
        RFT1.0
      • selected

        public static State selected()
        Creates a SELECTED state object.
        Since:
        RFT1.0
      • isSelected

        public boolean isSelected()
        Returns true if this state represents a SELECTED state.
        Since:
        RFT1.0
      • indeterminate

        public static State indeterminate()
        Creates an INDETERMINATE state object.
        Since:
        RFT1.0
      • isIndeterminate

        public boolean isIndeterminate()
        Returns true if this state represents an INDETERMINATE state.
        Since:
        RFT1.0
      • construct

        public static State construct(int state)
        Serializes a State object; should not be used directly.
        Since:
        RFT1.0
      • construct

        public static State construct(java.lang.String val)
        Serializes a State object from a string
        Parameters:
        val -
        Returns:
      • getState

        public int getState()
        Used in serialization of a State object; should not be used directly.
        Since:
        RFT1.0
      • getStateText

        public static java.lang.String[] getStateText()
        Specifies the names used in the editing of the state setting; is a name array.
        Since:
        RFT1.0
      • getStateNames

        public static java.lang.String[] getStateNames()
      • updateState

        public void updateState(int newState)
        Updates the internal state setting appropriately. This method is intended for use by the editors and is intended for internal use only.
        Since:
        RFT1.0
      • toString

        public java.lang.String toString()
        Sets toString to the value that this class represents.
        Overrides:
        toString in class java.lang.Object
        Since:
        RFT1.0
      • equals

        public boolean equals(java.lang.Object right)
        Compares state values.
        Overrides:
        equals in class java.lang.Object
        Since:
        RFT1.0