|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.abdera.model.ElementWrapper
org.apache.abdera.model.ExtensibleElementWrapper
org.apache.abdera.ext.rss.RssSource
public class RssSource
Constructor Summary | |
---|---|
RssSource(Element internal)
|
|
RssSource(Factory factory,
QName qname)
|
Method Summary | ||
---|---|---|
|
addAuthor(Person person)
Adds an individual author to the entry |
|
Person |
addAuthor(String name)
Adds an author |
|
Person |
addAuthor(String name,
String email,
String iri)
Adds an author |
|
|
addCategory(Category category)
Adds an individual category to the entry |
|
Category |
addCategory(String term)
Adds a category to the feed |
|
Category |
addCategory(String scheme,
String term,
String label)
Adds a category to the feed |
|
|
addContributor(Person person)
Adds an individual contributor to this entry |
|
Person |
addContributor(String name)
Adds a contributor |
|
Person |
addContributor(String name,
String email,
String iri)
Adds a contributor |
|
|
addLink(Link link)
Adds an individual link to the entry |
|
Link |
addLink(String href)
Adds an individual link element |
|
Link |
addLink(String href,
String rel)
Adds an individual link element |
|
Link |
addLink(String href,
String rel,
String type,
String title,
String hreflang,
long length)
Adds an individual link element |
|
Link |
getAlternateLink()
Returns this entries first alternate link |
|
Link |
getAlternateLink(String type,
String hreflang)
|
|
IRI |
getAlternateLinkResolvedHref()
|
|
IRI |
getAlternateLinkResolvedHref(String type,
String hreflang)
|
|
Feed |
getAsFeed()
Convert the Source element into an empty Feed element |
|
Person |
getAuthor()
Returns the first author listed for the entry |
|
List<Person> |
getAuthors()
Returns the complete set of authors listed for the entry |
|
List<Category> |
getCategories()
Lists the complete set of categories listed for the entry |
|
List<Category> |
getCategories(String scheme)
Lists the complete set of categories using the specified scheme |
|
Collection |
getCollection()
Return an app:collection element associatd with this atom:source. |
|
List<Person> |
getContributors()
Lists the complete set of contributors for this entry |
|
Generator |
getGenerator()
RFC4287: The "atom:generator" element's content identifies the agent used to generate a feed, for debugging and other purposes. |
|
IRI |
getIcon()
RFC4287: The "atom:icon" element's content is an IRI reference [RFC3987] that identifies an image that provides iconic visual identification for a feed... |
|
IRIElement |
getIconElement()
RFC4287: The "atom:icon" element's content is an IRI reference [RFC3987] that identifies an image that provides iconic visual identification for a feed... |
|
IRI |
getId()
Returns the universally unique identifier for this feed |
|
IRIElement |
getIdElement()
RFC4287: The "atom:id" element conveys a permanent, universally unique identifier for an entry or feed. |
|
Link |
getLink(String rel)
Returns the first link with the specified rel attribute value |
|
IRI |
getLinkResolvedHref(String rel)
|
|
List<Link> |
getLinks()
Lists the complete set of links for this entry |
|
List<Link> |
getLinks(String... rel)
Lists the complete set of links using the specified rel attributes values |
|
List<Link> |
getLinks(String rel)
Lists the complete set of links using the specified rel attribute value |
|
IRI |
getLogo()
RFC4287: The "atom:logo" element's content is an IRI reference [RFC3987] that identifies an image that provides visual identification for a feed. |
|
IRIElement |
getLogoElement()
RFC4287: The "atom:logo" element's content is an IRI reference [RFC3987] that identifies an image that provides visual identification for a feed. |
|
String |
getRights()
Returns the text of atom:rights |
|
Text |
getRightsElement()
The rights element is typically used to convey a human readable copyright (e.g. |
|
Text.Type |
getRightsType()
Returns the type of atom:rights |
|
Link |
getSelfLink()
Returns the first link using the rel attribute value "self" |
|
IRI |
getSelfLinkResolvedHref()
|
|
String |
getSubtitle()
Returns the text value of atom:subtitle |
|
Text |
getSubtitleElement()
RFC4287: The "atom:subtitle" element is a Text construct that conveys a human-readable description or subtitle for a feed. |
|
Text.Type |
getSubtitleType()
Returns the atom:subtitle type |
|
String |
getTitle()
Returns the text of atom:title |
|
Text |
getTitleElement()
RFC4287: The "atom:title" element is a Text construct that conveys a human-readable title for an entry or feed. |
|
Text.Type |
getTitleType()
Returns the type of atom:title |
|
Date |
getUpdated()
Return the atom:updated value |
|
DateTime |
getUpdatedElement()
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. |
|
String |
getUpdatedString()
Return the atom:updated value |
|
IRIElement |
newId()
Creates a new randomized atom:id for the entry |
|
|
setCollection(Collection collection)
Set the app:collection element |
|
|
setGenerator(Generator generator)
RFC4287: The "atom:generator" element's content identifies the agent used to generate a feed, for debugging and other purposes. |
|
Generator |
setGenerator(String iri,
String version,
String value)
RFC4287: The "atom:generator" element's content identifies the agent used to generate a feed, for debugging and other purposes. |
|
IRIElement |
setIcon(String iri)
RFC4287: The "atom:icon" element's content is an IRI reference [RFC3987] that identifies an image that provides iconic visual identification for a feed... |
|
|
setIconElement(IRIElement iri)
RFC4287: The "atom:icon" element's content is an IRI reference [RFC3987] that identifies an image that provides iconic visual identification for a feed... |
|
IRIElement |
setId(String id)
Sets the universally unique identifier for this feed |
|
IRIElement |
setId(String id,
boolean normalize)
Sets the universally unique identifier for this feed |
|
|
setIdElement(IRIElement id)
RFC4287: The "atom:id" element conveys a permanent, universally unique identifier for an entry or feed. |
|
IRIElement |
setLogo(String iri)
RFC4287: The "atom:logo" element's content is an IRI reference [RFC3987] that identifies an image that provides visual identification for a feed. |
|
|
setLogoElement(IRIElement iri)
RFC4287: The "atom:logo" element's content is an IRI reference [RFC3987] that identifies an image that provides visual identification for a feed. |
|
Text |
setRights(Div value)
Sets the value of the rights as @type="xhtml" |
|
Text |
setRights(String value)
Sets the value of the rights as @type="text" |
|
Text |
setRights(String value,
Text.Type type)
Sets the value of the rights |
|
Text |
setRightsAsHtml(String value)
Sets the value of the rights as @type="html" |
|
Text |
setRightsAsXhtml(String value)
Sets the value of the rights as @type="xhtml" |
|
|
setRightsElement(Text text)
The rights element is typically used to convey a human readable copyright (e.g. |
|
Text |
setSubtitle(Div value)
Sets the value of the subtitle as @type="xhtml" |
|
Text |
setSubtitle(String value)
Sets the value of the subtitle as @type="text" |
|
Text |
setSubtitle(String value,
Text.Type type)
Sets the value of the subtitle |
|
Text |
setSubtitleAsHtml(String value)
Sets the value of the subtitle as @type="html" |
|
Text |
setSubtitleAsXhtml(String value)
Sets the value of the subtitle as @type="xhtml" |
|
|
setSubtitleElement(Text text)
RFC4287: The "atom:subtitle" element is a Text construct that conveys a human-readable description or subtitle for a feed. |
|
Text |
setTitle(Div value)
Sets the value of the title as @type="xhtml" |
|
Text |
setTitle(String value)
Sets the value of the title as @type="text" |
|
Text |
setTitle(String value,
Text.Type type)
Sets the value of the title |
|
Text |
setTitleAsHtml(String value)
Sets the value of the title as @type="html" |
|
Text |
setTitleAsXhtml(String value)
Sets the value of the title as @type="xhtml" |
|
|
setTitleElement(Text text)
RFC4287: The "atom:title" element is a Text construct that conveys a human-readable title for an entry or feed. |
|
DateTime |
setUpdated(Date value)
Set the atom:updated value |
|
DateTime |
setUpdated(String value)
Set the atom:updated value |
|
|
setUpdatedElement(DateTime dateTime)
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 class org.apache.abdera.model.ExtensibleElementWrapper |
---|
addExtension, addExtension, addExtension, addExtension, addExtension, addSimpleExtension, addSimpleExtension, getExtension, getExtension, getExtensions, getExtensions, getExtensions, getExtInternal, getMustPreserveWhitespace, getSimpleExtension, getSimpleExtension, setMustPreserveWhitespace |
Methods inherited from class org.apache.abdera.model.ElementWrapper |
---|
addComment, clone, complete, declareNS, discard, equals, getAttributes, getAttributeValue, getAttributeValue, getBaseUri, getDefaultWriterOptions, getDocument, getElements, getExtensionAttributes, getFactory, getFirstChild, getFirstChild, getInternal, getLanguage, getLanguageTag, getLocale, getNamespaces, getNextSibling, getNextSibling, getParentElement, getPreviousSibling, getPreviousSibling, getQName, getResolvedBaseUri, getText, hashCode, iterator, removeAttribute, removeAttribute, setAttributeValue, setAttributeValue, setBaseUri, setBaseUri, setLanguage, setParentElement, setText, setText, toString, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
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 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.Base |
---|
addComment, clone, complete, getDefaultWriterOptions, getFactory, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Constructor Detail |
---|
public RssSource(Element internal)
public RssSource(Factory factory, QName qname)
Method Detail |
---|
public <T extends Source> T addAuthor(Person person)
Source
addAuthor
in interface Source
person
- an atom:author elementpublic Person addAuthor(String name)
Source
addAuthor
in interface Source
name
- The author name
public Person addAuthor(String name, String email, String iri)
Source
addAuthor
in interface Source
name
- The author nameemail
- The author emailiri
- The author iri
public <T extends Source> T addCategory(Category category)
Source
addCategory
in interface Source
category
- A atom:category elementpublic Category addCategory(String term)
Source
addCategory
in interface Source
term
- A category term
public Category addCategory(String scheme, String term, String label)
Source
addCategory
in interface Source
scheme
- A category schemeterm
- A category termlabel
- The human readable label
public <T extends Source> T addContributor(Person person)
Source
addContributor
in interface Source
person
- a atom:contributor elementpublic Person addContributor(String name)
Source
addContributor
in interface Source
name
- The name of a contributor
public Person addContributor(String name, String email, String iri)
Source
addContributor
in interface Source
name
- The contributor nameemail
- The contributor emailiri
- The contributor uri
public <T extends Source> T addLink(Link link)
Source
addLink
in interface Source
link
- A atom:link elementpublic Link addLink(String href)
Source
addLink
in interface Source
href
- The href IRI of the link
public Link addLink(String href, String rel)
Source
addLink
in interface Source
href
- The href IRI of the linkrel
- The link rel attribute
public Link addLink(String href, String rel, String type, String title, String hreflang, long length)
Source
addLink
in interface Source
href
- The href IRI of the linkrel
- The link rel attributetype
- The link type attributehreflang
- The link hreflang attributelength
- The length attribute
public Link getAlternateLink(String type, String hreflang)
getAlternateLink
in interface Source
type
- A media typehreflang
- A target language
public IRI getAlternateLinkResolvedHref()
getAlternateLinkResolvedHref
in interface Source
public IRI getAlternateLinkResolvedHref(String type, String hreflang)
getAlternateLinkResolvedHref
in interface Source
type
- A media typehreflang
- A target language
public Person getAuthor()
Source
getAuthor
in interface Source
public List<Person> getAuthors()
Source
getAuthors
in interface Source
public List<Category> getCategories()
Source
getCategories
in interface Source
public List<Category> getCategories(String scheme)
Source
getCategories
in interface Source
scheme
- A Scheme IRI
public Collection getCollection()
Source
getCollection
in interface Source
public List<Person> getContributors()
Source
getContributors
in interface Source
public Generator getGenerator()
Source
getGenerator
in interface Source
public IRI getIcon()
Source
getIcon
in interface Source
public IRIElement getIconElement()
Source
getIconElement
in interface Source
public IRI getId()
Source
getId
in interface Source
public IRIElement getIdElement()
Source
getIdElement
in interface Source
public Link getLink(String rel)
Source
getLink
in interface Source
rel
- A link relation
public IRI getLinkResolvedHref(String rel)
getLinkResolvedHref
in interface Source
rel
- A link relation
public List<Link> getLinks()
Source
getLinks
in interface Source
public List<Link> getLinks(String rel)
Source
getLinks
in interface Source
rel
- A link relation
public List<Link> getLinks(String... rel)
Source
getLinks
in interface Source
public IRI getLogo()
Source
getLogo
in interface Source
public IRIElement getLogoElement()
Source
getLogoElement
in interface Source
public String getRights()
Source
getRights
in interface Source
public Text getRightsElement()
Source
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.
getRightsElement
in interface Source
public Text.Type getRightsType()
Source
getRightsType
in interface Source
public Link getSelfLink()
Source
getSelfLink
in interface Source
public IRI getSelfLinkResolvedHref()
getSelfLinkResolvedHref
in interface Source
public String getSubtitle()
Source
getSubtitle
in interface Source
public Text getSubtitleElement()
Source
getSubtitleElement
in interface Source
public Text.Type getSubtitleType()
Source
getSubtitleType
in interface Source
public String getTitle()
Source
getTitle
in interface Source
public Text getTitleElement()
Source
getTitleElement
in interface Source
public Text.Type getTitleType()
Source
getTitleType
in interface Source
public Date getUpdated()
Source
getUpdated
in interface Source
public DateTime getUpdatedElement()
Source
getUpdatedElement
in interface Source
public String getUpdatedString()
Source
getUpdatedString
in interface Source
public IRIElement newId()
Source
newId
in interface Source
public <T extends Source> T setCollection(Collection collection)
Source
setCollection
in interface Source
collection
- An app:collection elementpublic <T extends Source> T setGenerator(Generator generator)
Source
setGenerator
in interface Source
generator
- A atom:generator elementpublic Generator setGenerator(String iri, String version, String value)
Source
setGenerator
in interface Source
iri
- The iri attributeversion
- The version attributevalue
- The value attribute
public IRIElement setIcon(String iri)
Source
setIcon
in interface Source
iri
- The atom:icon IRI valuepublic <T extends Source> T setIconElement(IRIElement iri)
Source
setIconElement
in interface Source
iri
- The atom:icon elementpublic IRIElement setId(String id)
Source
setId
in interface Source
id
- The atom:id value
public IRIElement setId(String id, boolean normalize)
Source
setId
in interface Source
id
- The atom:id valuenormalize
- True if the atom:id value should be normalized
public <T extends Source> T setIdElement(IRIElement id)
Source
setIdElement
in interface Source
id
- A atom:id elementpublic IRIElement setLogo(String iri)
Source
setLogo
in interface Source
iri
- The atom:logo value
public <T extends Source> T setLogoElement(IRIElement iri)
Source
setLogoElement
in interface Source
iri
- The atom:logo elementpublic Text setRights(String value)
Source
setRights
in interface Source
value
- The atom:rights text value
public Text setRights(String value, Text.Type type)
Source
setRights
in interface Source
value
- The atom:rights text valuetype
- The atom:rights text type
public Text setRights(Div value)
Source
setRights
in interface Source
value
- The XHTML div element
public Text setRightsAsHtml(String value)
Source
setRightsAsHtml
in interface Source
value
- The atom:rights text value
public Text setRightsAsXhtml(String value)
Source
setRightsAsXhtml
in interface Source
value
- The atom:rights text value
public <T extends Source> T setRightsElement(Text text)
Source
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.
setRightsElement
in interface Source
text
- The atom:rights elementpublic Text setSubtitle(String value)
Source
setSubtitle
in interface Source
value
- the value of the atom:subtitle element
public Text setSubtitle(String value, Text.Type type)
Source
setSubtitle
in interface Source
value
- The value of the atom:subtitle elementtype
- The atom:subtitle Text.Type
public Text setSubtitle(Div value)
Source
setSubtitle
in interface Source
value
- The atom:subtitle element
public Text setSubtitleAsHtml(String value)
Source
setSubtitleAsHtml
in interface Source
value
- The value of the atom:subtitle element
public Text setSubtitleAsXhtml(String value)
Source
setSubtitleAsXhtml
in interface Source
value
- The value of the atom:subtitle element
public <T extends Source> T setSubtitleElement(Text text)
Source
setSubtitleElement
in interface Source
text
- A atom:subtitle elementpublic Text setTitle(String value, Text.Type type)
Source
setTitle
in interface Source
value
- The atom:title valuetype
- The atom:title Text.Type
public Text setTitle(Div value)
Source
setTitle
in interface Source
value
- The XHTML div
public Text setTitleAsHtml(String value)
Source
setTitleAsHtml
in interface Source
value
- The atom:title value
public Text setTitleAsXhtml(String value)
Source
setTitleAsXhtml
in interface Source
value
- The atom:title value
public <T extends Source> T setTitleElement(Text text)
Source
setTitleElement
in interface Source
text
- The atom:title elementpublic DateTime setUpdated(Date value)
Source
setUpdated
in interface Source
value
- The java.util.Date
public DateTime setUpdated(String value)
Source
setUpdated
in interface Source
value
- The serialized string date
public <T extends Source> T setUpdatedElement(DateTime dateTime)
Source
setUpdatedElement
in interface Source
dateTime
- A atom:updated elementpublic Text setTitle(String value)
Source
setTitle
in interface Source
value
- The atom:title value
public Link getAlternateLink()
Source
getAlternateLink
in interface Source
public Feed getAsFeed()
Source
getAsFeed
in interface Source
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |