Package org.apache.abdera.model
Interface Source
- All Known Subinterfaces:
Feed
Deprecated.
This API is deprecated as Apache Abdera is a retired project since 2017.
Per 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. atomSource = element atom:source { atomCommonAttributes, (atomAuthor* & atomCategory* & atomContributor* & atomGenerator? & atomIcon? & atomId? & atomLink* & atomLogo? & atomRights? & atomSubtitle? & atomTitle? & atomUpdated? & extensionElement*) } The atom:source element is designed to allow the aggregation of entries from different feeds while retaining information about an entry's source feed. For this reason, Atom Processors that are performing such aggregation SHOULD include at least the required feed-level Metadata elements (atom:id, atom:title, and atom:updated) in the atom:source element.
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Adds an authorDeprecated.Adds an author<T extends Source>
TDeprecated.Adds an individual author to the entryaddCategory
(String term) Deprecated.Adds a category to the feedaddCategory
(String scheme, String term, String label) Deprecated.Adds a category to the feed<T extends Source>
TaddCategory
(Category category) Deprecated.Adds an individual category to the entryaddContributor
(String name) Deprecated.Adds a contributoraddContributor
(String name, String email, String iri) Deprecated.Adds a contributor<T extends Source>
TaddContributor
(Person person) Deprecated.Adds an individual contributor to this entryDeprecated.Adds an individual link elementDeprecated.Adds an individual link elementDeprecated.Adds an individual link element<T extends Source>
TDeprecated.Adds an individual link to the entryDeprecated.Returns this entries first alternate linkgetAlternateLink
(String type, String hreflang) Deprecated.Deprecated.getAlternateLinkResolvedHref
(String type, String hreflang) Deprecated.Deprecated.Convert the Source element into an empty Feed elementDeprecated.Returns the first author listed for the entryDeprecated.Returns the complete set of authors listed for the entryDeprecated.Lists the complete set of categories listed for the entrygetCategories
(String scheme) Deprecated.Lists the complete set of categories using the specified schemeDeprecated.Return an app:collection element associatd with this atom:source.Deprecated.Lists the complete set of contributors for this entryDeprecated.RFC4287: The "atom:generator" element's content identifies the agent used to generate a feed, for debugging and other purposes.getIcon()
Deprecated.RFC4287: The "atom:icon" element's content is an IRI reference [RFC3987] that identifies an image that provides iconic visual identification for a feed...Deprecated.RFC4287: The "atom:icon" element's content is an IRI reference [RFC3987] that identifies an image that provides iconic visual identification for a feed...getId()
Deprecated.Returns the universally unique identifier for this feedDeprecated.RFC4287: The "atom:id" element conveys a permanent, universally unique identifier for an entry or feed.Deprecated.Returns the first link with the specified rel attribute valueDeprecated.getLinks()
Deprecated.Lists the complete set of links for this entryDeprecated.Lists the complete set of links using the specified rel attribute valueDeprecated.Lists the complete set of links using the specified rel attributes valuesgetLogo()
Deprecated.RFC4287: The "atom:logo" element's content is an IRI reference [RFC3987] that identifies an image that provides visual identification for a feed.Deprecated.RFC4287: The "atom:logo" element's content is an IRI reference [RFC3987] that identifies an image that provides visual identification for a feed.Deprecated.Returns the text of atom:rightsDeprecated.The rights element is typically used to convey a human readable copyright (e.g.Deprecated.Returns the type of atom:rightsDeprecated.Returns the first link using the rel attribute value "self"Deprecated.Deprecated.Returns the text value of atom:subtitleDeprecated.RFC4287: The "atom:subtitle" element is a Text construct that conveys a human-readable description or subtitle for a feed.Deprecated.Returns the atom:subtitle typegetTitle()
Deprecated.Returns the text of atom:titleDeprecated.RFC4287: The "atom:title" element is a Text construct that conveys a human-readable title for an entry or feed.Deprecated.Returns the type of atom:titleDeprecated.Return the atom:updated valueDeprecated.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.Deprecated.Return the atom:updated valuenewId()
Deprecated.Creates a new randomized atom:id for the entry<T extends Source>
TsetCollection
(Collection collection) Deprecated.Set the app:collection elementsetGenerator
(String iri, String version, String value) Deprecated.RFC4287: The "atom:generator" element's content identifies the agent used to generate a feed, for debugging and other purposes.<T extends Source>
TsetGenerator
(Generator generator) Deprecated.RFC4287: The "atom:generator" element's content identifies the agent used to generate a feed, for debugging and other purposes.Deprecated.RFC4287: The "atom:icon" element's content is an IRI reference [RFC3987] that identifies an image that provides iconic visual identification for a feed...<T extends Source>
TsetIconElement
(IRIElement iri) Deprecated.RFC4287: The "atom:icon" element's content is an IRI reference [RFC3987] that identifies an image that provides iconic visual identification for a feed...Deprecated.Sets the universally unique identifier for this feedDeprecated.Sets the universally unique identifier for this feed<T extends Source>
TDeprecated.RFC4287: The "atom:id" element conveys a permanent, universally unique identifier for an entry or feed.Deprecated.RFC4287: The "atom:logo" element's content is an IRI reference [RFC3987] that identifies an image that provides visual identification for a feed.<T extends Source>
TsetLogoElement
(IRIElement iri) Deprecated.RFC4287: The "atom:logo" element's content is an IRI reference [RFC3987] that identifies an image that provides visual identification for a feed.Deprecated.Sets the value of the rights as @type="text"Deprecated.Sets the value of the rightsDeprecated.Sets the value of the rights as @type="xhtml"setRightsAsHtml
(String value) Deprecated.Sets the value of the rights as @type="html"setRightsAsXhtml
(String value) Deprecated.Sets the value of the rights as @type="xhtml"<T extends Source>
TsetRightsElement
(Text text) Deprecated.The rights element is typically used to convey a human readable copyright (e.g.setSubtitle
(String value) Deprecated.Sets the value of the subtitle as @type="text"setSubtitle
(String value, Text.Type type) Deprecated.Sets the value of the subtitlesetSubtitle
(Div value) Deprecated.Sets the value of the subtitle as @type="xhtml"setSubtitleAsHtml
(String value) Deprecated.Sets the value of the subtitle as @type="html"setSubtitleAsXhtml
(String value) Deprecated.Sets the value of the subtitle as @type="xhtml"<T extends Source>
TsetSubtitleElement
(Text text) Deprecated.RFC4287: The "atom:subtitle" element is a Text construct that conveys a human-readable description or subtitle for a feed.Deprecated.Sets the value of the title as @type="text"Deprecated.Sets the value of the titleDeprecated.Sets the value of the title as @type="xhtml"setTitleAsHtml
(String value) Deprecated.Sets the value of the title as @type="html"setTitleAsXhtml
(String value) Deprecated.Sets the value of the title as @type="xhtml"<T extends Source>
TsetTitleElement
(Text text) Deprecated.RFC4287: The "atom:title" element is a Text construct that conveys a human-readable title for an entry or feed.setUpdated
(String value) Deprecated.Set the atom:updated valuesetUpdated
(Date value) Deprecated.Set the atom:updated value<T extends Source>
TsetUpdatedElement
(DateTime dateTime) 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
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getAuthor
Person getAuthor()Deprecated.Returns the first author listed for the entry- Returns:
- This feed's author
-
getAuthors
Deprecated.Returns the complete set of authors listed for the entry- Returns:
- This feeds list of authors
-
addAuthor
Deprecated.Adds an individual author to the entry- Parameters:
person
- an atom:author element
-
addAuthor
Deprecated.Adds an author- Parameters:
name
- The author name- Returns:
- The newly created atom:author element
-
addAuthor
Deprecated.Adds an author- Parameters:
name
- The author nameemail
- The author emailiri
- The author iri- Returns:
- The newly created atom:author element
-
getCategories
Deprecated.Lists the complete set of categories listed for the entry- Returns:
- A listing of app:category elements
-
getCategories
Deprecated.Lists the complete set of categories using the specified scheme- Parameters:
scheme
- A Scheme IRI- Returns:
- The listing of app:category elements
-
addCategory
Deprecated.Adds an individual category to the entry- Parameters:
category
- A atom:category element
-
addCategory
Deprecated.Adds a category to the feed- Parameters:
term
- A category term- Returns:
- The newly created atom:category element
-
addCategory
Deprecated.Adds a category to the feed- Parameters:
scheme
- A category schemeterm
- A category termlabel
- The human readable label- Returns:
- the newly created atom:category element
-
getContributors
Deprecated.Lists the complete set of contributors for this entry- Returns:
- A listing of atom:contributor elements
-
addContributor
Deprecated.Adds an individual contributor to this entry- Parameters:
person
- a atom:contributor element
-
addContributor
Deprecated.Adds a contributor- Parameters:
name
- The name of a contributor- Returns:
- The newly created atom:contributor element
-
addContributor
Deprecated.Adds a contributor- Parameters:
name
- The contributor nameemail
- The contributor emailiri
- The contributor uri- Returns:
- The atom:contributor element
-
getGenerator
Generator getGenerator()Deprecated.RFC4287: The "atom:generator" element's content identifies the agent used to generate a feed, for debugging and other purposes.- Returns:
- The atom:generator
-
setGenerator
Deprecated.RFC4287: The "atom:generator" element's content identifies the agent used to generate a feed, for debugging and other purposes.- Parameters:
generator
- A atom:generator element
-
setGenerator
Deprecated.RFC4287: The "atom:generator" element's content identifies the agent used to generate a feed, for debugging and other purposes.- Parameters:
iri
- The iri attributeversion
- The version attributevalue
- The value attribute- Returns:
- A newly created atom:generator element
-
getIconElement
IRIElement getIconElement()Deprecated.RFC4287: The "atom:icon" element's content is an IRI reference [RFC3987] that identifies an image that provides iconic visual identification for a feed... The image SHOULD have an aspect ratio of one (horizontal) to one (vertical) and SHOULD be suitable for presentation at a small size.- Returns:
- the atom:icon element
-
setIconElement
Deprecated.RFC4287: The "atom:icon" element's content is an IRI reference [RFC3987] that identifies an image that provides iconic visual identification for a feed... The image SHOULD have an aspect ratio of one (horizontal) to one (vertical) and SHOULD be suitable for presentation at a small size.- Parameters:
iri
- The atom:icon element
-
setIcon
Deprecated.RFC4287: The "atom:icon" element's content is an IRI reference [RFC3987] that identifies an image that provides iconic visual identification for a feed... The image SHOULD have an aspect ratio of one (horizontal) to one (vertical) and SHOULD be suitable for presentation at a small size.- Parameters:
iri
- The atom:icon IRI value
-
getIcon
IRI getIcon()Deprecated.RFC4287: The "atom:icon" element's content is an IRI reference [RFC3987] that identifies an image that provides iconic visual identification for a feed... The image SHOULD have an aspect ratio of one (horizontal) to one (vertical) and SHOULD be suitable for presentation at a small size.- Returns:
- The atom:icon value
-
getIdElement
IRIElement getIdElement()Deprecated.RFC4287: The "atom:id" element conveys a permanent, universally unique identifier for an entry or feed.- Returns:
- The atom:id element
-
setIdElement
Deprecated.RFC4287: The "atom:id" element conveys a permanent, universally unique identifier for an entry or feed.- Parameters:
id
- A atom:id element
-
getId
IRI getId()Deprecated.Returns the universally unique identifier for this feed- Returns:
- The atom:id value
-
setId
Deprecated.Sets the universally unique identifier for this feed- Parameters:
id
- The atom:id value- Returns:
- The newly created atom:id element
-
newId
IRIElement newId()Deprecated.Creates a new randomized atom:id for the entry -
setId
Deprecated.Sets the universally unique identifier for this feed- Parameters:
id
- The atom:id valuenormalize
- True if the atom:id value should be normalized- Returns:
- The newly created atom:id element
-
getLinks
Deprecated.Lists the complete set of links for this entry- Returns:
- returns a listing of atom:link elements
-
getLinks
Deprecated.Lists the complete set of links using the specified rel attribute value- Parameters:
rel
- A link relation- Returns:
- A listing of atom:link elements
-
getLinks
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
Deprecated.Adds an individual link to the entry- Parameters:
link
- A atom:link element
-
addLink
Deprecated.Adds an individual link element- Parameters:
href
- The href IRI of the link- Returns:
- The newly created atom:link
-
addLink
Deprecated.Adds an individual link element- Parameters:
href
- The href IRI of the linkrel
- The link rel attribute- Returns:
- The newly created atom:link
-
addLink
Deprecated.Adds an individual link element- Parameters:
href
- The href IRI of the linkrel
- The link rel attributetype
- The link type attributehreflang
- The link hreflang attributelength
- The length attribute- Returns:
- The newly created atom:link
-
getLogoElement
IRIElement getLogoElement()Deprecated.RFC4287: The "atom:logo" element's content is an IRI reference [RFC3987] that identifies an image that provides visual identification for a feed. The image SHOULD have an aspect ratio of 2 (horizontal) to 1 (vertical).- Returns:
- the atom:logo element
-
setLogoElement
Deprecated.RFC4287: The "atom:logo" element's content is an IRI reference [RFC3987] that identifies an image that provides visual identification for a feed. The image SHOULD have an aspect ratio of 2 (horizontal) to 1 (vertical).- Parameters:
iri
- The atom:logo element
-
setLogo
Deprecated.RFC4287: The "atom:logo" element's content is an IRI reference [RFC3987] that identifies an image that provides visual identification for a feed. The image SHOULD have an aspect ratio of 2 (horizontal) to 1 (vertical).- Parameters:
iri
- The atom:logo value- Returns:
- The newly created atom:logo element
-
getLogo
IRI getLogo()Deprecated.RFC4287: The "atom:logo" element's content is an IRI reference [RFC3987] that identifies an image that provides visual identification for a feed. The image SHOULD have an aspect ratio of 2 (horizontal) to 1 (vertical).- Returns:
- The atom:logo element value
-
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
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
Deprecated.Sets the value of the rights as @type="text"- Parameters:
value
- The atom:rights text value- Returns:
- The newly created atom:rights element
-
setRightsAsHtml
Deprecated.Sets the value of the rights as @type="html"- Parameters:
value
- The atom:rights text value- Returns:
- The newly created atom:rights element
-
setRightsAsXhtml
Deprecated.Sets the value of the rights as @type="xhtml"- Parameters:
value
- The atom:rights text value- Returns:
- The newly created atom:rights element
-
setRights
Deprecated.Sets the value of the rights- Parameters:
value
- The atom:rights text valuetype
- The atom:rights text type- Returns:
- The newly created atom:rights element
-
setRights
Deprecated.Sets the value of the rights as @type="xhtml"- Parameters:
value
- The XHTML div element- Returns:
- The newly created atom:rights element
-
getRights
String getRights()Deprecated.Returns the text of atom:rights- Returns:
- The value of the atom:rights element
-
getRightsType
Text.Type getRightsType()Deprecated.Returns the type of atom:rights- Returns:
- The Text.Type of the atom:rights element
-
getSubtitleElement
Text getSubtitleElement()Deprecated.RFC4287: The "atom:subtitle" element is a Text construct that conveys a human-readable description or subtitle for a feed.- Returns:
- The atom:subtitle element
-
setSubtitleElement
Deprecated.RFC4287: The "atom:subtitle" element is a Text construct that conveys a human-readable description or subtitle for a feed.- Parameters:
text
- A atom:subtitle element
-
setSubtitle
Deprecated.Sets the value of the subtitle as @type="text"- Parameters:
value
- the value of the atom:subtitle element- Returns:
- The atom:subtitle element
-
setSubtitleAsHtml
Deprecated.Sets the value of the subtitle as @type="html"- Parameters:
value
- The value of the atom:subtitle element- Returns:
- The newly created atom:subtitle element
-
setSubtitleAsXhtml
Deprecated.Sets the value of the subtitle as @type="xhtml"- Parameters:
value
- The value of the atom:subtitle element- Returns:
- The newly created atom:subtitle element
-
setSubtitle
Deprecated.Sets the value of the subtitle- Parameters:
value
- The value of the atom:subtitle elementtype
- The atom:subtitle Text.Type- Returns:
- The newly created atom:subtitle element
-
setSubtitle
Deprecated.Sets the value of the subtitle as @type="xhtml"- Parameters:
value
- The atom:subtitle element- Returns:
- The newly created atom:subtitle element
-
getSubtitle
String getSubtitle()Deprecated.Returns the text value of atom:subtitle- Returns:
- The atom:subtitle text value
-
getSubtitleType
Text.Type getSubtitleType()Deprecated.Returns the atom:subtitle type- Returns:
- The atom:subtitle Text.Type
-
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
Deprecated.RFC4287: The "atom:title" element is a Text construct that conveys a human-readable title for an entry or feed.- Parameters:
text
- The atom:title element
-
setTitle
Deprecated.Sets the value of the title as @type="text"- Parameters:
value
- The atom:title value- Returns:
- The newly created atom:title element
-
setTitleAsHtml
Deprecated.Sets the value of the title as @type="html"- Parameters:
value
- The atom:title value- Returns:
- The newly created atom:title element
-
setTitleAsXhtml
Deprecated.Sets the value of the title as @type="xhtml"- Parameters:
value
- The atom:title value- Returns:
- The newly created atom:title element
-
setTitle
Deprecated.Sets the value of the title- Parameters:
value
- The atom:title valuetype
- The atom:title Text.Type- Returns:
- The newly created atom:title element
-
setTitle
Deprecated.Sets the value of the title as @type="xhtml"- Parameters:
value
- The XHTML div- Returns:
- The newly created atom:title element
-
getTitle
String getTitle()Deprecated.Returns the text of atom:title- Returns:
- The text value of the atom:title element
-
getTitleType
Text.Type getTitleType()Deprecated.Returns the type of atom:title- Returns:
- The atom:title Text.Type value
-
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
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:
dateTime
- A atom:updated element
-
getUpdatedString
String getUpdatedString()Deprecated.Return the atom:updated value- Returns:
- The serialized string form value of atom:updated
-
getUpdated
Date getUpdated()Deprecated.Return the atom:updated value- Returns:
- The atom:updated as a java.util.Date
-
setUpdated
Deprecated.Set the atom:updated value- Parameters:
value
- The java.util.Date- Returns:
- The newly created atom:updated element
-
setUpdated
Deprecated.Set the atom:updated value- Parameters:
value
- The serialized string date- Returns:
- The newly created atom:updated element
-
getLink
Deprecated.Returns the first link with the specified rel attribute value- Parameters:
rel
- A link relation- Returns:
- The newly created atom:link element
-
getSelfLink
Link getSelfLink()Deprecated.Returns the first link using the rel attribute value "self"- Returns:
- An atom:link
-
getAlternateLink
Link getAlternateLink()Deprecated.Returns this entries first alternate link- Returns:
- An atom:link
-
getAlternateLink
Deprecated.- Parameters:
type
- A media typehreflang
- A target language- Returns:
- A matching atom:link
-
getLinkResolvedHref
Deprecated.- Parameters:
rel
- A link relation- Returns:
- An atom:link
-
getSelfLinkResolvedHref
IRI getSelfLinkResolvedHref()Deprecated.- Returns:
- An atom:link
-
getAlternateLinkResolvedHref
IRI getAlternateLinkResolvedHref()Deprecated.- Returns:
- An atom:link
-
getAlternateLinkResolvedHref
Deprecated.- Parameters:
type
- A media typehreflang
- A target language- Returns:
- A matching atom:link
-
getCollection
Collection getCollection()Deprecated.Return an app:collection element associatd with this atom:source. The Atom Publishing Protocol allows an app:collection to be contained by atom:feed to specify the collection to which the feed is associated.- Returns:
- An app:collection element
-
setCollection
Deprecated.Set the app:collection element- Parameters:
collection
- An app:collection element
-
getAsFeed
Feed getAsFeed()Deprecated.Convert the Source element into an empty Feed element
-