com.rational.test.ft.value

Class NameSet

  • java.lang.Object
    • com.rational.test.ft.value.NameSet


  • public class NameSet
    extends java.lang.Object
    Represents a set of names as a recognition property. For example, a tab control can use this class to specify the set of names on each tab.
    Since:
    RFT1.0
    • Constructor Summary

      Constructors 
      Constructor and Description
      NameSet() 
      NameSet(java.lang.String[] names) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void add(java.lang.String name)
      Adds an element to the NameSet.
      boolean contains(java.lang.String name)
      Determines whether a name in included in the NameSet.
      java.lang.String[] elementArray()
      Returns the number of elements in the NameSet.
      java.util.Enumeration elements()
      Lists the elements in the NameSet.
      boolean equals(java.lang.Object other)
      Overloads the core java.lang.Object implementation to compare the entries in the NameSet.
      int hashCode()
      Overloads the core java.lang.Object implementation to hash the entries in the NameSet.
      void remove(java.lang.String name)
      Removes an element from the NameSet.
      void removeAll()
      Removes all elements from the NameSet.
      void replace(int index, java.lang.String name)
      Replaces a name at a supplied index in the NameSet.
      int size()
      Returns the size of the NameSet.
      java.lang.String toString()
      Returns a String representation of the object.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • NameSet

        public NameSet()
        Since:
        RFT1.0
      • NameSet

        public NameSet(java.lang.String[] names)
        Since:
        RFT1.0
    • Method Detail

      • add

        public void add(java.lang.String name)
        Adds an element to the NameSet.
        Since:
        RFT1.0
      • replace

        public void replace(int index,
                            java.lang.String name)
        Replaces a name at a supplied index in the NameSet.
        Parameters:
        index - the index within the NameSet to replace
        name - the new name to add to the set
        Since:
        RFT1.0
      • contains

        public boolean contains(java.lang.String name)
        Determines whether a name in included in the NameSet.
        Since:
        RFT1.0
      • size

        public int size()
        Returns the size of the NameSet.
        Since:
        RFT1.0
      • elements

        public java.util.Enumeration elements()
        Lists the elements in the NameSet.
        Since:
        RFT1.0
      • elementArray

        public java.lang.String[] elementArray()
        Returns the number of elements in the NameSet.
        Since:
        RFT1.0
      • remove

        public void remove(java.lang.String name)
        Removes an element from the NameSet.
        Since:
        RFT1.0
      • removeAll

        public void removeAll()
        Removes all elements from the NameSet.
        Since:
        RFT1.0
      • toString

        public java.lang.String toString()
        Returns a String representation of the object.
        Overrides:
        toString in class java.lang.Object
        Since:
        RFT1.0
      • equals

        public boolean equals(java.lang.Object other)
        Overloads the core java.lang.Object implementation to compare the entries in the NameSet.
        Overrides:
        equals in class java.lang.Object
        Since:
        RFT1.0
      • hashCode

        public int hashCode()
        Overloads the core java.lang.Object implementation to hash the entries in the NameSet.
        Overrides:
        hashCode in class java.lang.Object
        Since:
        RFT1.0