public class Href extends Value
Href values are sub-object URLs that are significant relative
to a particular HTML tag.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
pat |
| Constructor and Description |
|---|
Href(java.lang.String url)
Constructor that takes the string containing the URL.
|
| 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. |
public static final java.lang.String pat
public Href(java.lang.String url)
public java.lang.String getHref()
public boolean equals(java.lang.Object other)
href values; returns true if they are equal.protected boolean sameFile(java.net.URL url1,
java.net.URL url2)
public java.net.URL getUrl()
java.net.URL, which enables improved scripting and debugging.public java.lang.String toString()
toString to the value that this class represents.public void setHref(java.lang.String url)