public final class Link
extends java.lang.Object
Link represents a navigational transition.| Constructor and Description |
|---|
Link(java.lang.String[] rel,
java.lang.String href)
Constructs a new Link.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getHref()
Returns the href attribute.
|
java.lang.String[] |
getRel()
Returns the rel attribute.
|
java.lang.String |
getTitle()
Returns the title attribute.
|
java.lang.String |
getType()
Returns the type attribute.
|
int |
hashCode() |
void |
setHref(java.lang.String href)
Sets the href attribute.
|
void |
setRel(java.lang.String[] rel)
Sets the rel attribute.
|
void |
setTitle(java.lang.String title)
Sets the title attribute.
|
void |
setType(java.lang.String type)
Sets the type attribute.
|
java.lang.String |
toString() |
public Link(java.lang.String[] rel,
java.lang.String href)
throws java.lang.IllegalArgumentException
rel - href - java.lang.IllegalArgumentException - if either rel or href
are null or empty.public java.lang.String[] getRel()
public void setRel(java.lang.String[] rel)
rel - public java.lang.String getHref()
public void setHref(java.lang.String href)
href - public java.lang.String getTitle()
public void setTitle(java.lang.String title)
title - public java.lang.String getType()
public void setType(java.lang.String type)
type - public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2010 - 2023 Adobe. All Rights Reserved