Interface Entry
-
- All Superinterfaces:
Base
,java.lang.Cloneable
,Element
,ExtensibleElement
,java.lang.Iterable<Element>
@Deprecated(since="2021-07-29") public interface Entry extends ExtensibleElement
Deprecated.This API is deprecated as Apache Abdera is a retired project since 2017.Represents an Atom Entry element.
Per RFC4287:
The "atom:entry" element represents an individual entry, acting as a container for metadata and data associated with the entry. This element can appear as a child of the atom:feed element, or it can appear as the document (i.e., top-level) element of a stand-alone Atom Entry Document. atomEntry = element atom:entry { atomCommonAttributes, (atomAuthor* & atomCategory* & atomContent? & atomContributor* & atomId & atomLink* & atomPublished? & atomRights? & atomSource? & atomSummary? & atomTitle & atomUpdated & extensionElement*) } This specification assigns no significance to the order of appearance of the child elements of atom:entry. The following child elements are defined by this specification (note that it requires the presence of some of these elements): o atom:entry elements MUST contain one or more atom:author elements, unless the atom:entry contains an atom:source element that contains an atom:author element or, in an Atom Feed Document, the atom:feed element contains an atom:author element itself. o atom:entry elements MAY contain any number of atom:category elements. o atom:entry elements MUST NOT contain more than one atom:content element. o atom:entry elements MAY contain any number of atom:contributor elements. o atom:entry elements MUST contain exactly one atom:id element. o atom:entry elements that contain no child atom:content element MUST contain at least one atom:link element with a rel attribute value of "alternate". o atom:entry elements MUST NOT contain more than one atom:link element with a rel attribute value of "alternate" that has the same combination of type and hreflang attribute values. o atom:entry elements MAY contain additional atom:link elements beyond those described above. o atom:entry elements MUST NOT contain more than one atom:published element. o atom:entry elements MUST NOT contain more than one atom:rights element. o atom:entry elements MUST NOT contain more than one atom:source element. o atom:entry elements MUST contain an atom:summary element in either of the following cases: * the atom:entry contains an atom:content that has a "src" attribute (and is thus empty). * the atom:entry contains content that is encoded in Base64; i.e., the "type" attribute of atom:content is a MIME media type [MIMEREG], but is not an XML media type [RFC3023], does not begin with "text/", and does not end with "/xml" or "+xml". o atom:entry elements MUST NOT contain more than one atom:summary element. o atom:entry elements MUST contain exactly one atom:title element. o atom:entry elements MUST contain exactly one atom:updated element.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Person
addAuthor(java.lang.String name)
Deprecated.Adds an authorPerson
addAuthor(java.lang.String name, java.lang.String email, java.lang.String uri)
Deprecated.Adds an authorEntry
addAuthor(Person person)
Deprecated.Adds an individual author to the entryCategory
addCategory(java.lang.String term)
Deprecated.Adds a category to the entryCategory
addCategory(java.lang.String scheme, java.lang.String term, java.lang.String label)
Deprecated.Adds a category to the entryEntry
addCategory(Category category)
Deprecated.Adds an individual category to the entryPerson
addContributor(java.lang.String name)
Deprecated.Adds a contributorPerson
addContributor(java.lang.String name, java.lang.String email, java.lang.String uri)
Deprecated.Adds an authorEntry
addContributor(Person person)
Deprecated.Adds an individual contributor to this entryControl
addControl()
Deprecated.Link
addLink(java.lang.String href)
Deprecated.Add a link to the entryLink
addLink(java.lang.String href, java.lang.String rel)
Deprecated.Add a link to the entryLink
addLink(java.lang.String href, java.lang.String rel, java.lang.String type, java.lang.String title, java.lang.String hreflang, long length)
Deprecated.Add a link to the entryEntry
addLink(Link link)
Deprecated.Adds an individual link to the entryLink
getAlternateLink()
Deprecated.Returns this entries first alternate linkLink
getAlternateLink(java.lang.String type, java.lang.String hreflang)
Deprecated.Returns the first alternate link matching the specified type and hreflangIRI
getAlternateLinkResolvedHref()
Deprecated.Return a link href resolved against the in-scope Base URIIRI
getAlternateLinkResolvedHref(java.lang.String type, java.lang.String hreflang)
Deprecated.Return a link href resolved against the in-scope Base URIPerson
getAuthor()
Deprecated.Returns the first author listed for the entryjava.util.List<Person>
getAuthors()
Deprecated.Returns the complete set of authors listed for the entryjava.util.List<Category>
getCategories()
Deprecated.Lists the complete set of categories listed for the entryjava.util.List<Category>
getCategories(java.lang.String scheme)
Deprecated.Lists the complete set of categories using the specified scheme A listing of atom:category elements using the specified schemejava.lang.String
getContent()
Deprecated.Returns the text of the content elementContent
getContentElement()
Deprecated.Returns the content for this entryjavax.activation.MimeType
getContentMimeType()
Deprecated.Returns the media type of the content type or null if type equals 'text', 'html' or 'xhtml'IRI
getContentSrc()
Deprecated.Returns the content/@src attribute, if anyjava.io.InputStream
getContentStream()
Deprecated.Returns an input stream from the content element value.Content.Type
getContentType()
Deprecated.Returns the content typejava.util.List<Person>
getContributors()
Deprecated.Lists the complete set of contributors for this entryControl
getControl()
Deprecated.Returns this entries Atom Publishing Protocol control elementControl
getControl(boolean create)
Deprecated.Returns this entries Atom Publishing Protocol control element.java.util.Date
getEdited()
Deprecated.Return the value of app:editedDateTime
getEditedElement()
Deprecated.APP Introduces a new app:edited element whose value changes every time the entry is updatedLink
getEditLink()
Deprecated.Returns this entries first edit linkIRI
getEditLinkResolvedHref()
Deprecated.Return a link href resolved against the in-scope Base URILink
getEditMediaLink()
Deprecated.Returns this entries first edit-media link (if any)Link
getEditMediaLink(java.lang.String type, java.lang.String hreflang)
Deprecated.Returns the first edit-media link matching the specified type and hreflangIRI
getEditMediaLinkResolvedHref()
Deprecated.Return a link href resolved against the in-scope Base URIIRI
getEditMediaLinkResolvedHref(java.lang.String type, java.lang.String hreflang)
Deprecated.Return a link href resolved against the in-scope Base URILink
getEnclosureLink()
Deprecated.Returns this entries first enclosure linkIRI
getEnclosureLinkResolvedHref()
Deprecated.Return a link href resolved against the in-scope Base URIIRI
getId()
Deprecated.Returns the universally unique identifier for this entryIRIElement
getIdElement()
Deprecated.Returns the universally unique identifier for this entryLink
getLink(java.lang.String rel)
Deprecated.Returns the first link with the specified rel attribute valueIRI
getLinkResolvedHref(java.lang.String rel)
Deprecated.Return a link href resolved against the in-scope Base URIjava.util.List<Link>
getLinks()
Deprecated.Lists the complete set of links for this entryjava.util.List<Link>
getLinks(java.lang.String rel)
Deprecated.Lists the complete set of links using the specified rel attribute valuejava.util.List<Link>
getLinks(java.lang.String... rel)
Deprecated.Lists the complete set of links using the specified rel attributes valuesjava.util.Date
getPublished()
Deprecated.Return the value of the atom:published elementDateTime
getPublishedElement()
Deprecated.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()
Deprecated.Return the String value of the atom:rights elementText
getRightsElement()
Deprecated.The rights element is typically used to convey a human readable copyright (e.g.Text.Type
getRightsType()
Deprecated.Return the @type of the atom:rights elementLink
getSelfLink()
Deprecated.Returns this entries first self linkIRI
getSelfLinkResolvedHref()
Deprecated.Return a link href resolved against the in-scope Base URISource
getSource()
Deprecated.Returns the source element for this entry.java.lang.String
getSummary()
Deprecated.Returns the text string value of this summaryText
getSummaryElement()
Deprecated.RFC4287: The "atom:summary" element is a Text construct that conveys a short summary, abstract, or excerpt of an entry...Text.Type
getSummaryType()
Deprecated.Returns the summary typejava.lang.String
getTitle()
Deprecated.Returns the text string value of the title elementText
getTitleElement()
Deprecated.RFC4287: The "atom:title" element is a Text construct that conveys a human-readable title for an entry or feed.Text.Type
getTitleType()
Deprecated.Returns the @type of this entries titlejava.util.Date
getUpdated()
Deprecated.Return atom:updatedDateTime
getUpdatedElement()
Deprecated.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()
Deprecated.Returns true if this entry is a draftIRIElement
newId()
Deprecated.Creates a new randomized atom:id for the entryContent
setContent(java.io.InputStream inputStream)
Deprecated.Sets the content for this entryContent
setContent(java.io.InputStream inputStream, java.lang.String mediatype)
Deprecated.Sets the content for this entryContent
setContent(java.lang.String value)
Deprecated.Sets the content for this entry as @type="text"Content
setContent(java.lang.String value, java.lang.String mediatype)
Deprecated.Sets the content for this entryContent
setContent(java.lang.String value, Content.Type type)
Deprecated.Sets the content for this entryContent
setContent(javax.activation.DataHandler dataHandler)
Deprecated.Sets the content for this entryContent
setContent(javax.activation.DataHandler dataHandler, java.lang.String mediatype)
Deprecated.Sets the content for this entryContent
setContent(IRI uri, java.lang.String mediatype)
Deprecated.Sets the content for this entry as out of line.Content
setContent(Element value)
Deprecated.Sets the content for this entryContent
setContent(Element element, java.lang.String mediaType)
Deprecated.Sets the content for this entryContent
setContentAsHtml(java.lang.String value)
Deprecated.Sets the content for this entry as @type="html"Content
setContentAsXhtml(java.lang.String value)
Deprecated.Sets the content for this entry as @type="xhtml"Entry
setContentElement(Content content)
Deprecated.Sets the content for this entryEntry
setControl(Control control)
Deprecated.Sets this entries Atom Publishing Protocol control elementEntry
setDraft(boolean draft)
Deprecated.Sets whether or not this entry is a draftDateTime
setEdited(java.lang.String value)
Deprecated.Set the value of app:editedDateTime
setEdited(java.util.Date value)
Deprecated.Set the value of app:editedvoid
setEditedElement(DateTime modified)
Deprecated.Set the app:edited elementIRIElement
setId(java.lang.String id)
Deprecated.Sets the universally unique identifier for this entryIRIElement
setId(java.lang.String id, boolean normalize)
Deprecated.Sets the universally unique identifier for this entryEntry
setIdElement(IRIElement id)
Deprecated.Sets the universally unique identifier for this entryDateTime
setPublished(java.lang.String value)
Deprecated.Set the value of the atom:published element using the serialized string valueDateTime
setPublished(java.util.Date value)
Deprecated.Set the value of the atom:published elementEntry
setPublishedElement(DateTime dateTime)
Deprecated.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(java.lang.String value)
Deprecated.Sets the value of the rights as @type="text"Text
setRights(java.lang.String value, Text.Type type)
Deprecated.Sets the value of the rightsText
setRights(Div value)
Deprecated.Sets the value of the right as @type="xhtml"Text
setRightsAsHtml(java.lang.String value)
Deprecated.Sets the value of the rights as @type="html".Text
setRightsAsXhtml(java.lang.String value)
Deprecated.Sets the value of the rights as @type="xhtml"Entry
setRightsElement(Text text)
Deprecated.The rights element is typically used to convey a human readable copyright (e.g.Entry
setSource(Source source)
Deprecated.Returns the source element for this entry.Text
setSummary(java.lang.String value)
Deprecated.Sets the value of the summary as @type="text"Text
setSummary(java.lang.String value, Text.Type type)
Deprecated.Sets the value of the summaryText
setSummary(Div value)
Deprecated.Sets the value of the summary as @type="xhtml"Text
setSummaryAsHtml(java.lang.String value)
Deprecated.Sets the value of the summary as @type="html"Text
setSummaryAsXhtml(java.lang.String value)
Deprecated.Sets the value of the summary as @type="xhtml"Entry
setSummaryElement(Text text)
Deprecated.RFC4287: The "atom:summary" element is a Text construct that conveys a short summary, abstract, or excerpt of an entry...Text
setTitle(java.lang.String value)
Deprecated.Sets the value of the title as @type="text"Text
setTitle(java.lang.String value, Text.Type type)
Deprecated.Sets the value of the titleText
setTitle(Div value)
Deprecated.Sets the value of the title as @type="xhtml"Text
setTitleAsHtml(java.lang.String value)
Deprecated.Sets the value of the title as @type="html"Text
setTitleAsXhtml(java.lang.String value)
Deprecated.Sets the value of the title as @type="xhtml"Entry
setTitleElement(Text title)
Deprecated.RFC4287: The "atom:title" element is a Text construct that conveys a human-readable title for an entry or feed.DateTime
setUpdated(java.lang.String value)
Deprecated.Set the atom:updated valueDateTime
setUpdated(java.util.Date value)
Deprecated.Set the atom:updated valueEntry
setUpdatedElement(DateTime updated)
Deprecated.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 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 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.ExtensibleElement
addExtension, addExtension, addExtension, addExtension, addExtension, addSimpleExtension, addSimpleExtension, getExtension, getExtension, getExtensions, getExtensions, getExtensions, getSimpleExtension, getSimpleExtension
-
-
-
-
Method Detail
-
getAuthor
Person getAuthor()
Deprecated.Returns the first author listed for the entry- Returns:
- The atom:author
-
getAuthors
java.util.List<Person> getAuthors()
Deprecated.Returns the complete set of authors listed for the entry- Returns:
- The listing of atom:author elements
-
addAuthor
Entry addAuthor(Person person)
Deprecated.Adds an individual author to the entry- Parameters:
person
- The person to add
-
addAuthor
Person addAuthor(java.lang.String name)
Deprecated.Adds an author- Parameters:
name
- The name of the author- Returns:
- The newly created atom:author element
-
addAuthor
Person addAuthor(java.lang.String name, java.lang.String email, java.lang.String uri)
Deprecated.Adds an author- Parameters:
name
- The name of the authoremail
- The author's email addressuri
- A URI belonging to the author- Returns:
- The newly created atom:author element
- Throws:
IRISyntaxException
- if the URI is malformed
-
getCategories
java.util.List<Category> getCategories()
Deprecated.Lists the complete set of categories listed for the entry- Returns:
- The listing of atom:category elements
-
getCategories
java.util.List<Category> getCategories(java.lang.String scheme)
Deprecated.Lists the complete set of categories using the specified scheme A listing of atom:category elements using the specified scheme- Throws:
IRISyntaxException
- if the scheme is malformed
-
addCategory
Entry addCategory(Category category)
Deprecated.Adds an individual category to the entry- Parameters:
category
- The atom:category element to add
-
addCategory
Category addCategory(java.lang.String term)
Deprecated.Adds a category to the entry- Parameters:
term
- The category term to add- Returns:
- The newly created atom:category
-
addCategory
Category addCategory(java.lang.String scheme, java.lang.String term, java.lang.String label)
Deprecated.Adds a category to the entry- Parameters:
scheme
- The category schemeterm
- The category termlabel
- The human readable label- Returns:
- The newly create atom:category
- Throws:
IRISyntaxException
- if the scheme is malformed
-
getContentElement
Content getContentElement()
Deprecated.Returns the content for this entry- Returns:
- The atom:content element
-
setContentElement
Entry setContentElement(Content content)
Deprecated.Sets the content for this entry- Parameters:
content
- The atom:content element
-
setContent
Content setContent(java.lang.String value)
Deprecated.Sets the content for this entry as @type="text"- Parameters:
value
- The text value of the content- Returns:
- The newly created atom:content
-
setContentAsHtml
Content setContentAsHtml(java.lang.String value)
Deprecated.Sets the content for this entry as @type="html"- Parameters:
value
- The text value of the content. Special characters will be escaped (e.g. & will become &)- Returns:
- The newly created atom:content
-
setContentAsXhtml
Content setContentAsXhtml(java.lang.String value)
Deprecated.Sets the content for this entry as @type="xhtml"- Parameters:
value
- The text value of the content. The text will be parsed as XHTML- Returns:
- The newly created atom:content
-
setContent
Content setContent(java.lang.String value, Content.Type type)
Deprecated.Sets the content for this entry- Parameters:
value
- The text value of the contenttype
- The Content Type of the text- Returns:
- The newly created atom:content
-
setContent
Content setContent(Element value)
Deprecated.Sets the content for this entry- Parameters:
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"- Returns:
- The newly create atom:content
-
setContent
Content setContent(Element element, java.lang.String mediaType)
Deprecated.Sets the content for this entry- Parameters:
element
- The element valuemediaType
- The media type of the element- Throws:
MimeTypeParseException
- if the mediaType is malformed
-
setContent
Content setContent(javax.activation.DataHandler dataHandler)
Deprecated.Sets the content for this entry- Parameters:
dataHandler
- The Data Handler containing the binary content needing Base64 encoding.- Throws:
MimeTypeParseException
- if the media Type specified by the dataHandler is malformed
-
setContent
Content setContent(javax.activation.DataHandler dataHandler, java.lang.String mediatype)
Deprecated.Sets the content for this entry- Parameters:
dataHandler
- The Data Handler containing the binary content needing Base64 encoding.mediaType
- The mediatype of the binary content- Returns:
- The created content element
- Throws:
MimeTypeParseException
- if the media type specified is malformed
-
setContent
Content setContent(java.io.InputStream inputStream)
Deprecated.Sets the content for this entry- Parameters:
inputStream
- An inputstream providing binary content- Returns:
- The created content element
-
setContent
Content setContent(java.io.InputStream inputStream, java.lang.String mediatype)
Deprecated.Sets the content for this entry- Parameters:
inputStream
- An inputstream providing binary contentmediaType
- The mediatype of the binary content- Returns:
- The created content element
- Throws:
MimeTypeParseException
- if the media type specified is malformed
-
setContent
Content setContent(java.lang.String value, java.lang.String mediatype)
Deprecated.Sets the content for this entry- Parameters:
value
- the string value of the contentmediatype
- the media type for the content- Returns:
- The newly created atom:content
- Throws:
MimeTypeParseException
- if the media type is malformed
-
setContent
Content setContent(IRI uri, java.lang.String mediatype)
Deprecated.Sets the content for this entry as out of line.- Parameters:
uri
- URI of the content (value of the "src" attribute).mediatype
- Type of the content.- Returns:
- The new content element.
- Throws:
MimeTypeParseException
- if the mime type is invalid.IRISyntaxException
- if the URI is invalid.
-
getContent
java.lang.String getContent()
Deprecated.Returns the text of the content element- Returns:
- text content
-
getContentStream
java.io.InputStream getContentStream() throws java.io.IOException
Deprecated.Returns an input stream from the content element value. This is particularly useful when dealing with Base64 binary content.- Throws:
java.io.IOException
-
getContentSrc
IRI getContentSrc()
Deprecated.Returns the content/@src attribute, if any- Returns:
- The src IRI
- Throws:
IRISyntaxException
- if the src attribute is invalid
-
getContentType
Content.Type getContentType()
Deprecated.Returns the content type- Returns:
- The content type
-
getContentMimeType
javax.activation.MimeType getContentMimeType()
Deprecated.Returns the media type of the content type or null if type equals 'text', 'html' or 'xhtml'- Returns:
- The content media type
-
getContributors
java.util.List<Person> getContributors()
Deprecated.Lists the complete set of contributors for this entry- Returns:
- The listing of atom:contributor elements
-
addContributor
Entry addContributor(Person person)
Deprecated.Adds an individual contributor to this entry- Parameters:
person
- The atom:contributor element
-
addContributor
Person addContributor(java.lang.String name)
Deprecated.Adds a contributor- Parameters:
name
- The contributor name- Returns:
- The newly created atom:contributor
-
addContributor
Person addContributor(java.lang.String name, java.lang.String email, java.lang.String uri)
Deprecated.Adds an author- Parameters:
name
- The contributor nameemail
- The contributor's email addressuri
- The contributor's URI- Returns:
- The newly created atom:contributor
- Throws:
IRISyntaxException
- if the uri is malformed
-
getIdElement
IRIElement getIdElement()
Deprecated.Returns the universally unique identifier for this entry- Returns:
- The atom:id element
-
setIdElement
Entry setIdElement(IRIElement id)
Deprecated.Sets the universally unique identifier for this entry- Parameters:
id
- The atom:id element
-
getId
IRI getId()
Deprecated.Returns the universally unique identifier for this entry- Throws:
IRISyntaxException
- if the atom:id value is malformed
-
setId
IRIElement setId(java.lang.String id)
Deprecated.Sets the universally unique identifier for this entry- Parameters:
id
- The atom:id value- Returns:
- The newly created atom:id element
- Throws:
IRISyntaxException
- if the atom:id value is malformed
-
newId
IRIElement newId()
Deprecated.Creates a new randomized atom:id for the entry
-
setId
IRIElement setId(java.lang.String id, boolean normalize)
Deprecated.Sets the universally unique identifier for this entry- Parameters:
id
- The atom:id valuenormalize
- true if the atom:id value should be normalized as called for by RFC4287- Returns:
- The newly created atom:id element
- Throws:
IRISyntaxException
- if the atom:id value is malformed
-
getLinks
java.util.List<Link> getLinks()
Deprecated.Lists the complete set of links for this entry- Returns:
- The listing of atom:link elements
-
getLinks
java.util.List<Link> getLinks(java.lang.String rel)
Deprecated.Lists the complete set of links using the specified rel attribute value- Parameters:
rel
- The rel attribute value to look for- Returns:
- The listing of atom:link element's with the rel attribute
-
getLinks
java.util.List<Link> getLinks(java.lang.String... rel)
Deprecated.Lists the complete set of links using the specified rel attributes values- Parameters:
rels
- A listing of link relations- Returns:
- A listof atom:link elements
-
addLink
Entry addLink(Link link)
Deprecated.Adds an individual link to the entry- Parameters:
link
- the atom:link to add
-
addLink
Link addLink(java.lang.String href)
Deprecated.Add a link to the entry- Parameters:
href
- The IRI of the link- Returns:
- The newly created atom:link
- Throws:
IRISyntaxException
- if the href is malformed
-
addLink
Link addLink(java.lang.String href, java.lang.String rel)
Deprecated.Add a link to the entry- Parameters:
href
- The IRI of the linkrel
- The link rel attribute- Returns:
- The newly created atom:link
- Throws:
IRISyntaxException
- if the href is malformed
-
addLink
Link addLink(java.lang.String href, java.lang.String rel, java.lang.String type, java.lang.String title, java.lang.String hreflang, long length)
Deprecated.Add a link to the entry- Parameters:
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- Returns:
- The newly created atom:link
- Throws:
IRISyntaxException
- if the href is malformed
-
getPublishedElement
DateTime getPublishedElement()
Deprecated.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... Typically, atom:published will be associated with the initial creation or first availability of the resource.- Returns:
- The atom:published element
-
setPublishedElement
Entry setPublishedElement(DateTime dateTime)
Deprecated.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... Typically, atom:published will be associated with the initial creation or first availability of the resource.- Parameters:
dateTime
- the atom:published element
-
getPublished
java.util.Date getPublished()
Deprecated.Return the value of the atom:published element- Returns:
- a java.util.Date for the atom:published value
-
setPublished
DateTime setPublished(java.util.Date value)
Deprecated.Set the value of the atom:published element- Parameters:
value
- The java.util.Date- Returns:
- The newly created atom:published element
-
setPublished
DateTime setPublished(java.lang.String value)
Deprecated.Set the value of the atom:published element using the serialized string value- Parameters:
value
- The serialized date- Returns:
- The newly created atom:published element
-
getRightsElement
Text getRightsElement()
Deprecated.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.
- Returns:
- The atom:rights element
-
setRightsElement
Entry setRightsElement(Text text)
Deprecated.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.
- Parameters:
text
- The atom:rights element
-
setRights
Text setRights(java.lang.String value)
Deprecated.Sets the value of the rights as @type="text"- Parameters:
value
- The text value of the atom:rights element- Returns:
- The newly created atom:rights element
-
setRightsAsHtml
Text setRightsAsHtml(java.lang.String value)
Deprecated.Sets the value of the rights as @type="html". Special characters like & will be automatically escaped- Parameters:
value
- The text value of the atom:rights element.- Returns:
- The newly created atom:rights element
-
setRightsAsXhtml
Text setRightsAsXhtml(java.lang.String value)
Deprecated.Sets the value of the rights as @type="xhtml"- Parameters:
value
- The text value of the atom:rights element- Returns:
- The newly created atom:rights element
-
setRights
Text setRights(java.lang.String value, Text.Type type)
Deprecated.Sets the value of the rights- Parameters:
value
- The text value of the atom:rights elementtype
- The text type- Returns:
- The newly create atom:rights element
-
setRights
Text setRights(Div value)
Deprecated.Sets the value of the right as @type="xhtml"- Parameters:
value
- The XHTML div for the atom:rights element- Returns:
- The newly created atom:rights element
-
getRights
java.lang.String getRights()
Deprecated.Return the String value of the atom:rights element- Returns:
- The text value of the atom:rights element
-
getRightsType
Text.Type getRightsType()
Deprecated.Return the @type of the atom:rights element- Returns:
- The Text.Type of the atom:rights element
-
getSource
Source getSource()
Deprecated.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.
- Returns:
- The atom:source element
-
setSource
Entry setSource(Source source)
Deprecated.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.
- Parameters:
source
- The atom:source element
-
getSummaryElement
Text getSummaryElement()
Deprecated.RFC4287: The "atom:summary" element is a Text construct that conveys a short summary, abstract, or excerpt of an entry... It is not advisable for the atom:summary element to duplicate atom:title or atom:content because Atom Processors might assume there is a useful summary when there is none.- Returns:
- The atom:summary element
-
setSummaryElement
Entry setSummaryElement(Text text)
Deprecated.RFC4287: The "atom:summary" element is a Text construct that conveys a short summary, abstract, or excerpt of an entry... It is not advisable for the atom:summary element to duplicate atom:title or atom:content because Atom Processors might assume there is a useful summary when there is none.- Parameters:
text
- The atom:summary element
-
setSummary
Text setSummary(java.lang.String value)
Deprecated.Sets the value of the summary as @type="text"- Parameters:
value
- The text value of the atom:summary element- Returns:
- the newly created atom:summary element
-
setSummaryAsHtml
Text setSummaryAsHtml(java.lang.String value)
Deprecated.Sets the value of the summary as @type="html"- Parameters:
value
- The text value of the atom:summary element- Returns:
- the newly created atom:summary element
-
setSummaryAsXhtml
Text setSummaryAsXhtml(java.lang.String value)
Deprecated.Sets the value of the summary as @type="xhtml"- Parameters:
value
- The text value of the atom:summary element- Returns:
- the newly created atom:summary element
-
setSummary
Text setSummary(java.lang.String value, Text.Type type)
Deprecated.Sets the value of the summary- Parameters:
value
- The text value of the atom:summary elementtype
- The Text.Type of the atom:summary element- Returns:
- The newly created atom:summary element
-
setSummary
Text setSummary(Div value)
Deprecated.Sets the value of the summary as @type="xhtml"- Parameters:
value
- The XHTML div- Returns:
- the newly created atom:summary element
-
getSummary
java.lang.String getSummary()
Deprecated.Returns the text string value of this summary- Returns:
- the text value of the atom:summary
-
getSummaryType
Text.Type getSummaryType()
Deprecated.Returns the summary type- Returns:
- the Text.Type of the atom:summary
-
getTitleElement
Text getTitleElement()
Deprecated.RFC4287: The "atom:title" element is a Text construct that conveys a human-readable title for an entry or feed.- Returns:
- the atom:title element
-
setTitleElement
Entry setTitleElement(Text title)
Deprecated.RFC4287: The "atom:title" element is a Text construct that conveys a human-readable title for an entry or feed.- Parameters:
title
- the atom:title element
-
setTitle
Text setTitle(java.lang.String value)
Deprecated.Sets the value of the title as @type="text"- Parameters:
value
- The title value- Returns:
- The newly created atom:title element
-
setTitleAsHtml
Text setTitleAsHtml(java.lang.String value)
Deprecated.Sets the value of the title as @type="html"- Parameters:
value
- The title value- Returns:
- The newly created atom:title element
-
setTitleAsXhtml
Text setTitleAsXhtml(java.lang.String value)
Deprecated.Sets the value of the title as @type="xhtml"- Parameters:
value
- The title value- Returns:
- The newly created atom:title element
-
setTitle
Text setTitle(java.lang.String value, Text.Type type)
Deprecated.Sets the value of the title- Parameters:
value
- The title valuetype
- The Text.Type of the title- Returns:
- the newly created atom:title element
-
setTitle
Text setTitle(Div value)
Deprecated.Sets the value of the title as @type="xhtml"- Parameters:
value
- The XHTML div- Returns:
- the newly created atom:title element
-
getTitle
java.lang.String getTitle()
Deprecated.Returns the text string value of the title element- Returns:
- text value of the atom:title
-
getTitleType
Text.Type getTitleType()
Deprecated.Returns the @type of this entries title- Returns:
- the Text.Type of the atom:title
-
getUpdatedElement
DateTime getUpdatedElement()
Deprecated.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. Therefore, not all modifications necessarily result in a changed atom:updated value.- Returns:
- the atom:updated element
-
setUpdatedElement
Entry setUpdatedElement(DateTime updated)
Deprecated.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. Therefore, not all modifications necessarily result in a changed atom:updated value.- Parameters:
updated
- the atom:updated element.
-
getUpdated
java.util.Date getUpdated()
Deprecated.Return atom:updated- Returns:
- A java.util.Date value
-
setUpdated
DateTime setUpdated(java.util.Date value)
Deprecated.Set the atom:updated value- Parameters:
value
- The new value- Returns:
- The newly created atom:updated element
-
setUpdated
DateTime setUpdated(java.lang.String value)
Deprecated.Set the atom:updated value- Parameters:
value
- The new value- Returns:
- The newly created atom:updated element
-
getEditedElement
DateTime getEditedElement()
Deprecated.APP Introduces a new app:edited element whose value changes every time the entry is updated- Returns:
- the app:edited element
-
setEditedElement
void setEditedElement(DateTime modified)
Deprecated.Set the app:edited element- Parameters:
modified
- The app:edited element
-
getEdited
java.util.Date getEdited()
Deprecated.Return the value of app:edited- Returns:
- app:edited
-
setEdited
DateTime setEdited(java.util.Date value)
Deprecated.Set the value of app:edited- Parameters:
value
- The java.util.Date value- Returns:
- The newly created app:edited element
-
setEdited
DateTime setEdited(java.lang.String value)
Deprecated.Set the value of app:edited- Parameters:
value
- the serialized string value for app:edited- Returns:
- The newly created app:edited element
-
getControl
Control getControl(boolean create)
Deprecated.Returns this entries Atom Publishing Protocol control element. A new control element will be created if one currently does not exist- Returns:
- The app:control element
-
getControl
Control getControl()
Deprecated.Returns this entries Atom Publishing Protocol control element- Returns:
- The app:control element
-
setControl
Entry setControl(Control control)
Deprecated.Sets this entries Atom Publishing Protocol control element- Parameters:
control
- The app:contorl element
-
setDraft
Entry setDraft(boolean draft)
Deprecated.Sets whether or not this entry is a draft- Parameters:
draft
- true if this entry should be marked as a draft
-
isDraft
boolean isDraft()
Deprecated.Returns true if this entry is a draft- Returns:
- True if this entry is a date
-
getLink
Link getLink(java.lang.String rel)
Deprecated.Returns the first link with the specified rel attribute value- Parameters:
rel
- The link rel- Returns:
- a Link with the specified rel attribute
-
getAlternateLink
Link getAlternateLink()
Deprecated.Returns this entries first alternate link- Returns:
- the Alternate link
-
getAlternateLink
Link getAlternateLink(java.lang.String type, java.lang.String hreflang)
Deprecated.Returns the first alternate link matching the specified type and hreflang- Parameters:
type
- The link media typehreflang
- The link target language- Returns:
- The matching atom:link
- Throws:
MimeTypeParseException
MimeTypeParseException
- if the type is malformed
-
getEnclosureLink
Link getEnclosureLink()
Deprecated.Returns this entries first enclosure link- Returns:
- the Enclosure link
-
getEditLink
Link getEditLink()
Deprecated.Returns this entries first edit link- Returns:
- the Edit Link
-
getEditMediaLink
Link getEditMediaLink()
Deprecated.Returns this entries first edit-media link (if any)- Returns:
- the Edit Media Link
-
getEditMediaLink
Link getEditMediaLink(java.lang.String type, java.lang.String hreflang)
Deprecated.Returns the first edit-media link matching the specified type and hreflang- Parameters:
type
- a media typehreflang
- a target language- Returns:
- A matching atom:link element
- Throws:
MimeTypeParseException
-
getSelfLink
Link getSelfLink()
Deprecated.Returns this entries first self link- Returns:
- the Self Link
-
getLinkResolvedHref
IRI getLinkResolvedHref(java.lang.String rel)
Deprecated.Return a link href resolved against the in-scope Base URI- Parameters:
rel
- The rel attribute value- Returns:
- The resolved IRI
- Throws:
IRISyntaxException
- if the href attribute is malformed
-
getAlternateLinkResolvedHref
IRI getAlternateLinkResolvedHref()
Deprecated.Return a link href resolved against the in-scope Base URI- Returns:
- The resolved IRI
- Throws:
IRISyntaxException
- if the href attribute is malformed
-
getAlternateLinkResolvedHref
IRI getAlternateLinkResolvedHref(java.lang.String type, java.lang.String hreflang)
Deprecated.Return a link href resolved against the in-scope Base URI- Parameters:
type
- A target typehreflang
- A target language- Returns:
- The resolved IRI
- Throws:
IRISyntaxException
- if the href attribute is malformed
-
getEnclosureLinkResolvedHref
IRI getEnclosureLinkResolvedHref()
Deprecated.Return a link href resolved against the in-scope Base URI- Returns:
- The resolved IRI
- Throws:
IRISyntaxException
- if the href attribute is malformed
-
getEditLinkResolvedHref
IRI getEditLinkResolvedHref()
Deprecated.Return a link href resolved against the in-scope Base URI- Returns:
- The resolved IRI
- Throws:
IRISyntaxException
- if the href attribute is malformed
-
getEditMediaLinkResolvedHref
IRI getEditMediaLinkResolvedHref()
Deprecated.Return a link href resolved against the in-scope Base URI- Returns:
- The resolved IRI
- Throws:
IRISyntaxException
- if the href attribute is malformed
-
getEditMediaLinkResolvedHref
IRI getEditMediaLinkResolvedHref(java.lang.String type, java.lang.String hreflang)
Deprecated.Return a link href resolved against the in-scope Base URI- Parameters:
type
- A target typehreflang
- A target language- Returns:
- The resolved IRI
- Throws:
IRISyntaxException
- if the href attribute is malformedMimeTypeParseException
- if the type is malformed
-
getSelfLinkResolvedHref
IRI getSelfLinkResolvedHref()
Deprecated.Return a link href resolved against the in-scope Base URI- Returns:
- The resolved IRI
- Throws:
IRISyntaxException
- if the href attribute is malformed
-
addControl
Control addControl()
Deprecated.
-
-