public class FOMEntry extends FOMExtensibleElement implements Entry
CDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODEACCEPT, AID, ALTERNATE, APP_MEDIA_TYPE, APP_NS, APP_NS_PRE_RFC, APP_PREFIX, ATITLE, ATOM_MEDIA_TYPE, ATOM_NS, AURI, AUTHOR, BASE, CAT_MEDIA_TYPE, CATEGORIES, CATEGORY, CLASS, COLLECTION, CONFIG_FACTORY, CONFIG_PARSER, CONFIG_PARSERFACTORY, CONFIG_STREAMWRITER, CONFIG_WRITER, CONFIG_WRITERFACTORY, CONFIG_XPATH, CONTENT, CONTRIBUTOR, CONTROL, CONTROL_NS, CONTROL_PREFIX, DEFAULT_FACTORY, DEFAULT_PARSER, DEFAULT_PARSERFACTORY, DEFAULT_STREAMWRITER, DEFAULT_WRITER, DEFAULT_WRITERFACTORY, DEFAULT_XPATH, DIV, DRAFT, EDITED, EMAIL, ENTRY, ENTRY_MEDIA_TYPE, FEED, FEED_MEDIA_TYPE, FIXED, GENERATOR, HREF, HREFLANG, HTML, ICON, ID, LABEL, LANG, LENGTH, LINK, LN_ACCEPT, LN_ALTERNATE, LN_ALTERNATE_MULTIPART_RELATED, LN_AUTHOR, LN_BASE, LN_CATEGORIES, LN_CATEGORY, LN_CLASS, LN_COLLECTION, LN_CONTENT, LN_CONTRIBUTOR, LN_CONTROL, LN_DIV, LN_DRAFT, LN_EDITED, LN_EMAIL, LN_ENTRY, LN_FEED, LN_FIXED, LN_GENERATOR, LN_HREF, LN_HREFLANG, LN_ICON, LN_ID, LN_LABEL, LN_LANG, LN_LENGTH, LN_LINK, LN_LOGO, LN_NAME, LN_PUBLISHED, LN_REL, LN_RIGHTS, LN_SCHEME, LN_SERVICE, LN_SOURCE, LN_SPACE, LN_SRC, LN_SUBTITLE, LN_SUMMARY, LN_TERM, LN_TITLE, LN_TYPE, LN_UPDATED, LN_URI, LN_VERSION, LN_WORKSPACE, LOGO, MULTIPART_RELATED_TYPE, NAME, NAMED_PARSER, NAMED_WRITER, NO, PRE_RFC_ACCEPT, PRE_RFC_CATEGORIES, PRE_RFC_COLLECTION, PRE_RFC_CONTROL, PRE_RFC_DRAFT, PRE_RFC_EDITED, PRE_RFC_SERVICE, PRE_RFC_WORKSPACE, PREFIX, PREFIXED_TITLE, PUBLISHED, REL, RIGHTS, SCHEME, SERVICE, SOURCE, SPACE, SRC, STREAM_WRITER, SUBTITLE, SUMMARY, TERM, TEXT, TITLE, TYPE, UPDATED, URI, VERSION, WORKSPACE, XHTML, XHTML_NS, XML, XML_MEDIA_TYPE, XML_NS, YESARRAY_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, XMLNS_NS_PREFIX, XMLNS_NS_URI, XMLNS_PREFIX, XMLNS_URI| Constructor and Description |
|---|
FOMEntry() |
| Modifier and Type | Method and Description |
|---|---|
Entry |
addAuthor(Person person)
Adds an individual author to the entry
|
Person |
addAuthor(java.lang.String name)
Adds an author
|
Person |
addAuthor(java.lang.String name,
java.lang.String email,
java.lang.String uri)
Adds an author
|
Entry |
addCategory(Category category)
Adds an individual category to the entry
|
Category |
addCategory(java.lang.String term)
Adds a category to the entry
|
Category |
addCategory(java.lang.String scheme,
java.lang.String term,
java.lang.String label)
Adds a category to the entry
|
Entry |
addContributor(Person person)
Adds an individual contributor to this entry
|
Person |
addContributor(java.lang.String name)
Adds a contributor
|
Person |
addContributor(java.lang.String name,
java.lang.String email,
java.lang.String uri)
Adds an author
|
Control |
addControl() |
Entry |
addLink(Link link)
Adds an individual link to the entry
|
Link |
addLink(java.lang.String href)
Add a link to the entry
|
Link |
addLink(java.lang.String href,
java.lang.String rel)
Add a link to the entry
|
Link |
addLink(java.lang.String href,
java.lang.String rel,
java.lang.String type,
java.lang.String title,
java.lang.String hreflang,
long length)
Add a link to the entry
|
Link |
getAlternateLink()
Returns this entries first alternate link
|
Link |
getAlternateLink(java.lang.String type,
java.lang.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(java.lang.String type,
java.lang.String hreflang)
Return a link href resolved against the in-scope Base URI
|
Person |
getAuthor()
Returns the first author listed for the entry
|
java.util.List<Person> |
getAuthors()
Returns the complete set of authors listed for the entry
|
java.util.List<Category> |
getCategories()
Lists the complete set of categories listed for the entry
|
java.util.List<Category> |
getCategories(java.lang.String scheme)
Lists the complete set of categories using the specified scheme
A listing of atom:category elements using the specified scheme
|
java.lang.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
|
java.io.InputStream |
getContentStream()
Returns an input stream from the content element value.
|
Content.Type |
getContentType()
Returns the content type
|
java.util.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.
|
java.util.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(java.lang.String type,
java.lang.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(java.lang.String type,
java.lang.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(java.lang.String rel)
Returns the first link with the specified rel attribute value
|
IRI |
getLinkResolvedHref(java.lang.String rel)
Return a link href resolved against the in-scope Base URI
|
java.util.List<Link> |
getLinks()
Lists the complete set of links for this entry
|
java.util.List<Link> |
getLinks(java.lang.String... rels)
Lists the complete set of links using the specified rel attributes values
|
java.util.List<Link> |
getLinks(java.lang.String rel)
Lists the complete set of links using the specified rel attribute value
|
java.util.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...
|
java.lang.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.
|
java.lang.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
|
java.lang.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
|
java.util.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,
java.lang.String mediatype)
Sets the content for this entry
|
Content |
setContent(Element value)
Sets the content for this entry
|
Content |
setContent(Element element,
java.lang.String mediaType)
Sets the content for this entry
|
Content |
setContent(java.io.InputStream in)
Sets the content for this entry
|
Content |
setContent(java.io.InputStream in,
java.lang.String mediatype)
Sets the content for this entry
|
Content |
setContent(IRI uri,
java.lang.String mediatype)
Sets the content for this entry
|
Content |
setContent(java.lang.String value)
Sets the content for this entry as @type="text"
|
Content |
setContent(java.lang.String value,
Content.Type type)
Sets the content for this entry
|
Content |
setContent(java.lang.String value,
java.lang.String mediatype)
Sets the content for this entry
|
Content |
setContentAsHtml(java.lang.String value)
Sets the content for this entry as @type="html"
|
Content |
setContentAsXhtml(java.lang.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(java.util.Date value)
Set the value of app:edited
|
DateTime |
setEdited(java.lang.String value)
Set the value of app:edited
|
void |
setEditedElement(DateTime updated)
Set the app:edited element
|
IRIElement |
setId(java.lang.String value)
Sets the universally unique identifier for this entry
|
IRIElement |
setId(java.lang.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(java.util.Date value)
Set the value of the atom:published element
|
DateTime |
setPublished(java.lang.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(java.lang.String value)
Sets the value of the rights as @type="text"
|
Text |
setRights(java.lang.String value,
Text.Type type)
Sets the value of the rights
|
Text |
setRightsAsHtml(java.lang.String value)
Sets the value of the rights as @type="html".
|
Text |
setRightsAsXhtml(java.lang.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(java.lang.String value)
Sets the value of the summary as @type="text"
|
Text |
setSummary(java.lang.String value,
Text.Type type)
Sets the value of the summary
|
Text |
setSummaryAsHtml(java.lang.String value)
Sets the value of the summary as @type="html"
|
Text |
setSummaryAsXhtml(java.lang.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(java.lang.String value)
Sets the value of the title as @type="text"
|
Text |
setTitle(java.lang.String value,
Text.Type type)
Sets the value of the title
|
Text |
setTitleAsHtml(java.lang.String value)
Sets the value of the title as @type="html"
|
Text |
setTitleAsXhtml(java.lang.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(java.util.Date value)
Set the atom:updated value
|
DateTime |
setUpdated(java.lang.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.
|
addExtension, addExtension, addExtension, addExtension, addExtension, addExtensions, addSimpleExtension, addSimpleExtension, getExtension, getExtension, getExtensions, getExtensions, getExtensions, getSimpleExtension, getSimpleExtensionaddComment, clone, complete, declareNS, getAttributes, getAttributeValue, getAttributeValue, getBaseUri, getDefaultWriterOptions, getDocument, getElements, getExtensionAttributes, getFactory, getFirstChild, getFirstChild, getLanguage, getLanguageTag, getLocale, getMustPreserveWhitespace, getNamespaces, getNextSibling, getNextSibling, getParentElement, getPreviousSibling, getPreviousSibling, getResolvedBaseUri, getText, iterator, removeAttribute, removeAttribute, setAttributeValue, setAttributeValue, setBaseUri, setBaseUri, setLanguage, setMustPreserveWhitespace, setParentElement, setText, setText, toFormattedString, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeToaddAttribute, addAttribute, addChild, build, buildNext, buildWithAttachments, cloneOMElement, declareDefaultNamespace, declareNamespace, declareNamespace, detach, discard, findNamespace, findNamespaceURI, getAllAttributes, getAllDeclaredNamespaces, getAttribute, getBuilder, getChildElements, getChildren, getChildrenWithName, getDefaultNamespace, getFirstChildWithName, getFirstElement, getFirstOMChild, getLineNumber, getLocalName, getNamespace, getNextOMSibling, getQName, getTextAsQName, getTrimmedText, getType, getXMLStreamReader, getXMLStreamReaderWithoutCaching, internalSerialize, internalSerializeAndConsume, isComplete, removeAttribute, resolveQName, setBuilder, setFirstChild, setLineNumber, setLocalName, setNamespace, setNamespaceWithNoFindInCurrentScope, setText, toString, toStringWithConsumegetOMFactory, getParent, getPreviousOMSibling, insertSiblingAfter, insertSiblingBefore, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setComplete, setNextOMSibling, setParent, setPreviousOMSibling, setTypeequals, getClass, hashCode, notify, notifyAll, wait, wait, waitaddExtension, addExtension, addExtension, addExtension, addExtension, addSimpleExtension, addSimpleExtension, getExtension, getExtension, getExtensions, getExtensions, getExtensions, getSimpleExtension, getSimpleExtensiondeclareNS, 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, setTextaddComment, clone, complete, getDefaultWriterOptions, getFactory, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeToaddAttribute, 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, toStringWithConsumebuild, buildWithAttachments, detach, discard, getNextOMSibling, getOMFactory, getParent, getPreviousOMSibling, getType, insertSiblingAfter, insertSiblingBefore, isComplete, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsumepublic Person getAuthor()
Entrypublic java.util.List<Person> getAuthors()
EntrygetAuthors in interface Entrypublic Entry addAuthor(Person person)
Entrypublic Person addAuthor(java.lang.String name)
Entrypublic Person addAuthor(java.lang.String name, java.lang.String email, java.lang.String uri)
Entrypublic java.util.List<Category> getCategories()
EntrygetCategories in interface Entrypublic java.util.List<Category> getCategories(java.lang.String scheme)
EntrygetCategories in interface Entrypublic Entry addCategory(Category category)
EntryaddCategory in interface Entrycategory - The atom:category element to addpublic Category addCategory(java.lang.String term)
EntryaddCategory in interface Entryterm - The category term to addpublic Category addCategory(java.lang.String scheme, java.lang.String term, java.lang.String label)
EntryaddCategory in interface Entryscheme - The category schemeterm - The category termlabel - The human readable labelpublic Content getContentElement()
EntrygetContentElement in interface Entrypublic Entry setContentElement(Content content)
EntrysetContentElement in interface Entrycontent - The atom:content elementpublic Content setContent(java.lang.String value)
setContent in interface Entryvalue - The text value of the contentpublic Content setContentAsHtml(java.lang.String value)
EntrysetContentAsHtml in interface Entryvalue - The text value of the content. Special characters will be escaped (e.g. & will become &)public Content setContentAsXhtml(java.lang.String value)
EntrysetContentAsXhtml in interface Entryvalue - The text value of the content. The text will be parsed as XHTMLpublic Content setContent(java.lang.String value, Content.Type type)
setContent in interface Entryvalue - The text value of the contenttype - The Content Type of the textpublic 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, java.lang.String mediaType)
setContent in interface Entryelement - The element valuemediaType - The media type of the elementMimeTypeParseExceptionpublic Content setContent(javax.activation.DataHandler dataHandler)
setContent in interface EntrydataHandler - The Data Handler containing the binary content needing Base64 encoding.MimeTypeParseExceptionpublic Content setContent(javax.activation.DataHandler dataHandler, java.lang.String mediatype)
setContent in interface EntrydataHandler - The Data Handler containing the binary content needing Base64 encoding.MimeTypeParseExceptionpublic Content setContent(java.io.InputStream in)
setContent in interface Entryin - An inputstream providing binary contentpublic Content setContent(java.io.InputStream in, java.lang.String mediatype)
setContent in interface Entryin - An inputstream providing binary contentpublic Content setContent(java.lang.String value, java.lang.String mediatype)
setContent in interface Entryvalue - the string value of the contentmediatype - the media type for the contentMimeTypeParseExceptionpublic Content setContent(IRI uri, java.lang.String mediatype)
setContent in interface Entryuri - URI of the content (value of the "src" attribute).mediatype - Type of the content.MimeTypeParseExceptionIRISyntaxExceptionpublic java.util.List<Person> getContributors()
EntrygetContributors in interface Entrypublic Entry addContributor(Person person)
EntryaddContributor in interface Entryperson - The atom:contributor elementpublic Person addContributor(java.lang.String name)
EntryaddContributor in interface Entryname - The contributor namepublic Person addContributor(java.lang.String name, java.lang.String email, java.lang.String uri)
EntryaddContributor in interface Entryname - The contributor nameemail - The contributor's email addressuri - The contributor's URIpublic IRIElement getIdElement()
EntrygetIdElement in interface Entrypublic Entry setIdElement(IRIElement id)
EntrysetIdElement in interface Entryid - The atom:id elementpublic IRI getId()
Entrypublic IRIElement setId(java.lang.String value)
Entrypublic IRIElement newId()
Entrypublic IRIElement setId(java.lang.String value, boolean normalize)
Entrypublic java.util.List<Link> getLinks()
Entrypublic java.util.List<Link> getLinks(java.lang.String rel)
Entrypublic java.util.List<Link> getLinks(java.lang.String... rels)
Entrypublic Entry addLink(Link link)
Entrypublic Link addLink(java.lang.String href)
Entrypublic Link addLink(java.lang.String href, java.lang.String rel)
Entrypublic Link addLink(java.lang.String href, java.lang.String rel, java.lang.String type, java.lang.String title, java.lang.String hreflang, long length)
Entrypublic DateTime getPublishedElement()
EntrygetPublishedElement in interface Entrypublic Entry setPublishedElement(DateTime dateTime)
EntrysetPublishedElement in interface EntrydateTime - the atom:published elementpublic java.util.Date getPublished()
EntrygetPublished in interface Entrypublic DateTime setPublished(java.util.Date value)
EntrysetPublished in interface Entryvalue - The java.util.Datepublic DateTime setPublished(java.lang.String value)
EntrysetPublished in interface Entryvalue - The serialized datepublic 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(java.lang.String value)
Entrypublic Text setRightsAsHtml(java.lang.String value)
EntrysetRightsAsHtml in interface Entryvalue - The text value of the atom:rights element.public Text setRightsAsXhtml(java.lang.String value)
EntrysetRightsAsXhtml in interface Entryvalue - The text value of the atom:rights elementpublic Text setRights(java.lang.String value, Text.Type type)
Entrypublic Text setRights(Div value)
Entrypublic java.lang.String getRights()
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.
public 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.
public Text getSummaryElement()
EntrygetSummaryElement in interface Entrypublic Entry setSummaryElement(Text text)
EntrysetSummaryElement in interface Entrytext - The atom:summary elementpublic Text setSummary(java.lang.String value)
EntrysetSummary in interface Entryvalue - The text value of the atom:summary elementpublic Text setSummaryAsHtml(java.lang.String value)
EntrysetSummaryAsHtml in interface Entryvalue - The text value of the atom:summary elementpublic Text setSummaryAsXhtml(java.lang.String value)
EntrysetSummaryAsXhtml in interface Entryvalue - The text value of the atom:summary elementpublic Text setSummary(java.lang.String value, Text.Type type)
EntrysetSummary in interface Entryvalue - The text value of the atom:summary elementtype - The Text.Type of the atom:summary elementpublic Text setSummary(Div value)
EntrysetSummary in interface Entryvalue - The XHTML divpublic java.lang.String getSummary()
EntrygetSummary in interface Entrypublic Text getTitleElement()
EntrygetTitleElement in interface Entrypublic Entry setTitleElement(Text title)
EntrysetTitleElement in interface Entrytitle - the atom:title elementpublic Text setTitle(java.lang.String value)
Entrypublic Text setTitleAsHtml(java.lang.String value)
EntrysetTitleAsHtml in interface Entryvalue - The title valuepublic Text setTitleAsXhtml(java.lang.String value)
EntrysetTitleAsXhtml in interface Entryvalue - The title valuepublic Text setTitle(java.lang.String value, Text.Type type)
Entrypublic Text setTitle(Div value)
Entrypublic java.lang.String getTitle()
Entrypublic DateTime getUpdatedElement()
EntrygetUpdatedElement in interface Entrypublic Entry setUpdatedElement(DateTime updated)
EntrysetUpdatedElement in interface Entryupdated - the atom:updated element.public java.util.Date getUpdated()
EntrygetUpdated in interface Entrypublic DateTime setUpdated(java.util.Date value)
EntrysetUpdated in interface Entryvalue - The new valuepublic DateTime setUpdated(java.lang.String value)
EntrysetUpdated in interface Entryvalue - The new valuepublic DateTime getEditedElement()
EntrygetEditedElement in interface Entrypublic void setEditedElement(DateTime updated)
EntrysetEditedElement in interface Entryupdated - The app:edited elementpublic java.util.Date getEdited()
Entrypublic DateTime setEdited(java.util.Date value)
Entrypublic DateTime setEdited(java.lang.String value)
Entrypublic Control getControl(boolean create)
EntrygetControl in interface Entrypublic Control getControl()
EntrygetControl in interface Entrypublic Entry setControl(Control control)
EntrysetControl in interface Entrycontrol - The app:contorl elementpublic Link getLink(java.lang.String rel)
Entrypublic Link getAlternateLink()
EntrygetAlternateLink in interface Entrypublic Link getEnclosureLink()
EntrygetEnclosureLink in interface Entrypublic Link getEditLink()
EntrygetEditLink in interface Entrypublic Link getSelfLink()
EntrygetSelfLink in interface Entrypublic Link getEditMediaLink()
EntrygetEditMediaLink in interface Entrypublic IRI getLinkResolvedHref(java.lang.String rel)
EntrygetLinkResolvedHref in interface Entryrel - The rel attribute valuepublic IRI getAlternateLinkResolvedHref()
EntrygetAlternateLinkResolvedHref in interface Entrypublic IRI getEnclosureLinkResolvedHref()
EntrygetEnclosureLinkResolvedHref in interface Entrypublic IRI getEditLinkResolvedHref()
EntrygetEditLinkResolvedHref in interface Entrypublic IRI getEditMediaLinkResolvedHref()
EntrygetEditMediaLinkResolvedHref in interface Entrypublic IRI getSelfLinkResolvedHref()
EntrygetSelfLinkResolvedHref in interface Entrypublic java.lang.String getContent()
EntrygetContent in interface Entrypublic java.io.InputStream getContentStream()
throws java.io.IOException
EntrygetContentStream in interface Entryjava.io.IOExceptionpublic IRI getContentSrc()
EntrygetContentSrc in interface Entrypublic Content.Type getContentType()
EntrygetContentType in interface Entrypublic Text.Type getRightsType()
EntrygetRightsType in interface Entrypublic Text.Type getSummaryType()
EntrygetSummaryType in interface Entrypublic Text.Type getTitleType()
EntrygetTitleType in interface Entrypublic javax.activation.MimeType getContentMimeType()
EntrygetContentMimeType in interface Entrypublic Link getAlternateLink(java.lang.String type, java.lang.String hreflang)
EntrygetAlternateLink in interface Entrytype - The link media typehreflang - The link target languagepublic IRI getAlternateLinkResolvedHref(java.lang.String type, java.lang.String hreflang)
EntrygetAlternateLinkResolvedHref in interface Entrytype - A target typehreflang - A target languagepublic Link getEditMediaLink(java.lang.String type, java.lang.String hreflang)
EntrygetEditMediaLink in interface Entrytype - a media typehreflang - a target languagepublic IRI getEditMediaLinkResolvedHref(java.lang.String type, java.lang.String hreflang)
EntrygetEditMediaLinkResolvedHref in interface Entrytype - A target typehreflang - A target languagepublic Entry setDraft(boolean draft)
Entrypublic boolean isDraft()
public Control addControl()
addControl in interface EntryCopyright © 2010 - 2020 Adobe. All Rights Reserved