public class Source extends CommonAttributes
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.
Modifier and Type | Field and Description |
---|---|
private java.util.List<Person> |
authors |
private java.util.List<Category> |
categories |
private java.util.List<Person> |
contributors |
private Generator |
generator |
private java.net.URI |
icon |
private java.net.URI |
id |
private java.util.List<Link> |
links |
private java.net.URI |
logo |
private java.lang.String |
rights |
private java.lang.String |
subtitle |
private java.lang.String |
title |
private java.util.Date |
updated |
Constructor and Description |
---|
Source() |
Modifier and Type | Method and Description |
---|---|
java.util.List<Person> |
getAuthors() |
java.util.List<Category> |
getCategories() |
java.util.List<Person> |
getContributors() |
Generator |
getGenerator() |
java.net.URI |
getIcon() |
java.net.URI |
getId() |
Link |
getLinkByRel(java.lang.String name) |
java.util.List<Link> |
getLinks() |
java.net.URI |
getLogo() |
java.lang.String |
getRights() |
java.lang.String |
getSubtitle() |
java.lang.String |
getTitle() |
java.util.Date |
getUpdated() |
void |
setGenerator(Generator generator) |
void |
setIcon(java.net.URI icon) |
void |
setId(java.net.URI id) |
void |
setLogo(java.net.URI logo) |
void |
setRights(java.lang.String rights) |
void |
setSubtitle(java.lang.String subtitle) |
void |
setTitle(java.lang.String title) |
void |
setUpdated(java.util.Date updated) |
getBase, getExtensionAttributes, getLanguage, setBase, setLanguage
private java.util.List<Person> authors
private java.util.List<Category> categories
private java.util.List<Person> contributors
private Generator generator
private java.net.URI id
private java.lang.String title
private java.util.Date updated
private java.util.List<Link> links
private java.net.URI icon
private java.net.URI logo
private java.lang.String rights
private java.lang.String subtitle
public java.util.List<Person> getAuthors()
public java.util.List<Person> getContributors()
public java.net.URI getId()
public void setId(java.net.URI id)
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public java.util.Date getUpdated()
public void setUpdated(java.util.Date updated)
public Link getLinkByRel(java.lang.String name)
public java.util.List<Link> getLinks()
public java.util.List<Category> getCategories()
public Generator getGenerator()
public void setGenerator(Generator generator)
public java.net.URI getIcon()
public void setIcon(java.net.URI icon)
public java.net.URI getLogo()
public void setLogo(java.net.URI logo)
public java.lang.String getRights()
public void setRights(java.lang.String rights)
public java.lang.String getSubtitle()
public void setSubtitle(java.lang.String subtitle)