public class Entry extends SaxRepresentation
UNKNOWN_SIZE| Constructor and Description |
|---|
Entry()
Constructor.
|
Entry(Client clientDispatcher,
String entryUri)
Constructor.
|
Entry(Context context,
String entryUri)
Constructor.
|
Entry(Representation xmlEntry)
Constructor.
|
Entry(Representation xmlEntry,
EntryReader entryReader)
Constructor.
|
Entry(String entryUri)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
List<Person> |
getAuthors()
Returns the authors of the entry.
|
List<Category> |
getCategories()
Returns the categories associated with the entry.
|
Content |
getContent()
Returns the content of the entry or links to it.
|
List<Person> |
getContributors()
Returns the contributors to the entry.
|
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.
|
List<Link> |
getLinks()
Returns the references from the entry to Web resources.
|
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.
|
String |
getSummary()
Returns the short summary, abstract, or excerpt of the entry.
|
Text |
getTitle()
Returns the human-readable title for the entry.
|
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(String id)
Sets the permanent, universally unique identifier for the entry.
|
void |
setPublished(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(String summary)
Sets the short summary, abstract, or excerpt of the entry.
|
void |
setTitle(String title)
Sets the human-readable title for the entry.
|
void |
setTitle(Text title)
Sets the human-readable title for the entry.
|
void |
setUpdated(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.
|
void |
writeInlineContent(XmlWriter writer)
Allow to write extra content inside the entry.
|
getInputSource, getSaxSource, isSecureProcessing, parse, release, setSaxSource, setSecureProcessing, writeevaluate, getBoolean, getDocument, getDocumentBuilder, getDomSource, getEntityResolver, getErrorHandler, getNamespaces, getNamespaceURI, getNode, getNodes, getNumber, getPrefix, getPrefixes, getSaxSource, getSchema, getStreamSource, getText, isCoalescing, isExpandingEntityRefs, isIgnoringComments, isIgnoringExtraWhitespaces, isNamespaceAware, isValidatingDtd, isXIncludeAware, setCoalescing, setEntityResolver, setErrorHandler, setExpandingEntityRefs, setIgnoringComments, setIgnoringExtraWhitespaces, setNamespaceAware, setNamespaces, setSchema, setSchema, setValidatingDtd, setXIncludeAware, validate, validate, validate, validategetReadergetChannel, getStream, write, writeappend, exhaust, getAvailableSize, getDigest, getDisposition, getExpirationDate, getRange, getRegistration, getSize, getText, hasKnownSize, isAvailable, isEmpty, isSelectable, isTransient, setAvailable, setDigest, setDisposition, setExpirationDate, setListener, setRange, setSize, setTransientgetModificationDate, getTag, setModificationDate, setTagcreateClientInfo, equals, getCharacterSet, getEncodings, getLanguages, getLocationRef, getMediaType, includes, isCompatible, setCharacterSet, setEncodings, setLanguages, setLocationRef, setLocationRef, setMediaType, toStringpublic Entry()
public Entry(Client clientDispatcher, String entryUri) throws IOException
clientDispatcher - The client HTTP dispatcher.entryUri - The entry URI.IOExceptionpublic Entry(Context context, String entryUri) throws IOException
context - The context from which the client dispatcher will be
retrieved.entryUri - The entry URI.IOExceptionpublic Entry(Representation xmlEntry) throws IOException
xmlEntry - The XML entry document.IOExceptionpublic Entry(Representation xmlEntry, EntryReader entryReader) throws IOException
xmlEntry - The XML entry document.entryReader - Custom entry reader.IOExceptionpublic Entry(String entryUri) throws IOException
entryUri - The entry URI.IOExceptionpublic List<Person> getAuthors()
public List<Category> getCategories()
public Content getContent()
public List<Person> getContributors()
public String getId()
public Link getLink(Relation rel)
rel - The relation type to match.public List<Link> getLinks()
public Date getPublished()
public Text getRights()
public Source getSource()
public String getSummary()
public Text getTitle()
public Date getUpdated()
public void setContent(Content content)
content - The content of the entry or links to it.public void setId(String id)
id - The permanent, universally unique identifier for the entry.public void setPublished(Date published)
published - The moment associated with an event early in the life cycle of
the entry.public void setRights(Text rights)
rights - The information about rights held in and over an entry.public void setSource(Source source)
source - The source feed's metadata if the entry was copied from
another feed.public void setSummary(String summary)
summary - The short summary, abstract, or excerpt of the entry.public void setTitle(String title)
title - The human-readable title for the entry.public void setTitle(Text title)
title - The human-readable title for the entry.public void setUpdated(Date updated)
updated - The most recent moment when the entry was modified in a
significant way.public void write(XmlWriter writer) throws IOException
write in class SaxRepresentationwriter - The XML writer to write to.IOExceptionpublic void writeElement(XmlWriter writer) throws SAXException
writer - The SAX writer.SAXExceptionpublic void writeInlineContent(XmlWriter writer) throws SAXException
writer - The SAX writer.SAXExceptionCopyright © 2005–2015. All rights reserved.