com.sun.syndication.feed.atom
Class Link

java.lang.Object
  extended by com.sun.syndication.feed.atom.Link
All Implemented Interfaces:
Serializable, Cloneable

public class Link
extends Object
implements Cloneable, Serializable

Bean for link elements of Atom feeds.

Author:
Alejandro Abdelnur, Dave Johnson (updated for Atom 1.0)
See Also:
Serialized Form

Constructor Summary
Link()
          Default constructor.
 
Method Summary
 Object clone()
          Creates a deep 'bean' clone of the object.
 boolean equals(Object other)
          Indicates whether some other object is "equal to" this one as defined by the Object equals() method.
 String getHref()
          Returns the link href.
 String getHreflang()
          Returns the hreflang
 String getHrefResolved()
           
 long getLength()
          Returns the length
 String getRel()
          Returns the link rel.
 String getTitle()
          Returns the link title.
 String getType()
          Returns the link type.
 int hashCode()
          Returns a hashcode value for the object.
 void setHref(String href)
          Sets the link href.
 void setHreflang(String hreflang)
          Set the hreflang
 void setHrefResolved(String hrefResolved)
           
 void setLength(long length)
          Set the length
 void setRel(String rel)
          Sets the link rel.
 void setTitle(String title)
          Sets the link title.
 void setType(String type)
          Sets the link type.
 String toString()
          Returns the String representation for the object.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Link

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

Method Detail

clone

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

Overrides:
clone in class 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.

Overrides:
equals in class Object
Parameters:
other - he reference object with which to compare.
Returns:
true if 'this' object is equal to the 'other' object.

hashCode

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

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

Overrides:
hashCode in class Object
Returns:
the hashcode of the bean object.

toString

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

Overrides:
toString in class Object
Returns:
String representation for the object.

getRel

public String getRel()
Returns the link rel.

Returns:
the link rel, null if none.

setRel

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

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

getType

public String getType()
Returns the link type.

Returns:
the link type, null if none.

setType

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

Parameters:
type - the link type, null if none.

getHref

public String getHref()
Returns the link href.

Returns:
the link href, null if none.

setHref

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

Parameters:
href - the link href, null if none.

setHrefResolved

public void setHrefResolved(String hrefResolved)

getHrefResolved

public String getHrefResolved()

getTitle

public String getTitle()
Returns the link title.

Returns:
the link title, null if none.

setTitle

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

Parameters:
title - the link title, null if none.

getHreflang

public String getHreflang()
Returns the hreflang

Returns:
Returns the hreflang.
Since:
Atom 1.0

setHreflang

public void setHreflang(String hreflang)
Set the hreflang

Parameters:
hreflang - The hreflang to set.
Since:
Atom 1.0

getLength

public long getLength()
Returns the length

Returns:
Returns the length.

setLength

public void setLength(long length)
Set the length

Parameters:
length - The length to set.


Copyright © 2004-2013 ROME Project. All Rights Reserved.