com.rational.test.ft.script

Class Href



  • public class Href
    extends Value
    A simple container class for an HTML URL attribute associated with a subitem value. Href values are sub-object URLs that are significant relative to a particular HTML tag.
    Since:
    RFT1.0
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String pat 
    • Constructor Summary

      Constructors 
      Constructor and Description
      Href(java.lang.String url)
      Constructor that takes the string containing the URL.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object other)
      Compares href values; returns true if they are equal.
      java.lang.String getHref()
      Accesses the text value.
      java.net.URL getUrl()
      Returns the java.net.URL, which enables improved scripting and debugging.
      protected boolean sameFile(java.net.URL url1, java.net.URL url2) 
      void setHref(java.lang.String url)
      Serves as an accessor method for the text value.
      java.lang.String toString()
      Sets toString to the value that this class represents.
      • Methods inherited from class com.rational.test.ft.script.Value

        getValue
      • Methods inherited from class java.lang.Object

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

      • Href

        public Href(java.lang.String url)
        Constructor that takes the string containing the URL.
        Since:
        RFT1.0
    • Method Detail

      • getHref

        public java.lang.String getHref()
        Accesses the text value.
        Since:
        RFT1.0
      • equals

        public boolean equals(java.lang.Object other)
        Compares href values; returns true if they are equal.
        Overrides:
        equals in class Value
        Parameters:
        other - the right side of the comparison
        Since:
        RFT1.0
      • sameFile

        protected boolean sameFile(java.net.URL url1,
                                   java.net.URL url2)
      • getUrl

        public java.net.URL getUrl()
        Returns the java.net.URL, which enables improved scripting and debugging.
        Since:
        RFT1.0
      • toString

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

        public void setHref(java.lang.String url)
        Serves as an accessor method for the text value.
        Since:
        RFT1.0