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 SummaryConstructors
- 
Method SummaryModifier 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.CommonEntrygetAuthors, getCategories, getContributors, getId, getLinks, getRights, getTitle, getUpdated
- 
Constructor Details- 
Sourcepublic Source()
 
- 
- 
Method Details- 
getGeneratorBean property getter:generator .The generator info of this source. - Returns:
- The property value, or null if it is not set.
 
- 
setGeneratorBean property setter:generator .The generator info of this source. - Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object
 
- 
getIconBean property getter:icon .The icon of this source. - Returns:
- The property value, or null if it is not set.
 
- 
setIconBean property setter:icon .The icon of this source. - Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object
 
- 
getLogoBean property getter:logo .The logo of this source. - Returns:
- The property value, or null if it is not set.
 
- 
setLogoBean property setter:logo .The logo of this source. - Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object
 
- 
getSubtitleBean property getter:subtitle .The subtitle of this source. - Returns:
- The property value, or null if it is not set.
 
- 
setSubtitleBean property setter:subtitle .The subtitle of this source. - Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object
 
- 
setSubtitleBean property fluent setter:subtitle .The subtitle of this source. - Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object.
 
- 
setBaseDescription copied from class:CommonBean 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:
- setBasein class- CommonEntry
- Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object.
 
- 
setLangDescription copied from class:CommonBean 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:
- setLangin class- CommonEntry
- Parameters:
- value- The new value for this property (e.g., "en", "fr", "de", "en-US").
 Can be- null to unset the property.
- Returns:
- This object.
 
- 
setAuthorsDescription copied from class:CommonEntryBean property setter:authors .The list of authors for this object. - Overrides:
- setAuthorsin class- CommonEntry
- Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object
 
- 
setCategoriesDescription copied from class:CommonEntryBean property setter:categories .The list of categories of this object. - Overrides:
- setCategoriesin class- CommonEntry
- Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object
 
- 
setContributorsDescription copied from class:CommonEntryBean property setter:contributors .The list of contributors of this object. - Overrides:
- setContributorsin class- CommonEntry
- Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object
 
- 
setIdDescription copied from class:CommonEntryBean property fluent setter:id .The ID of this object. - Overrides:
- setIdin class- CommonEntry
- Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object.
 
- 
setIdDescription copied from class:CommonEntryBean property setter:id .The ID of this object. - Overrides:
- setIdin class- CommonEntry
- Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object
 
- 
setLinksDescription copied from class:CommonEntryBean property setter:links .The list of links of this object. - Overrides:
- setLinksin class- CommonEntry
- Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object
 
- 
setRightsDescription copied from class:CommonEntryBean property fluent setter:rights .The rights statement of this object. - Overrides:
- setRightsin class- CommonEntry
- Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object.
 
- 
setRightsDescription copied from class:CommonEntryBean property setter:rights .The rights statement of this object. - Overrides:
- setRightsin class- CommonEntry
- Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object
 
- 
setTitleDescription copied from class:CommonEntryBean property fluent setter:title .The title of this object. - Overrides:
- setTitlein class- CommonEntry
- Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object.
 
- 
setTitleDescription copied from class:CommonEntryBean property setter:title .The title of this object. - Overrides:
- setTitlein class- CommonEntry
- Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object
 
- 
setUpdatedDescription copied from class:CommonEntryBean property fluent setter:updated .The update timestamp of this object. - Overrides:
- setUpdatedin class- CommonEntry
- Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object.
 
- 
setUpdatedDescription copied from class:CommonEntryBean property setter:updated .The update timestamp of this object. - Overrides:
- setUpdatedin class- CommonEntry
- Parameters:
- value- The new value for this property.
 Can be- null to unset the property.
- Returns:
- This object
 
 
-