Class Source
When entries are aggregated, copied, or republished from their original feed, the source element preserves metadata about the original feed. This is crucial for proper attribution and maintaining provenance information.
The source element is a child of entry and contains a subset of feed-level metadata that identifies where the entry originally came from. All child elements are optional, but including at minimum the source feed's ID, title, and updated timestamp is recommended.
Common use cases:
- Feed aggregation - Combining entries from multiple sources
- Content syndication - Republishing entries from other feeds
- Attribution - Crediting the original source
Schema
atomSource = element atom:source { atomCommonAttributes, (atomAuthor* & atomCategory* & atomContributor* & atomGenerator? & atomIcon? & atomId? & atomLink* & atomLogo? & atomRights? & atomSubtitle? & atomTitle? & atomUpdated? & extensionElement*) }
Example:
Specification:
Represents an
See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBean property getter:generator .getIcon()
Bean property getter:icon .getLogo()
Bean property getter:logo .Bean property getter:subtitle .setAuthors
(Person... value) Bean property setter:authors .Bean property setter:base .setCategories
(Category... value) Bean property setter:categories .setContributors
(Person... value) Bean property setter:contributors .setGenerator
(Generator value) Bean property setter:generator .Bean property setter:icon .Bean property fluent setter:id .Bean property setter:id .Bean property setter:lang .Bean property setter:links .Bean property setter:logo .Bean property fluent setter:rights .Bean property setter:rights .setSubtitle
(String value) Bean property fluent setter:subtitle .setSubtitle
(Text value) Bean property setter:subtitle .Bean property fluent setter:title .Bean property setter:title .setUpdated
(String value) Bean property fluent setter:updated .setUpdated
(Calendar value) Bean property setter:updated .Methods inherited from class org.apache.juneau.bean.atom.CommonEntry
getAuthors, getCategories, getContributors, getId, getLinks, getRights, getTitle, getUpdated
-
Constructor Details
-
Source
public Source()
-
-
Method Details
-
getGenerator
Bean property getter:generator .The generator info of this source.
- Returns:
- The property value, or
null if it is not set.
-
setGenerator
Bean property setter:generator .The generator info of this source.
- Parameters:
value
- The new value for this property.
Can benull to unset the property.- Returns:
- This object
-
getIcon
Bean property getter:icon .The icon of this source.
- Returns:
- The property value, or
null if it is not set.
-
setIcon
Bean property setter:icon .The icon of this source.
- Parameters:
value
- The new value for this property.
Can benull to unset the property.- Returns:
- This object
-
getLogo
Bean property getter:logo .The logo of this source.
- Returns:
- The property value, or
null if it is not set.
-
setLogo
Bean property setter:logo .The logo of this source.
- Parameters:
value
- The new value for this property.
Can benull to unset the property.- Returns:
- This object
-
getSubtitle
Bean property getter:subtitle .The subtitle of this source.
- Returns:
- The property value, or
null if it is not set.
-
setSubtitle
Bean property setter:subtitle .The subtitle of this source.
- Parameters:
value
- The new value for this property.
Can benull to unset the property.- Returns:
- This object
-
setSubtitle
Bean property fluent setter:subtitle .The subtitle of this source.
- Parameters:
value
- The new value for this property.
Can benull to unset the property.- Returns:
- This object.
-
setBase
Description copied from class:Common
Bean property setter:base .Sets the base URI for resolving relative URI references (xml:base attribute).
The value can be of any of the following types:
URI
,URL
,String
. Strings must be valid URIs.Example:
Feed
feed =new Feed(...) .setBase("http://example.org/" );- Overrides:
setBase
in classCommonEntry
- Parameters:
value
- The new value for this property.
Can benull to unset the property.- Returns:
- This object.
-
setLang
Description copied from class:Common
Bean property setter:lang .Sets the natural language of the element's content (xml:lang attribute).
Example:
Text
title =new Text("text" ) .setText("Mon Blog" ) .setLang("fr" );- Overrides:
setLang
in classCommonEntry
- Parameters:
value
- The new value for this property (e.g., "en", "fr", "de", "en-US").
Can benull to unset the property.- Returns:
- This object.
-
setAuthors
Description copied from class:CommonEntry
Bean property setter:authors .The list of authors for this object.
- Overrides:
setAuthors
in classCommonEntry
- Parameters:
value
- The new value for this property.
Can benull to unset the property.- Returns:
- This object
-
setCategories
Description copied from class:CommonEntry
Bean property setter:categories .The list of categories of this object.
- Overrides:
setCategories
in classCommonEntry
- Parameters:
value
- The new value for this property.
Can benull to unset the property.- Returns:
- This object
-
setContributors
Description copied from class:CommonEntry
Bean property setter:contributors .The list of contributors of this object.
- Overrides:
setContributors
in classCommonEntry
- Parameters:
value
- The new value for this property.
Can benull to unset the property.- Returns:
- This object
-
setId
Description copied from class:CommonEntry
Bean property fluent setter:id .The ID of this object.
- Overrides:
setId
in classCommonEntry
- Parameters:
value
- The new value for this property.
Can benull to unset the property.- Returns:
- This object.
-
setId
Description copied from class:CommonEntry
Bean property setter:id .The ID of this object.
- Overrides:
setId
in classCommonEntry
- Parameters:
value
- The new value for this property.
Can benull to unset the property.- Returns:
- This object
-
setLinks
Description copied from class:CommonEntry
Bean property setter:links .The list of links of this object.
- Overrides:
setLinks
in classCommonEntry
- Parameters:
value
- The new value for this property.
Can benull to unset the property.- Returns:
- This object
-
setRights
Description copied from class:CommonEntry
Bean property fluent setter:rights .The rights statement of this object.
- Overrides:
setRights
in classCommonEntry
- Parameters:
value
- The new value for this property.
Can benull to unset the property.- Returns:
- This object.
-
setRights
Description copied from class:CommonEntry
Bean property setter:rights .The rights statement of this object.
- Overrides:
setRights
in classCommonEntry
- Parameters:
value
- The new value for this property.
Can benull to unset the property.- Returns:
- This object
-
setTitle
Description copied from class:CommonEntry
Bean property fluent setter:title .The title of this object.
- Overrides:
setTitle
in classCommonEntry
- Parameters:
value
- The new value for this property.
Can benull to unset the property.- Returns:
- This object.
-
setTitle
Description copied from class:CommonEntry
Bean property setter:title .The title of this object.
- Overrides:
setTitle
in classCommonEntry
- Parameters:
value
- The new value for this property.
Can benull to unset the property.- Returns:
- This object
-
setUpdated
Description copied from class:CommonEntry
Bean property fluent setter:updated .The update timestamp of this object.
- Overrides:
setUpdated
in classCommonEntry
- Parameters:
value
- The new value for this property.
Can benull to unset the property.- Returns:
- This object.
-
setUpdated
Description copied from class:CommonEntry
Bean property setter:updated .The update timestamp of this object.
- Overrides:
setUpdated
in classCommonEntry
- Parameters:
value
- The new value for this property.
Can benull to unset the property.- Returns:
- This object
-