com.sun.syndication.feed.synd

Interface SyndLink

public interface SyndLink

Represents a link or enclosure associated with entry.

Author: Dave Johnson

Method Summary
abstract Objectclone()
Creates a deep 'bean' clone of the object.
abstract booleanequals(Object other)
Indicates whether some other object is "equal to" this one as defined by the Object equals() method.
abstract StringgetHref()
Returns the link href.
abstract StringgetHreflang()
Returns the hreflang

abstract longgetLength()
Returns the length

abstract StringgetRel()
Returns the link rel.
abstract StringgetTitle()
Returns the link title.
abstract StringgetType()
Returns the link type.
abstract inthashCode()
Returns a hashcode value for the object.
abstract voidsetHref(String href)
Sets the link href.
abstract voidsetHreflang(String hreflang)
Set the hreflang

abstract voidsetLength(long length)
Set the length

abstract voidsetRel(String rel)
Sets the link rel.
abstract voidsetTitle(String title)
Sets the link title.
abstract voidsetType(String type)
Sets the link type.
abstract StringtoString()
Returns the String representation for the object.

Method Detail

clone

public abstract 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 abstract 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 abstract String getHref()
Returns the link href.

Returns: the link href, null if none.

getHreflang

public abstract String getHreflang()
Returns the hreflang

Returns: Returns the hreflang.

getLength

public abstract long getLength()
Returns the length

Returns: Returns the length.

getRel

public abstract String getRel()
Returns the link rel.

Returns: the link rel, null if none.

getTitle

public abstract String getTitle()
Returns the link title.

Returns: the link title, null if none.

getType

public abstract String getType()
Returns the link type.

Returns: the link type, null if none.

hashCode

public abstract 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 abstract void setHref(String href)
Sets the link href.

Parameters: href the link href, null if none.

setHreflang

public abstract void setHreflang(String hreflang)
Set the hreflang

Parameters: hreflang The hreflang to set.

setLength

public abstract void setLength(long length)
Set the length

Parameters: length The length to set.

setRel

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

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

setTitle

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

Parameters: title the link title, null if none.

setType

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

Parameters: type the link type, null if none.

toString

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

Returns: String representation for the object.

Copyright © Sun Microsystems. All Rights Reserved.