public class Link
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
_href |
private java.lang.String |
_hreflang |
private long |
_length |
private ObjectBean |
_objBean |
private java.lang.String |
_rel |
private java.lang.String |
_title |
private java.lang.String |
_type |
Constructor and Description |
---|
Link()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Creates a deep 'bean' clone of the object.
|
boolean |
equals(java.lang.Object other)
Indicates whether some other object is "equal to" this one as defined by the Object equals() method.
|
java.lang.String |
getHref()
Returns the link href.
|
java.lang.String |
getHreflang()
Returns the hreflang
|
long |
getLength()
Returns the length
|
java.lang.String |
getRel()
Returns the link rel.
|
java.lang.String |
getTitle()
Returns the link title.
|
java.lang.String |
getType()
Returns the link type.
|
int |
hashCode()
Returns a hashcode value for the object.
|
void |
setHref(java.lang.String href)
Sets the link href.
|
void |
setHreflang(java.lang.String hreflang)
Set the hreflang
|
void |
setLength(long length)
Set the length
|
void |
setRel(java.lang.String rel)
Sets the link rel.
|
void |
setTitle(java.lang.String title)
Sets the link title.
|
void |
setType(java.lang.String type)
Sets the link type.
|
java.lang.String |
toString()
Returns the String representation for the object.
|
private ObjectBean _objBean
private java.lang.String _href
private java.lang.String _rel
private java.lang.String _type
private java.lang.String _hreflang
private java.lang.String _title
private long _length
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- thrown if an element of the object cannot be cloned.public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- he reference object with which to compare.public int hashCode()
It follows the contract defined by the Object hashCode() method.
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getRel()
public void setRel(java.lang.String rel)
rel
- the link rel,, null if none.public java.lang.String getType()
public void setType(java.lang.String type)
type
- the link type, null if none.public java.lang.String getHref()
public void setHref(java.lang.String href)
href
- the link href, null if none.public java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- the link title, null if none.public java.lang.String getHreflang()
public void setHreflang(java.lang.String hreflang)
hreflang
- The hreflang to set.public long getLength()
public void setLength(long length)
length
- The length to set.Copyright © Sun Microsystems. All Rights Reserved.