com.sun.syndication.feed.synd

Class SyndLinkImpl

public class SyndLinkImpl extends Object implements Cloneable, Serializable, SyndLink

Represents a link or an enclosure.

Author: Alejandro Abdelnur Dave Johnson (updated for Atom 1.0)

Field Summary
String_href
String_hreflang
long_length
ObjectBean_objBean
String_rel
String_title
String_type
Constructor Summary
SyndLinkImpl()
Default constructor.
Method Summary
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 hreflang

longgetLength()
Returns the length

StringgetRel()
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 hreflang

voidsetLength(long length)
Set the length

voidsetRel(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.

Field Detail

_href

private String _href

_hreflang

private String _hreflang

_length

private long _length

_objBean

private ObjectBean _objBean

_rel

private String _rel

_title

private String _title

_type

private String _type

Constructor Detail

SyndLinkImpl

public SyndLinkImpl()
Default constructor. All properties are set to null.

Method Detail

clone

public Object clone()
Creates a deep 'bean' clone of the object.

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.

Parameters: other he reference object with which to compare.

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

getHref

public String getHref()
Returns the link href.

Returns: the link href, null if none.

getHreflang

public String getHreflang()
Returns the hreflang

Returns: Returns the hreflang.

getLength

public long getLength()
Returns the length

Returns: Returns the length.

getRel

public String getRel()
Returns the link rel.

Returns: the link rel, null if none.

getTitle

public String getTitle()
Returns the link title.

Returns: the link title, null if none.

getType

public String getType()
Returns the link type.

Returns: the link type, null if none.

hashCode

public int hashCode()
Returns a hashcode value for the object.

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

Returns: the hashcode of the bean object.

setHref

public void setHref(String href)
Sets the link href.

Parameters: href the link href, null if none.

setHreflang

public void setHreflang(String hreflang)
Set the hreflang

Parameters: hreflang The hreflang to set.

setLength

public void setLength(long length)
Set the length

Parameters: length The length to set.

setRel

public void setRel(String rel)
Sets the link rel.

Parameters: rel the link rel,, null if none.

setTitle

public void setTitle(String title)
Sets the link title.

Parameters: title the link title, null if none.

setType

public void setType(String type)
Sets the link type.

Parameters: type the link type, null if none.

toString

public String toString()
Returns the String representation for the object.

Returns: String representation for the object.

Copyright © Sun Microsystems. All Rights Reserved.