com.sun.syndication.feed.atom
Class Link

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

public class Link
extends ObjectBean

Bean for link elements of Atom feeds.

Author:
Alejandro Abdelnur
See Also:
Serialized Form

Nested Class Summary
static class Link.Rel
          Enumeration type for the 'rel' property of Atom Link elements.
 
Field Summary
static Link.Rel ALTERNATE
           
static Link.Rel NEXT
           
static Link.Rel PREV
           
static Link.Rel SERVICE_EDIT
           
static Link.Rel SERVICE_FEED
           
static Link.Rel SERVICE_POST
           
static Link.Rel START
           
 
Constructor Summary
Link()
          Default constructor.
 
Method Summary
 java.lang.String getHref()
          Returns the link href.
 Link.Rel getRel()
          Returns the link rel.
 java.lang.String getTitle()
          Returns the link title.
 java.lang.String getType()
          Returns the link type.
 void setHref(java.lang.String href)
          Sets the link href.
 void setRel(Link.Rel 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.
 
Methods inherited from class com.sun.syndication.common.ObjectBean
clone, equals, hashCode, toString, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ALTERNATE

public static final Link.Rel ALTERNATE

START

public static final Link.Rel START

NEXT

public static final Link.Rel NEXT

PREV

public static final Link.Rel PREV

SERVICE_EDIT

public static final Link.Rel SERVICE_EDIT

SERVICE_POST

public static final Link.Rel SERVICE_POST

SERVICE_FEED

public static final Link.Rel SERVICE_FEED
Constructor Detail

Link

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

Method Detail

getRel

public Link.Rel getRel()
Returns the link rel.

Returns:
the link rel, null if none.

setRel

public void setRel(Link.Rel 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 Sun Microsystems. All Rights Reserved.