|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.resource.Variant
org.restlet.resource.Representation
org.restlet.resource.StreamRepresentation
org.restlet.resource.OutputRepresentation
org.restlet.resource.XmlRepresentation
org.restlet.resource.SaxRepresentation
org.restlet.ext.atom.Feed
public class Feed
Atom Feed Document, acting as a component for metadata and data associated with the feed.
Field Summary | |
---|---|
static java.lang.String |
ATOM_NAMESPACE
Atom Syndication Format namespace. |
static java.lang.String |
XHTML_NAMESPACE
XHTML namespace. |
Fields inherited from class org.restlet.resource.Representation |
---|
UNKNOWN_SIZE |
Constructor Summary | |
---|---|
Feed()
Constructor. |
|
Feed(Representation xmlFeed)
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. |
java.util.List<Person> |
getContributors()
Returns the contributors to the entry. |
java.util.List<Entry> |
getEntries()
Returns the individual entries, acting as a components for associated metadata and data. |
Generator |
getGenerator()
Returns the agent used to generate a feed. |
Reference |
getIcon()
Returns the image that provides iconic visual identification for a feed. |
java.lang.String |
getId()
Returns the permanent, universally unique identifier for the entry. |
java.util.List<Link> |
getLinks()
Returns the references from the entry to Web resources. |
Reference |
getLogo()
Returns the image that provides visual identification for a feed. |
Text |
getRights()
Returns the information about rights held in and over an entry. |
Text |
getSubtitle()
Returns the short summary, abstract, or excerpt of an 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 |
setGenerator(Generator generator)
Sets the agent used to generate a feed. |
void |
setIcon(Reference icon)
Sets the image that provides iconic visual identification for a feed. |
void |
setId(java.lang.String id)
Sets the permanent, universally unique identifier for the entry. |
void |
setLogo(Reference logo)
Sets the image that provides visual identification for a feed. |
void |
setRights(Text rights)
Sets the information about rights held in and over an entry. |
void |
setSubtitle(Text subtitle)
Sets the short summary, abstract, or excerpt of an 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 |
write(XmlWriter writer)
Writes the representation to a XML writer. |
void |
writeElement(XmlWriter writer)
Writes the current object as an XML element using the given SAX writer. |
Methods inherited from class org.restlet.resource.SaxRepresentation |
---|
evaluate, getSaxSource, parse, release, setSaxSource, write |
Methods inherited from class org.restlet.resource.XmlRepresentation |
---|
getBoolean, getDocumentBuilder, getDomSource, getNamespaceURI, getNode, getNodes, getNumber, getPrefix, getPrefixes, getSaxSource, getStreamSource, getText, isNamespaceAware, putNamespace, setNamespaceAware, validate, validate, validate, validate |
Methods inherited from class org.restlet.resource.OutputRepresentation |
---|
getStream |
Methods inherited from class org.restlet.resource.StreamRepresentation |
---|
getChannel, getReader, write, write |
Methods inherited from class org.restlet.resource.Representation |
---|
checkDigest, checkDigest, computeDigest, createEmpty, exhaust, getAvailableSize, getDigest, getDownloadName, getExpirationDate, getModificationDate, getRange, getSize, getTag, getText, isAvailable, isDownloadable, isTransient, setAvailable, setDigest, setDownloadable, setDownloadName, setExpirationDate, setModificationDate, setRange, setSize, setTag, setTransient |
Methods inherited from class org.restlet.resource.Variant |
---|
getCharacterSet, getEncodings, getIdentifier, getLanguages, getMediaType, setCharacterSet, setEncodings, setIdentifier, setIdentifier, setLanguages, setMediaType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ATOM_NAMESPACE
public static final java.lang.String XHTML_NAMESPACE
Constructor Detail |
---|
public Feed()
public Feed(Representation xmlFeed) throws java.io.IOException
xmlFeed
- The XML feed document.
java.io.IOException
Method Detail |
---|
public java.util.List<Person> getAuthors()
public java.util.List<Category> getCategories()
public java.util.List<Person> getContributors()
public java.util.List<Entry> getEntries()
public Generator getGenerator()
public Reference getIcon()
public java.lang.String getId()
public java.util.List<Link> getLinks()
public Reference getLogo()
public Text getRights()
public Text getSubtitle()
public Text getTitle()
public java.util.Date getUpdated()
public void setGenerator(Generator generator)
generator
- The agent used to generate a feed.public void setIcon(Reference icon)
icon
- The image that provides iconic visual identification for a
feed.public void setId(java.lang.String id)
id
- The permanent, universally unique identifier for the entry.public void setLogo(Reference logo)
logo
- The image that provides visual identification for a feed.public void setRights(Text rights)
rights
- The information about rights held in and over an entry.public void setSubtitle(Text subtitle)
subtitle
- The short summary, abstract, or excerpt of an entry.public void setTitle(Text title)
title
- The human-readable title for the entry.public void setUpdated(java.util.Date updated)
updated
- The most recent moment when the entry was modified in a
significant way.public void write(XmlWriter writer) throws java.io.IOException
write
in class SaxRepresentation
writer
- The XML writer to write to.
java.io.IOException
public void writeElement(XmlWriter writer) throws org.xml.sax.SAXException
writer
- The SAX writer.
org.xml.sax.SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |