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 .setGenerator(Generator value) Bean property setter:generator .Bean property setter:icon .Bean property setter:logo .setSubtitle(String value) Bean property fluent setter:subtitle .setSubtitle(Text value) Bean property setter:subtitle .Methods inherited from class org.apache.juneau.bean.atom.CommonEntry
getAuthors, getCategories, getContributors, getId, getLinks, getRights, getTitle, getUpdated, setAuthors, setBase, setCategories, setContributors, setId, setId, setLang, setLinks, setRights, setRights, setTitle, setTitle, setUpdated, setUpdated
-
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.
-
getIcon
Bean property getter:icon .The icon of this source.
- Returns:
- The property value, or
null if it is not set.
-
getLogo
Bean property getter:logo .The logo of this source.
- Returns:
- The property value, or
null if it is not set.
-
getSubtitle
Bean property getter:subtitle .The subtitle 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
-
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
-
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
-
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.
-
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
-