|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.axiom.om.impl.llom.OMNodeImpl
org.apache.axiom.om.impl.llom.OMElementImpl
org.apache.abdera.parser.stax.FOMElement
org.apache.abdera.parser.stax.FOMExtensibleElement
org.apache.abdera.parser.stax.FOMEntry
public class FOMEntry
| Field Summary |
|---|
| Fields inherited from class org.apache.axiom.om.impl.llom.OMElementImpl |
|---|
attributes, DEFAULT_DEFAULT_NS_OBJECT, firstChild, lastChild, localName, namespaces, noPrefixNamespaceCounter, ns, qName |
| Fields inherited from class org.apache.axiom.om.impl.llom.OMNodeImpl |
|---|
builder, done, factory, nextSibling, nodeType, parent, previousSibling |
| Fields inherited from interface org.apache.axiom.om.OMNode |
|---|
CDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODE |
| Fields inherited from interface org.apache.axiom.om.OMConstants |
|---|
ARRAY_ITEM_LOCALNAME, ARRAY_ITEM_NS_PREFIX, ARRAY_ITEM_NSURI, ARRAY_ITEM_QNAME, DATA_HANDLER, DEFAULT_CHAR_SET_ENCODING, DEFAULT_DEFAULT_NAMESPACE, DEFAULT_XML_VERSION, IS_BINARY, IS_DATA_HANDLERS_AWARE, PULL_TYPE_BUILDER, PUSH_TYPE_BUILDER, XMLATTRTYPE_CDATA, XMLATTRTYPE_ENTITIES, XMLATTRTYPE_ENTITY, XMLATTRTYPE_ID, XMLATTRTYPE_IDREF, XMLATTRTYPE_IDREFS, XMLATTRTYPE_NMTOKEN, XMLATTRTYPE_NMTOKENS, XMLATTRTYPE_NOTATION, XMLNS_NS_PREFIX, XMLNS_NS_URI, XMLNS_PREFIX, XMLNS_URI |
| Constructor Summary | |
|---|---|
|
FOMEntry()
|
protected |
FOMEntry(org.apache.axiom.om.OMContainer parent,
org.apache.axiom.om.OMFactory factory)
|
protected |
FOMEntry(org.apache.axiom.om.OMContainer parent,
org.apache.axiom.om.OMFactory factory,
org.apache.axiom.om.OMXMLParserWrapper builder)
|
protected |
FOMEntry(QName qname,
org.apache.axiom.om.OMContainer parent,
org.apache.axiom.om.OMFactory factory)
|
protected |
FOMEntry(QName qname,
org.apache.axiom.om.OMContainer parent,
org.apache.axiom.om.OMFactory factory,
org.apache.axiom.om.OMXMLParserWrapper builder)
|
protected |
FOMEntry(String name,
org.apache.axiom.om.OMNamespace namespace,
org.apache.axiom.om.OMContainer parent,
org.apache.axiom.om.OMFactory factory)
|
| Method Summary | |
|---|---|
Entry |
addAuthor(Person person)
Adds an individual author to the entry |
Person |
addAuthor(String name)
Adds an author |
Person |
addAuthor(String name,
String email,
String uri)
Adds an author |
Entry |
addCategory(Category category)
Adds an individual category to the entry |
Category |
addCategory(String term)
Adds a category to the entry |
Category |
addCategory(String scheme,
String term,
String label)
Adds a category to the entry |
Entry |
addContributor(Person person)
Adds an individual contributor to this entry |
Person |
addContributor(String name)
Adds a contributor |
Person |
addContributor(String name,
String email,
String uri)
Adds an author |
Control |
addControl()
|
Entry |
addLink(Link link)
Adds an individual link to the entry |
Link |
addLink(String href)
Add a link to the entry |
Link |
addLink(String href,
String rel)
Add a link to the entry |
Link |
addLink(String href,
String rel,
String type,
String title,
String hreflang,
long length)
Add a link to the entry |
Link |
getAlternateLink()
Returns this entries first alternate link |
Link |
getAlternateLink(String type,
String hreflang)
Returns the first alternate link matching the specified type and hreflang |
IRI |
getAlternateLinkResolvedHref()
Return a link href resolved against the in-scope Base URI |
IRI |
getAlternateLinkResolvedHref(String type,
String hreflang)
Return a link href resolved against the in-scope Base URI |
Person |
getAuthor()
Returns the first author listed for the entry |
List<Person> |
getAuthors()
Returns the complete set of authors listed for the entry |
List<Category> |
getCategories()
Lists the complete set of categories listed for the entry |
List<Category> |
getCategories(String scheme)
Lists the complete set of categories using the specified scheme A listing of atom:category elements using the specified scheme |
String |
getContent()
Returns the text of the content element |
Content |
getContentElement()
Returns the content for this entry |
javax.activation.MimeType |
getContentMimeType()
Returns the media type of the content type or null if type equals 'text', 'html' or 'xhtml' |
IRI |
getContentSrc()
Returns the content/@src attribute, if any |
InputStream |
getContentStream()
Returns an input stream from the content element value. |
Content.Type |
getContentType()
Returns the content type |
List<Person> |
getContributors()
Lists the complete set of contributors for this entry |
Control |
getControl()
Returns this entries Atom Publishing Protocol control element |
Control |
getControl(boolean create)
Returns this entries Atom Publishing Protocol control element. |
Date |
getEdited()
Return the value of app:edited |
DateTime |
getEditedElement()
APP Introduces a new app:edited element whose value changes every time the entry is updated |
Link |
getEditLink()
Returns this entries first edit link |
IRI |
getEditLinkResolvedHref()
Return a link href resolved against the in-scope Base URI |
Link |
getEditMediaLink()
Returns this entries first edit-media link (if any) |
Link |
getEditMediaLink(String type,
String hreflang)
Returns the first edit-media link matching the specified type and hreflang |
IRI |
getEditMediaLinkResolvedHref()
Return a link href resolved against the in-scope Base URI |
IRI |
getEditMediaLinkResolvedHref(String type,
String hreflang)
Return a link href resolved against the in-scope Base URI |
Link |
getEnclosureLink()
Returns this entries first enclosure link |
IRI |
getEnclosureLinkResolvedHref()
Return a link href resolved against the in-scope Base URI |
IRI |
getId()
Returns the universally unique identifier for this entry |
IRIElement |
getIdElement()
Returns the universally unique identifier for this entry |
Link |
getLink(String rel)
Returns the first link with the specified rel attribute value |
IRI |
getLinkResolvedHref(String rel)
Return a link href resolved against the in-scope Base URI |
List<Link> |
getLinks()
Lists the complete set of links for this entry |
List<Link> |
getLinks(String... rels)
Lists the complete set of links using the specified rel attributes values |
List<Link> |
getLinks(String rel)
Lists the complete set of links using the specified rel attribute value |
Date |
getPublished()
Return the value of the atom:published element |
DateTime |
getPublishedElement()
RFC4287: The "atom:published" element is a Date construct indicating an instant in time associated with an event early in the life cycle of the entry... |
String |
getRights()
Return the String value of the atom:rights element |
Text |
getRightsElement()
The rights element is typically used to convey a human readable copyright (e.g. |
Text.Type |
getRightsType()
Return the @type of the atom:rights element |
Link |
getSelfLink()
Returns this entries first self link |
IRI |
getSelfLinkResolvedHref()
Return a link href resolved against the in-scope Base URI |
Source |
getSource()
Returns the source element for this entry. |
String |
getSummary()
Returns the text string value of this summary |
Text |
getSummaryElement()
RFC4287: The "atom:summary" element is a Text construct that conveys a short summary, abstract, or excerpt of an entry... |
Text.Type |
getSummaryType()
Returns the summary type |
String |
getTitle()
Returns the text string value of the title element |
Text |
getTitleElement()
RFC4287: The "atom:title" element is a Text construct that conveys a human-readable title for an entry or feed. |
Text.Type |
getTitleType()
Returns the @type of this entries title |
Date |
getUpdated()
Return atom:updated |
DateTime |
getUpdatedElement()
RFC4287: The "atom:updated" element is a Date construct indicating the most recent instant in time when an entry or feed was modified in a way the publisher considers significant. |
boolean |
isDraft()
Returns true if this entry is a draft |
IRIElement |
newId()
Creates a new randomized atom:id for the entry |
Content |
setContent(javax.activation.DataHandler dataHandler)
Sets the content for this entry |
Content |
setContent(javax.activation.DataHandler dataHandler,
String mediatype)
Sets the content for this entry |
Content |
setContent(Element value)
Sets the content for this entry |
Content |
setContent(Element element,
String mediaType)
Sets the content for this entry |
Content |
setContent(InputStream in)
Sets the content for this entry |
Content |
setContent(InputStream in,
String mediatype)
Sets the content for this entry |
Content |
setContent(IRI uri,
String mediatype)
Sets the content for this entry |
Content |
setContent(String value)
Sets the content for this entry as @type="text" |
Content |
setContent(String value,
Content.Type type)
Sets the content for this entry |
Content |
setContent(String value,
String mediatype)
Sets the content for this entry |
Content |
setContentAsHtml(String value)
Sets the content for this entry as @type="html" |
Content |
setContentAsXhtml(String value)
Sets the content for this entry as @type="xhtml" |
Entry |
setContentElement(Content content)
Sets the content for this entry |
Entry |
setControl(Control control)
Sets this entries Atom Publishing Protocol control element |
Entry |
setDraft(boolean draft)
Sets whether or not this entry is a draft |
DateTime |
setEdited(Date value)
Set the value of app:edited |
DateTime |
setEdited(String value)
Set the value of app:edited |
void |
setEditedElement(DateTime updated)
Set the app:edited element |
IRIElement |
setId(String value)
Sets the universally unique identifier for this entry |
IRIElement |
setId(String value,
boolean normalize)
Sets the universally unique identifier for this entry |
Entry |
setIdElement(IRIElement id)
Sets the universally unique identifier for this entry |
DateTime |
setPublished(Date value)
Set the value of the atom:published element |
DateTime |
setPublished(String value)
Set the value of the atom:published element using the serialized string value |
Entry |
setPublishedElement(DateTime dateTime)
RFC4287: The "atom:published" element is a Date construct indicating an instant in time associated with an event early in the life cycle of the entry... |
Text |
setRights(Div value)
Sets the value of the right as @type="xhtml" |
Text |
setRights(String value)
Sets the value of the rights as @type="text" |
Text |
setRights(String value,
Text.Type type)
Sets the value of the rights |
Text |
setRightsAsHtml(String value)
Sets the value of the rights as @type="html". |
Text |
setRightsAsXhtml(String value)
Sets the value of the rights as @type="xhtml" |
Entry |
setRightsElement(Text text)
The rights element is typically used to convey a human readable copyright (e.g. |
Entry |
setSource(Source source)
Returns the source element for this entry. |
Text |
setSummary(Div value)
Sets the value of the summary as @type="xhtml" |
Text |
setSummary(String value)
Sets the value of the summary as @type="text" |
Text |
setSummary(String value,
Text.Type type)
Sets the value of the summary |
Text |
setSummaryAsHtml(String value)
Sets the value of the summary as @type="html" |
Text |
setSummaryAsXhtml(String value)
Sets the value of the summary as @type="xhtml" |
Entry |
setSummaryElement(Text text)
RFC4287: The "atom:summary" element is a Text construct that conveys a short summary, abstract, or excerpt of an entry... |
Text |
setTitle(Div value)
Sets the value of the title as @type="xhtml" |
Text |
setTitle(String value)
Sets the value of the title as @type="text" |
Text |
setTitle(String value,
Text.Type type)
Sets the value of the title |
Text |
setTitleAsHtml(String value)
Sets the value of the title as @type="html" |
Text |
setTitleAsXhtml(String value)
Sets the value of the title as @type="xhtml" |
Entry |
setTitleElement(Text title)
RFC4287: The "atom:title" element is a Text construct that conveys a human-readable title for an entry or feed. |
DateTime |
setUpdated(Date value)
Set the atom:updated value |
DateTime |
setUpdated(String value)
Set the atom:updated value |
Entry |
setUpdatedElement(DateTime updated)
RFC4287: The "atom:updated" element is a Date construct indicating the most recent instant in time when an entry or feed was modified in a way the publisher considers significant. |
| Methods inherited from class org.apache.abdera.parser.stax.FOMExtensibleElement |
|---|
addExtension, addExtension, addExtension, addExtension, addExtension, addExtensions, addSimpleExtension, addSimpleExtension, getExtension, getExtension, getExtensions, getExtensions, getExtensions, getSimpleExtension, getSimpleExtension |
| Methods inherited from class org.apache.axiom.om.impl.llom.OMElementImpl |
|---|
addAttribute, addAttribute, addChild, build, buildNext, buildWithAttachments, cloneOMElement, declareDefaultNamespace, declareNamespace, declareNamespace, detach, discard, findNamespace, findNamespaceURI, getAllAttributes, getAllDeclaredNamespaces, getAttribute, getBuilder, getChildElements, getChildren, getChildrenWithLocalName, getChildrenWithName, getChildrenWithNamespaceURI, getDefaultNamespace, getFirstChildWithName, getFirstElement, getFirstOMChild, getLineNumber, getLocalName, getNamespace, getNextOMSibling, getQName, getTextAsQName, getTrimmedText, getType, getXMLStreamReader, getXMLStreamReaderWithoutCaching, internalSerialize, internalSerialize, internalSerializeAndConsume, isComplete, notifyChildComplete, removeAttribute, resolveQName, setBuilder, setFirstChild, setLastChild, setLineNumber, setLocalName, setNamespace, setNamespaceWithNoFindInCurrentScope, setText, toString, toStringWithConsume |
| Methods inherited from class org.apache.axiom.om.impl.llom.OMNodeImpl |
|---|
close, getOMFactory, getParent, getPreviousOMSibling, importNode, insertSiblingAfter, insertSiblingBefore, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setComplete, setNextOMSibling, setParent, setPreviousOMSibling, setType |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.abdera.model.ExtensibleElement |
|---|
addExtension, addExtension, addExtension, addExtension, addExtension, addSimpleExtension, addSimpleExtension, getExtension, getExtension, getExtensions, getExtensions, getExtensions, getSimpleExtension, getSimpleExtension |
| Methods inherited from interface org.apache.abdera.model.Element |
|---|
declareNS, discard, getAttributes, getAttributeValue, getAttributeValue, getBaseUri, getDocument, getElements, getExtensionAttributes, getFirstChild, getFirstChild, getLanguage, getLanguageTag, getLocale, getMustPreserveWhitespace, getNamespaces, getNextSibling, getNextSibling, getParentElement, getPreviousSibling, getPreviousSibling, getQName, getResolvedBaseUri, getText, removeAttribute, removeAttribute, setAttributeValue, setAttributeValue, setBaseUri, setBaseUri, setLanguage, setMustPreserveWhitespace, setParentElement, setText, setText |
| Methods inherited from interface org.apache.abdera.model.Base |
|---|
addComment, clone, complete, getDefaultWriterOptions, getFactory, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Methods inherited from interface org.apache.axiom.om.OMElement |
|---|
addAttribute, addAttribute, cloneOMElement, declareDefaultNamespace, declareNamespace, declareNamespace, findNamespace, findNamespaceURI, getAllAttributes, getAllDeclaredNamespaces, getAttribute, getBuilder, getChildElements, getDefaultNamespace, getFirstElement, getLineNumber, getLocalName, getNamespace, getQName, getTextAsQName, getXMLStreamReader, getXMLStreamReaderWithoutCaching, removeAttribute, resolveQName, setBuilder, setFirstChild, setLineNumber, setLocalName, setNamespace, setNamespaceWithNoFindInCurrentScope, setText, toString, toStringWithConsume |
| Methods inherited from interface org.apache.axiom.om.OMNode |
|---|
build, buildWithAttachments, close, detach, discard, getNextOMSibling, getOMFactory, getParent, getPreviousOMSibling, getType, insertSiblingAfter, insertSiblingBefore, isComplete, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume |
| Methods inherited from interface org.apache.axiom.om.OMContainer |
|---|
addChild, buildNext, getChildren, getChildrenWithLocalName, getChildrenWithName, getChildrenWithNamespaceURI, getFirstChildWithName, getFirstOMChild, isComplete |
| Methods inherited from interface org.apache.axiom.om.impl.OMContainerEx |
|---|
setComplete |
| Constructor Detail |
|---|
public FOMEntry()
protected FOMEntry(String name,
org.apache.axiom.om.OMNamespace namespace,
org.apache.axiom.om.OMContainer parent,
org.apache.axiom.om.OMFactory factory)
throws org.apache.axiom.om.OMException
org.apache.axiom.om.OMException
protected FOMEntry(QName qname,
org.apache.axiom.om.OMContainer parent,
org.apache.axiom.om.OMFactory factory)
protected FOMEntry(QName qname,
org.apache.axiom.om.OMContainer parent,
org.apache.axiom.om.OMFactory factory,
org.apache.axiom.om.OMXMLParserWrapper builder)
protected FOMEntry(org.apache.axiom.om.OMContainer parent,
org.apache.axiom.om.OMFactory factory)
throws org.apache.axiom.om.OMException
org.apache.axiom.om.OMException
protected FOMEntry(org.apache.axiom.om.OMContainer parent,
org.apache.axiom.om.OMFactory factory,
org.apache.axiom.om.OMXMLParserWrapper builder)
throws org.apache.axiom.om.OMException
org.apache.axiom.om.OMException| Method Detail |
|---|
public Person getAuthor()
Entry
getAuthor in interface Entrypublic List<Person> getAuthors()
Entry
getAuthors in interface Entrypublic Entry addAuthor(Person person)
Entry
addAuthor in interface Entryperson - The person to addpublic Person addAuthor(String name)
Entry
addAuthor in interface Entryname - The name of the author
public Person addAuthor(String name,
String email,
String uri)
Entry
addAuthor in interface Entryname - The name of the authoremail - The author's email addressuri - A URI belonging to the author
public List<Category> getCategories()
Entry
getCategories in interface Entrypublic List<Category> getCategories(String scheme)
Entry
getCategories in interface Entrypublic Entry addCategory(Category category)
Entry
addCategory in interface Entrycategory - The atom:category element to addpublic Category addCategory(String term)
Entry
addCategory in interface Entryterm - The category term to add
public Category addCategory(String scheme,
String term,
String label)
Entry
addCategory in interface Entryscheme - The category schemeterm - The category termlabel - The human readable label
public Content getContentElement()
Entry
getContentElement in interface Entrypublic Entry setContentElement(Content content)
Entry
setContentElement in interface Entrycontent - The atom:content elementpublic Content setContent(String value)
setContent in interface Entryvalue - The text value of the content
public Content setContentAsHtml(String value)
Entry
setContentAsHtml in interface Entryvalue - The text value of the content. Special characters will be escaped (e.g. & will become &)
public Content setContentAsXhtml(String value)
Entry
setContentAsXhtml in interface Entryvalue - The text value of the content. The text will be parsed as XHTML
public Content setContent(String value,
Content.Type type)
setContent in interface Entryvalue - The text value of the contenttype - The Content Type of the text
public Content setContent(Element value)
setContent in interface Entryvalue - The content element value. If the value is a Div, the the type attribute will be set to
type="xhtml", otherwise type="application/xml"
public Content setContent(Element element,
String mediaType)
setContent in interface Entryelement - The element valuemediaType - The media type of the element
MimeTypeParseExceptionpublic Content setContent(javax.activation.DataHandler dataHandler)
setContent in interface EntrydataHandler - The Data Handler containing the binary content needing Base64 encoding.
MimeTypeParseException
public Content setContent(javax.activation.DataHandler dataHandler,
String mediatype)
setContent in interface EntrydataHandler - The Data Handler containing the binary content needing Base64 encoding.
MimeTypeParseExceptionpublic Content setContent(InputStream in)
setContent in interface Entryin - An inputstream providing binary content
public Content setContent(InputStream in,
String mediatype)
setContent in interface Entryin - An inputstream providing binary content
public Content setContent(String value,
String mediatype)
setContent in interface Entryvalue - the string value of the contentmediatype - the media type for the content
MimeTypeParseException
public Content setContent(IRI uri,
String mediatype)
setContent in interface Entryuri - URI of the content (value of the "src" attribute).mediatype - Type of the content.
MimeTypeParseException
IRISyntaxExceptionpublic List<Person> getContributors()
Entry
getContributors in interface Entrypublic Entry addContributor(Person person)
Entry
addContributor in interface Entryperson - The atom:contributor elementpublic Person addContributor(String name)
Entry
addContributor in interface Entryname - The contributor name
public Person addContributor(String name,
String email,
String uri)
Entry
addContributor in interface Entryname - The contributor nameemail - The contributor's email addressuri - The contributor's URI
public IRIElement getIdElement()
Entry
getIdElement in interface Entrypublic Entry setIdElement(IRIElement id)
Entry
setIdElement in interface Entryid - The atom:id elementpublic IRI getId()
Entry
getId in interface Entrypublic IRIElement setId(String value)
Entry
setId in interface Entryvalue - The atom:id value
public IRIElement newId()
Entry
newId in interface Entry
public IRIElement setId(String value,
boolean normalize)
Entry
setId in interface Entryvalue - The atom:id valuenormalize - true if the atom:id value should be normalized as called for by RFC4287
public List<Link> getLinks()
Entry
getLinks in interface Entrypublic List<Link> getLinks(String rel)
Entry
getLinks in interface Entryrel - The rel attribute value to look for
public List<Link> getLinks(String... rels)
Entry
getLinks in interface Entrypublic Entry addLink(Link link)
Entry
addLink in interface Entrylink - the atom:link to addpublic Link addLink(String href)
Entry
addLink in interface Entryhref - The IRI of the link
public Link addLink(String href,
String rel)
Entry
addLink in interface Entryhref - The IRI of the linkrel - The link rel attribute
public Link addLink(String href,
String rel,
String type,
String title,
String hreflang,
long length)
Entry
addLink in interface Entryhref - The IRI of the linkrel - The link rel attributetype - The media type of the linkhreflang - The language of the targetlength - The length of the resource
public DateTime getPublishedElement()
Entry
getPublishedElement in interface Entrypublic Entry setPublishedElement(DateTime dateTime)
Entry
setPublishedElement in interface EntrydateTime - the atom:published elementpublic Date getPublished()
Entry
getPublished in interface Entrypublic DateTime setPublished(Date value)
Entry
setPublished in interface Entryvalue - The java.util.Date
public DateTime setPublished(String value)
Entry
setPublished in interface Entryvalue - The serialized date
public Text getRightsElement()
EntryThe rights element is typically used to convey a human readable copyright (e.g. "<atom:rights>Copyright (c), 2006</atom:rights>).
RFC4287: The "atom:rights" element is a Text construct that conveys information about rights held in and over an entry or feed.
getRightsElement in interface Entrypublic Entry setRightsElement(Text text)
EntryThe rights element is typically used to convey a human readable copyright (e.g. "<atom:rights>Copyright (c), 2006</atom:rights>).
RFC4287: The "atom:rights" element is a Text construct that conveys information about rights held in and over an entry or feed.
setRightsElement in interface Entrytext - The atom:rights elementpublic Text setRights(String value)
Entry
setRights in interface Entryvalue - The text value of the atom:rights element
public Text setRightsAsHtml(String value)
Entry
setRightsAsHtml in interface Entryvalue - The text value of the atom:rights element.
public Text setRightsAsXhtml(String value)
Entry
setRightsAsXhtml in interface Entryvalue - The text value of the atom:rights element
public Text setRights(String value,
Text.Type type)
Entry
setRights in interface Entryvalue - The text value of the atom:rights elementtype - The text type
public Text setRights(Div value)
Entry
setRights in interface Entryvalue - The XHTML div for the atom:rights element
public String getRights()
Entry
getRights in interface Entrypublic Source getSource()
EntryReturns the source element for this entry.
RFC4287: If an atom:entry is copied from one feed into another feed, then the source atom:feed's metadata (all child elements of atom:feed other than the atom:entry elements) MAY be preserved within the copied entry by adding an atom:source child element, if it is not already present in the entry, and including some or all of the source feed's Metadata elements as the atom:source element's children. Such metadata SHOULD be preserved if the source atom:feed contains any of the child elements atom:author, atom:contributor, atom:rights, or atom:category and those child elements are not present in the source atom:entry.
getSource in interface Entrypublic Entry setSource(Source source)
EntryReturns the source element for this entry.
RFC4287: If an atom:entry is copied from one feed into another feed, then the source atom:feed's metadata (all child elements of atom:feed other than the atom:entry elements) MAY be preserved within the copied entry by adding an atom:source child element, if it is not already present in the entry, and including some or all of the source feed's Metadata elements as the atom:source element's children. Such metadata SHOULD be preserved if the source atom:feed contains any of the child elements atom:author, atom:contributor, atom:rights, or atom:category and those child elements are not present in the source atom:entry.
setSource in interface Entrysource - The atom:source elementpublic Text getSummaryElement()
Entry
getSummaryElement in interface Entrypublic Entry setSummaryElement(Text text)
Entry
setSummaryElement in interface Entrytext - The atom:summary elementpublic Text setSummary(String value)
Entry
setSummary in interface Entryvalue - The text value of the atom:summary element
public Text setSummaryAsHtml(String value)
Entry
setSummaryAsHtml in interface Entryvalue - The text value of the atom:summary element
public Text setSummaryAsXhtml(String value)
Entry
setSummaryAsXhtml in interface Entryvalue - The text value of the atom:summary element
public Text setSummary(String value,
Text.Type type)
Entry
setSummary in interface Entryvalue - The text value of the atom:summary elementtype - The Text.Type of the atom:summary element
public Text setSummary(Div value)
Entry
setSummary in interface Entryvalue - The XHTML div
public String getSummary()
Entry
getSummary in interface Entrypublic Text getTitleElement()
Entry
getTitleElement in interface Entrypublic Entry setTitleElement(Text title)
Entry
setTitleElement in interface Entrytitle - the atom:title elementpublic Text setTitle(String value)
Entry
setTitle in interface Entryvalue - The title value
public Text setTitleAsHtml(String value)
Entry
setTitleAsHtml in interface Entryvalue - The title value
public Text setTitleAsXhtml(String value)
Entry
setTitleAsXhtml in interface Entryvalue - The title value
public Text setTitle(String value,
Text.Type type)
Entry
setTitle in interface Entryvalue - The title valuetype - The Text.Type of the title
public Text setTitle(Div value)
Entry
setTitle in interface Entryvalue - The XHTML div
public String getTitle()
Entry
getTitle in interface Entrypublic DateTime getUpdatedElement()
Entry
getUpdatedElement in interface Entrypublic Entry setUpdatedElement(DateTime updated)
Entry
setUpdatedElement in interface Entryupdated - the atom:updated element.public Date getUpdated()
Entry
getUpdated in interface Entrypublic DateTime setUpdated(Date value)
Entry
setUpdated in interface Entryvalue - The new value
public DateTime setUpdated(String value)
Entry
setUpdated in interface Entryvalue - The new value
public DateTime getEditedElement()
Entry
getEditedElement in interface Entrypublic void setEditedElement(DateTime updated)
Entry
setEditedElement in interface Entryupdated - The app:edited elementpublic Date getEdited()
Entry
getEdited in interface Entrypublic DateTime setEdited(Date value)
Entry
setEdited in interface Entryvalue - The java.util.Date value
public DateTime setEdited(String value)
Entry
setEdited in interface Entryvalue - the serialized string value for app:edited
public Control getControl(boolean create)
Entry
getControl in interface Entrypublic Control getControl()
Entry
getControl in interface Entrypublic Entry setControl(Control control)
Entry
setControl in interface Entrycontrol - The app:contorl elementpublic Link getLink(String rel)
Entry
getLink in interface Entryrel - The link rel
public Link getAlternateLink()
Entry
getAlternateLink in interface Entrypublic Link getEnclosureLink()
Entry
getEnclosureLink in interface Entrypublic Link getEditLink()
Entry
getEditLink in interface Entrypublic Link getSelfLink()
Entry
getSelfLink in interface Entrypublic Link getEditMediaLink()
Entry
getEditMediaLink in interface Entrypublic IRI getLinkResolvedHref(String rel)
Entry
getLinkResolvedHref in interface Entryrel - The rel attribute value
public IRI getAlternateLinkResolvedHref()
Entry
getAlternateLinkResolvedHref in interface Entrypublic IRI getEnclosureLinkResolvedHref()
Entry
getEnclosureLinkResolvedHref in interface Entrypublic IRI getEditLinkResolvedHref()
Entry
getEditLinkResolvedHref in interface Entrypublic IRI getEditMediaLinkResolvedHref()
Entry
getEditMediaLinkResolvedHref in interface Entrypublic IRI getSelfLinkResolvedHref()
Entry
getSelfLinkResolvedHref in interface Entrypublic String getContent()
Entry
getContent in interface Entry
public InputStream getContentStream()
throws IOException
Entry
getContentStream in interface EntryIOExceptionpublic IRI getContentSrc()
Entry
getContentSrc in interface Entrypublic Content.Type getContentType()
Entry
getContentType in interface Entrypublic Text.Type getRightsType()
Entry
getRightsType in interface Entrypublic Text.Type getSummaryType()
Entry
getSummaryType in interface Entrypublic Text.Type getTitleType()
Entry
getTitleType in interface Entrypublic javax.activation.MimeType getContentMimeType()
Entry
getContentMimeType in interface Entry
public Link getAlternateLink(String type,
String hreflang)
Entry
getAlternateLink in interface Entrytype - The link media typehreflang - The link target language
public IRI getAlternateLinkResolvedHref(String type,
String hreflang)
Entry
getAlternateLinkResolvedHref in interface Entrytype - A target typehreflang - A target language
public Link getEditMediaLink(String type,
String hreflang)
Entry
getEditMediaLink in interface Entrytype - a media typehreflang - a target language
public IRI getEditMediaLinkResolvedHref(String type,
String hreflang)
Entry
getEditMediaLinkResolvedHref in interface Entrytype - A target typehreflang - A target language
public Entry setDraft(boolean draft)
Entry
setDraft in interface Entrydraft - true if this entry should be marked as a draftpublic boolean isDraft()
isDraft in interface Entrypublic Control addControl()
addControl in interface Entry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||