com.sun.syndication.feed.atom
Class Link

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

public class Link
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

Bean for link elements of Atom feeds.

Author:
Alejandro Abdelnur
See Also:
Serialized Form

Field Summary
static java.lang.String ALTERNATE
           
static java.lang.String NEXT
           
static java.lang.String PREV
           
static java.lang.String SERVICE_EDIT
           
static java.lang.String SERVICE_FEED
           
static java.lang.String SERVICE_POST
           
static java.lang.String START
           
 
Constructor Summary
Link()
          Default constructor.
 
Method Summary
 java.lang.Object clone()
          Creates a deep 'bean' clone of the object.
 boolean equals(java.lang.Object other)
          Indicates whether some other object is "equal to" this one as defined by the Object equals() method.
 java.lang.String getHref()
          Returns the link href.
 java.lang.String getRel()
          Returns the link rel.
 java.lang.String getTitle()
          Returns the link title.
 java.lang.String getType()
          Returns the link type.
 int hashCode()
          Returns a hashcode value for the object.
 void setHref(java.lang.String href)
          Sets the link href.
 void setRel(java.lang.String rel)
          Sets the link rel.
 void setTitle(java.lang.String title)
          Sets the link title.
 void setType(java.lang.String type)
          Sets the link type.
 java.lang.String toString()
          Returns the String representation for the object.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ALTERNATE

public static final java.lang.String ALTERNATE
See Also:
Constant Field Values

START

public static final java.lang.String START
See Also:
Constant Field Values

NEXT

public static final java.lang.String NEXT
See Also:
Constant Field Values

PREV

public static final java.lang.String PREV
See Also:
Constant Field Values

SERVICE_EDIT

public static final java.lang.String SERVICE_EDIT
See Also:
Constant Field Values

SERVICE_POST

public static final java.lang.String SERVICE_POST
See Also:
Constant Field Values

SERVICE_FEED

public static final java.lang.String SERVICE_FEED
See Also:
Constant Field Values
Constructor Detail

Link

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

Method Detail

clone

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

Returns:
a clone of the object.
Throws:
java.lang.CloneNotSupportedException - thrown if an element of the object cannot be cloned.

equals

public boolean equals(java.lang.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.

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.

toString

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

Returns:
String representation for the object.

getRel

public java.lang.String getRel()
Returns the link rel.

Returns:
the link rel, null if none.

setRel

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

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

getType

public java.lang.String getType()
Returns the link type.

Returns:
the link type, null if none.

setType

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

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

getHref

public java.lang.String getHref()
Returns the link href.

Returns:
the link href, null if none.

setHref

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

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

getTitle

public java.lang.String getTitle()
Returns the link title.

Returns:
the link title, null if none.

setTitle

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

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


Copyright © 2004-2005 Sun Microsystems. All Rights Reserved.