IBM Rational Functional Tester
Version 8.1.1000
IBM Rational Functional Tester API Reference

Project Version 2.3

com.rational.test.ft.script
Class Href

java.lang.Object   extended by com.rational.test.ft.script.Subitem
      extended by com.rational.test.ft.script.Value
          extended by com.rational.test.ft.script.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
static java.lang.String pat
           
 
Fields inherited from class com.rational.test.ft.script.Value
debug, value
 
Constructor Summary
Href(java.lang.String url)
          Constructor that takes the string containing the URL.
 
Method Summary
 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
 

Field Detail

pat

public static final java.lang.String pat
See Also:
Constant Field Values
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