Package com.rometools.rome.feed.synd
Class SyndLinkImpl
- java.lang.Object
-
- com.rometools.rome.feed.synd.SyndLinkImpl
-
- All Implemented Interfaces:
SyndLink,Serializable,Cloneable
public class SyndLinkImpl extends Object implements Cloneable, Serializable, SyndLink
Represents a link or an enclosure.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SyndLinkImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()Creates a deep 'bean' clone of the object.booleanequals(Object other)Indicates whether some other object is "equal to" this one as defined by the Object equals() method.StringgetHref()Returns the link href.StringgetHreflang()Returns the hreflanglonggetLength()Returns the lengthStringgetRel()Returns the link rel.StringgetTitle()Returns the link title.StringgetType()Returns the link type.inthashCode()Returns a hashcode value for the object.voidsetHref(String href)Sets the link href.voidsetHreflang(String hreflang)Set the hreflangvoidsetLength(long length)Set the lengthvoidsetRel(String rel)Sets the link rel.voidsetTitle(String title)Sets the link title.voidsetType(String type)Sets the link type.StringtoString()Returns the String representation for the object.
-
-
-
Method Detail
-
clone
public Object clone() throws CloneNotSupportedException
Creates a deep 'bean' clone of the object.- Specified by:
clonein interfaceSyndLink- Overrides:
clonein classObject- Returns:
- a clone of the object.
- Throws:
CloneNotSupportedException- thrown if an element of the object cannot be cloned.
-
equals
public boolean equals(Object other)
Indicates whether some other object is "equal to" this one as defined by the Object equals() method.
-
hashCode
public int hashCode()
Returns a hashcode value for the object.It follows the contract defined by the Object hashCode() method.
-
toString
public String toString()
Returns the String representation for the object.
-
getRel
public String getRel()
Returns the link rel.
-
setRel
public void setRel(String rel)
Sets the link rel.
-
getType
public String getType()
Returns the link type.
-
setType
public void setType(String type)
Sets the link type.
-
getHref
public String getHref()
Returns the link href.
-
setHref
public void setHref(String href)
Sets the link href.
-
getTitle
public String getTitle()
Returns the link title.
-
setTitle
public void setTitle(String title)
Sets the link title.
-
getHreflang
public String getHreflang()
Returns the hreflang- Specified by:
getHreflangin interfaceSyndLink- Returns:
- Returns the hreflang.
-
setHreflang
public void setHreflang(String hreflang)
Set the hreflang- Specified by:
setHreflangin interfaceSyndLink- Parameters:
hreflang- The hreflang to set.
-
getLength
public long getLength()
Returns the length
-
-