Top Description Fields Constructors Methods
com.rometools.rome.feed.synd

public Class SyndLinkImpl

extends Object
implements Cloneable, Serializable, SyndLink
Class Inheritance
All Implemented Interfaces
com.rometools.rome.feed.synd.SyndLink, java.io.Serializable, java.lang.Cloneable
Imports
java.io.Serializable, java.util.Collections, com.rometools.rome.feed.impl.CloneableBean, .EqualsBean, .ToStringBean

Represents a link or an enclosure.

Field Summary

Modifier and TypeField and Description
private String
private String
private long
private String
private static final long
private String
private String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

a clone of the object.
clone
()

Overrides java.lang.Object.clone.

Implements com.rometools.rome.feed.synd.SyndLink.clone.

Creates a deep 'bean' clone of the object.
public boolean

Returns:

true if 'this' object is equal to the 'other' object.
equals
(final Object
he reference object with which to compare.
other
)

Overrides java.lang.Object.equals.

Implements com.rometools.rome.feed.synd.SyndLink.equals.

Indicates whether some other object is "equal to" this one as defined by the Object equals() method.
public String

Returns:

the link href, null if none.
getHref
()

Implements com.rometools.rome.feed.synd.SyndLink.getHref.

Returns the link href.
public String

Returns:

Returns the hreflang.
getHreflang
()

Implements com.rometools.rome.feed.synd.SyndLink.getHreflang.

Returns the hreflang

public long

Returns:

Returns the length.
getLength
()

Implements com.rometools.rome.feed.synd.SyndLink.getLength.

Returns the length

public String

Returns:

the link rel, null if none.
getRel
()

Implements com.rometools.rome.feed.synd.SyndLink.getRel.

Returns the link rel.
public String

Returns:

the link title, null if none.
getTitle
()

Implements com.rometools.rome.feed.synd.SyndLink.getTitle.

Returns the link title.
public String

Returns:

the link type, null if none.
getType
()

Implements com.rometools.rome.feed.synd.SyndLink.getType.

Returns the link type.
public int

Returns:

the hashcode of the bean object.
hashCode
()

Overrides java.lang.Object.hashCode.

Implements com.rometools.rome.feed.synd.SyndLink.hashCode.

Returns a hashcode value for the object.
public void
setHref(final String
the link href, null if none.
href
)

Implements com.rometools.rome.feed.synd.SyndLink.setHref.

Sets the link href.
public void
setHreflang(final String
The hreflang to set.
hreflang
)

Implements com.rometools.rome.feed.synd.SyndLink.setHreflang.

Set the hreflang

public void
setLength(final long
The length to set.
length
)

Implements com.rometools.rome.feed.synd.SyndLink.setLength.

Set the length

public void
setRel(final String
the link rel,, null if none.
rel
)

Implements com.rometools.rome.feed.synd.SyndLink.setRel.

Sets the link rel.
public void
setTitle(final String
the link title, null if none.
title
)

Implements com.rometools.rome.feed.synd.SyndLink.setTitle.

Sets the link title.
public void
setType(final String
the link type, null if none.
type
)

Implements com.rometools.rome.feed.synd.SyndLink.setType.

Sets the link type.
public String

Returns:

String representation for the object.
toString
()

Overrides java.lang.Object.toString.

Implements com.rometools.rome.feed.synd.SyndLink.toString.

Returns the String representation for the object.
Inherited from java.lang.Object:
finalizegetClassnotifynotifyAllwaitwaitwait

Field Detail

hrefback to summary
private String href
hreflangback to summary
private String hreflang
lengthback to summary
private long length
relback to summary
private String rel
serialVersionUIDback to summary
private static final long serialVersionUID
titleback to summary
private String title
typeback to summary
private String type

Constructor Detail

SyndLinkImplback to summary
public SyndLinkImpl()

Method Detail

cloneback to summary
public Object clone() throws CloneNotSupportedException

Overrides java.lang.Object.clone.

Implements com.rometools.rome.feed.synd.SyndLink.clone.

Creates a deep 'bean' clone of the object.

Returns:Object

a clone of the object.

Annotations
@Override
Exceptions
CloneNotSupportedException:
thrown if an element of the object cannot be cloned.
equalsback to summary
public boolean equals(final Object other)

Overrides java.lang.Object.equals.

Implements com.rometools.rome.feed.synd.SyndLink.equals.

Indicates whether some other object is "equal to" this one as defined by the Object equals() method.

Parameters
other:Object

he reference object with which to compare.

Returns:boolean

true if 'this' object is equal to the 'other' object.

Annotations
@Override
getHrefback to summary
public String getHref()

Implements com.rometools.rome.feed.synd.SyndLink.getHref.

Returns the link href.

Returns:String

the link href, null if none.

Annotations
@Override
getHreflangback to summary
public String getHreflang()

Implements com.rometools.rome.feed.synd.SyndLink.getHreflang.

Returns the hreflang

Returns:String

Returns the hreflang.

Annotations
@Override
getLengthback to summary
public long getLength()

Implements com.rometools.rome.feed.synd.SyndLink.getLength.

Returns the length

Returns:long

Returns the length.

Annotations
@Override
getRelback to summary
public String getRel()

Implements com.rometools.rome.feed.synd.SyndLink.getRel.

Returns the link rel.

Returns:String

the link rel, null if none.

Annotations
@Override
getTitleback to summary
public String getTitle()

Implements com.rometools.rome.feed.synd.SyndLink.getTitle.

Returns the link title.

Returns:String

the link title, null if none.

Annotations
@Override
getTypeback to summary
public String getType()

Implements com.rometools.rome.feed.synd.SyndLink.getType.

Returns the link type.

Returns:String

the link type, null if none.

Annotations
@Override
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Implements com.rometools.rome.feed.synd.SyndLink.hashCode.

Returns a hashcode value for the object.

It follows the contract defined by the Object hashCode() method.

Returns:int

the hashcode of the bean object.

Annotations
@Override
setHrefback to summary
public void setHref(final String href)

Implements com.rometools.rome.feed.synd.SyndLink.setHref.

Sets the link href.

Parameters
href:String

the link href, null if none.

Annotations
@Override
setHreflangback to summary
public void setHreflang(final String hreflang)

Implements com.rometools.rome.feed.synd.SyndLink.setHreflang.

Set the hreflang

Parameters
hreflang:String

The hreflang to set.

Annotations
@Override
setLengthback to summary
public void setLength(final long length)

Implements com.rometools.rome.feed.synd.SyndLink.setLength.

Set the length

Parameters
length:long

The length to set.

Annotations
@Override
setRelback to summary
public void setRel(final String rel)

Implements com.rometools.rome.feed.synd.SyndLink.setRel.

Sets the link rel.

Parameters
rel:String

the link rel,, null if none.

Annotations
@Override
setTitleback to summary
public void setTitle(final String title)

Implements com.rometools.rome.feed.synd.SyndLink.setTitle.

Sets the link title.

Parameters
title:String

the link title, null if none.

Annotations
@Override
setTypeback to summary
public void setType(final String type)

Implements com.rometools.rome.feed.synd.SyndLink.setType.

Sets the link type.

Parameters
type:String

the link type, null if none.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Implements com.rometools.rome.feed.synd.SyndLink.toString.

Returns the String representation for the object.

Returns:String

String representation for the object.

Annotations
@Override