org.restlet.ext.atom
Class Entry

java.lang.Object
  extended by org.restlet.ext.atom.Entry

public class Entry
extends java.lang.Object

Represents an individual entry, acting as a component for metadata and data associated with the entry.

Author:
Jerome Louvel

Constructor Summary
Entry()
          Constructor.
 
Method Summary
 java.util.List<Person> getAuthors()
          Returns the authors of the entry.
 java.util.List<Category> getCategories()
          Returns the categories associated with the entry.
 Content getContent()
          Returns the content of the entry or links to it.
 java.util.List<Person> getContributors()
          Returns the contributors to the entry.
 java.lang.String getId()
          Returns the permanent, universally unique identifier for the entry.
 Link getLink(Relation rel)
          Returns the first available link with a given relation type.
 java.util.List<Link> getLinks()
          Returns the references from the entry to Web resources.
 java.util.Date getPublished()
          Returns the moment associated with an event early in the life cycle of the entry.
 Text getRights()
          Returns the information about rights held in and over an entry.
 Source getSource()
          Returns the source feed's metadata if the entry was copied from another feed.
 java.lang.String getSummary()
          Returns the short summary, abstract, or excerpt of the entry.
 Text getTitle()
          Returns the human-readable title for the entry.
 java.util.Date getUpdated()
          Returns the most recent moment when the entry was modified in a significant way.
 void setContent(Content content)
          Sets the content of the entry or links to it.
 void setId(java.lang.String id)
          Sets the permanent, universally unique identifier for the entry.
 void setPublished(java.util.Date published)
          Sets the moment associated with an event early in the life cycle of the entry.
 void setRights(Text rights)
          Sets the information about rights held in and over an entry.
 void setSource(Source source)
          Sets the source feed's metadata if the entry was copied from another feed.
 void setSummary(java.lang.String summary)
          Sets the short summary, abstract, or excerpt of the entry.
 void setTitle(Text title)
          Sets the human-readable title for the entry.
 void setUpdated(java.util.Date updated)
          Sets the most recent moment when the entry was modified in a significant way.
 void writeElement(XmlWriter writer)
          Writes the current object as an XML element using the given SAX writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Entry

public Entry()
Constructor.

Method Detail

getAuthors

public java.util.List<Person> getAuthors()
Returns the authors of the entry.

Returns:
The authors of the entry.

getCategories

public java.util.List<Category> getCategories()
Returns the categories associated with the entry.

Returns:
The categories associated with the entry.

getContent

public Content getContent()
Returns the content of the entry or links to it.

Returns:
The content of the entry or links to it.

getContributors

public java.util.List<Person> getContributors()
Returns the contributors to the entry.

Returns:
The contributors to the entry.

getId

public java.lang.String getId()
Returns the permanent, universally unique identifier for the entry.

Returns:
The permanent, universally unique identifier for the entry.

getLink

public Link getLink(Relation rel)
Returns the first available link with a given relation type.

Parameters:
rel - The relation type to match.
Returns:
The first available link with a given relation type.

getLinks

public java.util.List<Link> getLinks()
Returns the references from the entry to Web resources.

Returns:
The references from the entry to Web resources.

getPublished

public java.util.Date getPublished()
Returns the moment associated with an event early in the life cycle of the entry.

Returns:
The moment associated with an event early in the life cycle of the entry.

getRights

public Text getRights()
Returns the information about rights held in and over an entry.

Returns:
The information about rights held in and over an entry.

getSource

public Source getSource()
Returns the source feed's metadata if the entry was copied from another feed.

Returns:
The source feed's metadata if the entry was copied from another feed.

getSummary

public java.lang.String getSummary()
Returns the short summary, abstract, or excerpt of the entry.

Returns:
The short summary, abstract, or excerpt of the entry.

getTitle

public Text getTitle()
Returns the human-readable title for the entry.

Returns:
The human-readable title for the entry.

getUpdated

public java.util.Date getUpdated()
Returns the most recent moment when the entry was modified in a significant way.

Returns:
The most recent moment when the entry was modified in a significant way.

setContent

public void setContent(Content content)
Sets the content of the entry or links to it.

Parameters:
content - The content of the entry or links to it.

setId

public void setId(java.lang.String id)
Sets the permanent, universally unique identifier for the entry.

Parameters:
id - The permanent, universally unique identifier for the entry.

setPublished

public void setPublished(java.util.Date published)
Sets the moment associated with an event early in the life cycle of the entry.

Parameters:
published - The moment associated with an event early in the life cycle of the entry.

setRights

public void setRights(Text rights)
Sets the information about rights held in and over an entry.

Parameters:
rights - The information about rights held in and over an entry.

setSource

public void setSource(Source source)
Sets the source feed's metadata if the entry was copied from another feed.

Parameters:
source - The source feed's metadata if the entry was copied from another feed.

setSummary

public void setSummary(java.lang.String summary)
Sets the short summary, abstract, or excerpt of the entry.

Parameters:
summary - The short summary, abstract, or excerpt of the entry.

setTitle

public void setTitle(Text title)
Sets the human-readable title for the entry.

Parameters:
title - The human-readable title for the entry.

setUpdated

public void setUpdated(java.util.Date updated)
Sets the most recent moment when the entry was modified in a significant way.

Parameters:
updated - The most recent moment when the entry was modified in a significant way.

writeElement

public void writeElement(XmlWriter writer)
                  throws org.xml.sax.SAXException
Writes the current object as an XML element using the given SAX writer.

Parameters:
writer - The SAX writer.
Throws:
org.xml.sax.SAXException


Copyright © 2005-2008 Noelios Technologies.