|
||||||||||
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 Entry
public List<Person> getAuthors()
Entry
getAuthors
in interface Entry
public Entry addAuthor(Person person)
Entry
addAuthor
in interface Entry
person
- The person to addpublic Person addAuthor(String name)
Entry
addAuthor
in interface Entry
name
- The name of the author
public Person addAuthor(String name, String email, String uri)
Entry
addAuthor
in interface Entry
name
- The name of the authoremail
- The author's email addressuri
- A URI belonging to the author
public List<Category> getCategories()
Entry
getCategories
in interface Entry
public List<Category> getCategories(String scheme)
Entry
getCategories
in interface Entry
public Entry addCategory(Category category)
Entry
addCategory
in interface Entry
category
- The atom:category element to addpublic Category addCategory(String term)
Entry
addCategory
in interface Entry
term
- The category term to add
public Category addCategory(String scheme, String term, String label)
Entry
addCategory
in interface Entry
scheme
- The category schemeterm
- The category termlabel
- The human readable label
public Content getContentElement()
Entry
getContentElement
in interface Entry
public Entry setContentElement(Content content)
Entry
setContentElement
in interface Entry
content
- The atom:content elementpublic Content setContent(String value)
setContent
in interface Entry
value
- The text value of the content
public Content setContentAsHtml(String value)
Entry
setContentAsHtml
in interface Entry
value
- The text value of the content. Special characters will be escaped (e.g. & will become &)
public Content setContentAsXhtml(String value)
Entry
setContentAsXhtml
in interface Entry
value
- The text value of the content. The text will be parsed as XHTML
public Content setContent(String value, Content.Type type)
setContent
in interface Entry
value
- The text value of the contenttype
- The Content Type of the text
public Content setContent(Element value)
setContent
in interface Entry
value
- 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 Entry
element
- The element valuemediaType
- The media type of the element
MimeTypeParseException
public Content setContent(javax.activation.DataHandler dataHandler)
setContent
in interface Entry
dataHandler
- The Data Handler containing the binary content needing Base64 encoding.
MimeTypeParseException
public Content setContent(javax.activation.DataHandler dataHandler, String mediatype)
setContent
in interface Entry
dataHandler
- The Data Handler containing the binary content needing Base64 encoding.
MimeTypeParseException
public Content setContent(InputStream in)
setContent
in interface Entry
in
- An inputstream providing binary content
public Content setContent(InputStream in, String mediatype)
setContent
in interface Entry
in
- An inputstream providing binary content
public Content setContent(String value, String mediatype)
setContent
in interface Entry
value
- the string value of the contentmediatype
- the media type for the content
MimeTypeParseException
public Content setContent(IRI uri, String mediatype)
setContent
in interface Entry
uri
- URI of the content (value of the "src" attribute).mediatype
- Type of the content.
MimeTypeParseException
IRISyntaxException
public List<Person> getContributors()
Entry
getContributors
in interface Entry
public Entry addContributor(Person person)
Entry
addContributor
in interface Entry
person
- The atom:contributor elementpublic Person addContributor(String name)
Entry
addContributor
in interface Entry
name
- The contributor name
public Person addContributor(String name, String email, String uri)
Entry
addContributor
in interface Entry
name
- The contributor nameemail
- The contributor's email addressuri
- The contributor's URI
public IRIElement getIdElement()
Entry
getIdElement
in interface Entry
public Entry setIdElement(IRIElement id)
Entry
setIdElement
in interface Entry
id
- The atom:id elementpublic IRI getId()
Entry
getId
in interface Entry
public IRIElement setId(String value)
Entry
setId
in interface Entry
value
- The atom:id value
public IRIElement newId()
Entry
newId
in interface Entry
public IRIElement setId(String value, boolean normalize)
Entry
setId
in interface Entry
value
- 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 Entry
public List<Link> getLinks(String rel)
Entry
getLinks
in interface Entry
rel
- The rel attribute value to look for
public List<Link> getLinks(String... rels)
Entry
getLinks
in interface Entry
public Entry addLink(Link link)
Entry
addLink
in interface Entry
link
- the atom:link to addpublic Link addLink(String href)
Entry
addLink
in interface Entry
href
- The IRI of the link
public Link addLink(String href, String rel)
Entry
addLink
in interface Entry
href
- 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 Entry
href
- 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 Entry
public Entry setPublishedElement(DateTime dateTime)
Entry
setPublishedElement
in interface Entry
dateTime
- the atom:published elementpublic Date getPublished()
Entry
getPublished
in interface Entry
public DateTime setPublished(Date value)
Entry
setPublished
in interface Entry
value
- The java.util.Date
public DateTime setPublished(String value)
Entry
setPublished
in interface Entry
value
- The serialized date
public Text getRightsElement()
Entry
The 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 Entry
public Entry setRightsElement(Text text)
Entry
The 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 Entry
text
- The atom:rights elementpublic Text setRights(String value)
Entry
setRights
in interface Entry
value
- The text value of the atom:rights element
public Text setRightsAsHtml(String value)
Entry
setRightsAsHtml
in interface Entry
value
- The text value of the atom:rights element.
public Text setRightsAsXhtml(String value)
Entry
setRightsAsXhtml
in interface Entry
value
- The text value of the atom:rights element
public Text setRights(String value, Text.Type type)
Entry
setRights
in interface Entry
value
- The text value of the atom:rights elementtype
- The text type
public Text setRights(Div value)
Entry
setRights
in interface Entry
value
- The XHTML div for the atom:rights element
public String getRights()
Entry
getRights
in interface Entry
public Source getSource()
Entry
Returns 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 Entry
public Entry setSource(Source source)
Entry
Returns 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 Entry
source
- The atom:source elementpublic Text getSummaryElement()
Entry
getSummaryElement
in interface Entry
public Entry setSummaryElement(Text text)
Entry
setSummaryElement
in interface Entry
text
- The atom:summary elementpublic Text setSummary(String value)
Entry
setSummary
in interface Entry
value
- The text value of the atom:summary element
public Text setSummaryAsHtml(String value)
Entry
setSummaryAsHtml
in interface Entry
value
- The text value of the atom:summary element
public Text setSummaryAsXhtml(String value)
Entry
setSummaryAsXhtml
in interface Entry
value
- The text value of the atom:summary element
public Text setSummary(String value, Text.Type type)
Entry
setSummary
in interface Entry
value
- 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 Entry
value
- The XHTML div
public String getSummary()
Entry
getSummary
in interface Entry
public Text getTitleElement()
Entry
getTitleElement
in interface Entry
public Entry setTitleElement(Text title)
Entry
setTitleElement
in interface Entry
title
- the atom:title elementpublic Text setTitle(String value)
Entry
setTitle
in interface Entry
value
- The title value
public Text setTitleAsHtml(String value)
Entry
setTitleAsHtml
in interface Entry
value
- The title value
public Text setTitleAsXhtml(String value)
Entry
setTitleAsXhtml
in interface Entry
value
- The title value
public Text setTitle(String value, Text.Type type)
Entry
setTitle
in interface Entry
value
- The title valuetype
- The Text.Type of the title
public Text setTitle(Div value)
Entry
setTitle
in interface Entry
value
- The XHTML div
public String getTitle()
Entry
getTitle
in interface Entry
public DateTime getUpdatedElement()
Entry
getUpdatedElement
in interface Entry
public Entry setUpdatedElement(DateTime updated)
Entry
setUpdatedElement
in interface Entry
updated
- the atom:updated element.public Date getUpdated()
Entry
getUpdated
in interface Entry
public DateTime setUpdated(Date value)
Entry
setUpdated
in interface Entry
value
- The new value
public DateTime setUpdated(String value)
Entry
setUpdated
in interface Entry
value
- The new value
public DateTime getEditedElement()
Entry
getEditedElement
in interface Entry
public void setEditedElement(DateTime updated)
Entry
setEditedElement
in interface Entry
updated
- The app:edited elementpublic Date getEdited()
Entry
getEdited
in interface Entry
public DateTime setEdited(Date value)
Entry
setEdited
in interface Entry
value
- The java.util.Date value
public DateTime setEdited(String value)
Entry
setEdited
in interface Entry
value
- the serialized string value for app:edited
public Control getControl(boolean create)
Entry
getControl
in interface Entry
public Control getControl()
Entry
getControl
in interface Entry
public Entry setControl(Control control)
Entry
setControl
in interface Entry
control
- The app:contorl elementpublic Link getLink(String rel)
Entry
getLink
in interface Entry
rel
- The link rel
public Link getAlternateLink()
Entry
getAlternateLink
in interface Entry
public Link getEnclosureLink()
Entry
getEnclosureLink
in interface Entry
public Link getEditLink()
Entry
getEditLink
in interface Entry
public Link getSelfLink()
Entry
getSelfLink
in interface Entry
public Link getEditMediaLink()
Entry
getEditMediaLink
in interface Entry
public IRI getLinkResolvedHref(String rel)
Entry
getLinkResolvedHref
in interface Entry
rel
- The rel attribute value
public IRI getAlternateLinkResolvedHref()
Entry
getAlternateLinkResolvedHref
in interface Entry
public IRI getEnclosureLinkResolvedHref()
Entry
getEnclosureLinkResolvedHref
in interface Entry
public IRI getEditLinkResolvedHref()
Entry
getEditLinkResolvedHref
in interface Entry
public IRI getEditMediaLinkResolvedHref()
Entry
getEditMediaLinkResolvedHref
in interface Entry
public IRI getSelfLinkResolvedHref()
Entry
getSelfLinkResolvedHref
in interface Entry
public String getContent()
Entry
getContent
in interface Entry
public InputStream getContentStream() throws IOException
Entry
getContentStream
in interface Entry
IOException
public IRI getContentSrc()
Entry
getContentSrc
in interface Entry
public Content.Type getContentType()
Entry
getContentType
in interface Entry
public Text.Type getRightsType()
Entry
getRightsType
in interface Entry
public Text.Type getSummaryType()
Entry
getSummaryType
in interface Entry
public Text.Type getTitleType()
Entry
getTitleType
in interface Entry
public javax.activation.MimeType getContentMimeType()
Entry
getContentMimeType
in interface Entry
public Link getAlternateLink(String type, String hreflang)
Entry
getAlternateLink
in interface Entry
type
- The link media typehreflang
- The link target language
public IRI getAlternateLinkResolvedHref(String type, String hreflang)
Entry
getAlternateLinkResolvedHref
in interface Entry
type
- A target typehreflang
- A target language
public Link getEditMediaLink(String type, String hreflang)
Entry
getEditMediaLink
in interface Entry
type
- a media typehreflang
- a target language
public IRI getEditMediaLinkResolvedHref(String type, String hreflang)
Entry
getEditMediaLinkResolvedHref
in interface Entry
type
- A target typehreflang
- A target language
public Entry setDraft(boolean draft)
Entry
setDraft
in interface Entry
draft
- true if this entry should be marked as a draftpublic boolean isDraft()
isDraft
in interface Entry
public Control addControl()
addControl
in interface Entry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |