|
||||||||||
| 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 Sourceperson - an atom:author elementpublic Person addAuthor(String name)
Source
addAuthor in interface Sourcename - The author name
public Person addAuthor(String name,
String email,
String iri)
Source
addAuthor in interface Sourcename - The author nameemail - The author emailiri - The author iri
public <T extends Source> T addCategory(Category category)
Source
addCategory in interface Sourcecategory - A atom:category elementpublic Category addCategory(String term)
Source
addCategory in interface Sourceterm - A category term
public Category addCategory(String scheme,
String term,
String label)
Source
addCategory in interface Sourcescheme - A category schemeterm - A category termlabel - The human readable label
public <T extends Source> T addContributor(Person person)
Source
addContributor in interface Sourceperson - a atom:contributor elementpublic Person addContributor(String name)
Source
addContributor in interface Sourcename - The name of a contributor
public Person addContributor(String name,
String email,
String iri)
Source
addContributor in interface Sourcename - The contributor nameemail - The contributor emailiri - The contributor uri
public <T extends Source> T addLink(Link link)
Source
addLink in interface Sourcelink - A atom:link elementpublic Link addLink(String href)
Source
addLink in interface Sourcehref - The href IRI of the link
public Link addLink(String href,
String rel)
Source
addLink in interface Sourcehref - 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 Sourcehref - 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 Sourcetype - A media typehreflang - A target language
public IRI getAlternateLinkResolvedHref()
getAlternateLinkResolvedHref in interface Source
public IRI getAlternateLinkResolvedHref(String type,
String hreflang)
getAlternateLinkResolvedHref in interface Sourcetype - A media typehreflang - A target language
public Person getAuthor()
Source
getAuthor in interface Sourcepublic List<Person> getAuthors()
Source
getAuthors in interface Sourcepublic List<Category> getCategories()
Source
getCategories in interface Sourcepublic List<Category> getCategories(String scheme)
Source
getCategories in interface Sourcescheme - A Scheme IRI
public Collection getCollection()
Source
getCollection in interface Sourcepublic List<Person> getContributors()
Source
getContributors in interface Sourcepublic Generator getGenerator()
Source
getGenerator in interface Sourcepublic IRI getIcon()
Source
getIcon in interface Sourcepublic IRIElement getIconElement()
Source
getIconElement in interface Sourcepublic IRI getId()
Source
getId in interface Sourcepublic IRIElement getIdElement()
Source
getIdElement in interface Sourcepublic Link getLink(String rel)
Source
getLink in interface Sourcerel - A link relation
public IRI getLinkResolvedHref(String rel)
getLinkResolvedHref in interface Sourcerel - A link relation
public List<Link> getLinks()
Source
getLinks in interface Sourcepublic List<Link> getLinks(String rel)
Source
getLinks in interface Sourcerel - A link relation
public List<Link> getLinks(String... rel)
Source
getLinks in interface Sourcepublic IRI getLogo()
Source
getLogo in interface Sourcepublic IRIElement getLogoElement()
Source
getLogoElement in interface Sourcepublic String getRights()
Source
getRights in interface Sourcepublic Text getRightsElement()
SourceThe 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 Sourcepublic Text.Type getRightsType()
Source
getRightsType in interface Sourcepublic Link getSelfLink()
Source
getSelfLink in interface Sourcepublic IRI getSelfLinkResolvedHref()
getSelfLinkResolvedHref in interface Sourcepublic String getSubtitle()
Source
getSubtitle in interface Sourcepublic Text getSubtitleElement()
Source
getSubtitleElement in interface Sourcepublic Text.Type getSubtitleType()
Source
getSubtitleType in interface Sourcepublic String getTitle()
Source
getTitle in interface Sourcepublic Text getTitleElement()
Source
getTitleElement in interface Sourcepublic Text.Type getTitleType()
Source
getTitleType in interface Sourcepublic Date getUpdated()
Source
getUpdated in interface Sourcepublic DateTime getUpdatedElement()
Source
getUpdatedElement in interface Sourcepublic String getUpdatedString()
Source
getUpdatedString in interface Sourcepublic IRIElement newId()
Source
newId in interface Sourcepublic <T extends Source> T setCollection(Collection collection)
Source
setCollection in interface Sourcecollection - An app:collection elementpublic <T extends Source> T setGenerator(Generator generator)
Source
setGenerator in interface Sourcegenerator - A atom:generator element
public Generator setGenerator(String iri,
String version,
String value)
Source
setGenerator in interface Sourceiri - The iri attributeversion - The version attributevalue - The value attribute
public IRIElement setIcon(String iri)
Source
setIcon in interface Sourceiri - The atom:icon IRI valuepublic <T extends Source> T setIconElement(IRIElement iri)
Source
setIconElement in interface Sourceiri - The atom:icon elementpublic IRIElement setId(String id)
Source
setId in interface Sourceid - The atom:id value
public IRIElement setId(String id,
boolean normalize)
Source
setId in interface Sourceid - 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 Sourceid - A atom:id elementpublic IRIElement setLogo(String iri)
Source
setLogo in interface Sourceiri - The atom:logo value
public <T extends Source> T setLogoElement(IRIElement iri)
Source
setLogoElement in interface Sourceiri - The atom:logo elementpublic Text setRights(String value)
Source
setRights in interface Sourcevalue - The atom:rights text value
public Text setRights(String value,
Text.Type type)
Source
setRights in interface Sourcevalue - The atom:rights text valuetype - The atom:rights text type
public Text setRights(Div value)
Source
setRights in interface Sourcevalue - The XHTML div element
public Text setRightsAsHtml(String value)
Source
setRightsAsHtml in interface Sourcevalue - The atom:rights text value
public Text setRightsAsXhtml(String value)
Source
setRightsAsXhtml in interface Sourcevalue - The atom:rights text value
public <T extends Source> T setRightsElement(Text text)
SourceThe 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 Sourcetext - The atom:rights elementpublic Text setSubtitle(String value)
Source
setSubtitle in interface Sourcevalue - the value of the atom:subtitle element
public Text setSubtitle(String value,
Text.Type type)
Source
setSubtitle in interface Sourcevalue - The value of the atom:subtitle elementtype - The atom:subtitle Text.Type
public Text setSubtitle(Div value)
Source
setSubtitle in interface Sourcevalue - The atom:subtitle element
public Text setSubtitleAsHtml(String value)
Source
setSubtitleAsHtml in interface Sourcevalue - The value of the atom:subtitle element
public Text setSubtitleAsXhtml(String value)
Source
setSubtitleAsXhtml in interface Sourcevalue - The value of the atom:subtitle element
public <T extends Source> T setSubtitleElement(Text text)
Source
setSubtitleElement in interface Sourcetext - A atom:subtitle element
public Text setTitle(String value,
Text.Type type)
Source
setTitle in interface Sourcevalue - The atom:title valuetype - The atom:title Text.Type
public Text setTitle(Div value)
Source
setTitle in interface Sourcevalue - The XHTML div
public Text setTitleAsHtml(String value)
Source
setTitleAsHtml in interface Sourcevalue - The atom:title value
public Text setTitleAsXhtml(String value)
Source
setTitleAsXhtml in interface Sourcevalue - The atom:title value
public <T extends Source> T setTitleElement(Text text)
Source
setTitleElement in interface Sourcetext - The atom:title elementpublic DateTime setUpdated(Date value)
Source
setUpdated in interface Sourcevalue - The java.util.Date
public DateTime setUpdated(String value)
Source
setUpdated in interface Sourcevalue - The serialized string date
public <T extends Source> T setUpdatedElement(DateTime dateTime)
Source
setUpdatedElement in interface SourcedateTime - A atom:updated elementpublic Text setTitle(String value)
Source
setTitle in interface Sourcevalue - The atom:title value
public Link getAlternateLink()
Source
getAlternateLink in interface Sourcepublic Feed getAsFeed()
Source
getAsFeed in interface Source
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||