@Bean(typeName="feed") public class Feed extends CommonEntry
Represents an
atomFeed = element atom:feed { atomCommonAttributes, (atomAuthor* & atomCategory* & atomContributor* & atomGenerator? & atomIcon? & atomId & atomLink* & atomLogo? & atomRights? & atomSubtitle? & atomTitle & atomUpdated & extensionElement*), atomEntry* }
Constructor and Description |
---|
Feed()
Bean constructor.
|
Feed(Id id,
Text title,
Calendar updated)
Normal constructor.
|
Feed(String id,
String title,
String updated)
Normal constructor.
|
Modifier and Type | Method and Description |
---|---|
Feed |
authors(Person... authors)
Sets the list of authors for this object.
|
Feed |
base(Object base)
Sets the URI base of this object.
|
Feed |
categories(Category... categories)
Sets the list of categories of this object.
|
Feed |
contributors(Person... contributors)
Sets the list of contributors of this object.
|
Feed |
entries(Entry... entries)
Sets the entries in the feed.
|
Feed |
generator(Generator generator)
Sets the generator information on this feed.
|
Entry[] |
getEntries()
Returns the entries in the feed.
|
Generator |
getGenerator()
Returns generator information on this feed.
|
Icon |
getIcon()
Returns the feed icon.
|
Logo |
getLogo()
Returns the feed logo.
|
Text |
getSubTitle()
Returns the feed subtitle.
|
Feed |
icon(Icon icon)
Sets the feed icon.
|
Feed |
id(Id id)
Sets the ID of this object.
|
Feed |
lang(String lang)
Sets the language of this object.
|
Feed |
links(Link... links)
Sets the list of links of this object.
|
Feed |
logo(Logo logo)
Sets the feed logo.
|
Feed |
rights(String rights)
Sets the rights statement of this object.
|
Feed |
rights(Text rights)
Sets the rights statement of this object.
|
Feed |
subtitle(String subtitle)
Sets the feed subtitle.
|
Feed |
subtitle(Text subtitle)
Sets the feed subtitle.
|
Feed |
title(String title)
Sets the title of this object.
|
Feed |
title(Text title)
Sets the title of this object.
|
Feed |
updated(Calendar updated)
Sets the update timestamp of this object.
|
Feed |
updated(String updated)
Sets the update timestamp of this object.
|
getAuthors, getCategories, getContributors, getId, getLinks, getRights, getTitle, getUpdated, id
public Feed(Id id, Text title, Calendar updated)
id
- The feed identifier.title
- The feed title.updated
- The feed updated timestamp.public Feed(String id, String title, String updated)
id
- The feed identifier.title
- The feed title.updated
- The feed updated timestamp.public Feed()
public Generator getGenerator()
@BeanProperty(value="generator") public Feed generator(Generator generator)
generator
- The generator information on this feed.@BeanProperty(value="icon") public Feed icon(Icon icon)
icon
- The feed icon.@BeanProperty(value="logo") public Feed logo(Logo logo)
logo
- The feed logo.@BeanProperty(value="subtitle") public Text getSubTitle()
@BeanProperty(value="subtitle") public Feed subtitle(Text subtitle)
subtitle
- The feed subtitle.public Feed subtitle(String subtitle)
subtitle
- The feed subtitle.@Xml(format=COLLAPSED) public Entry[] getEntries()
@BeanProperty(value="entries") public Feed entries(Entry... entries)
entries
- The entries in the feed.public Feed authors(Person... authors)
CommonEntry
authors
in class CommonEntry
authors
- The list of authors for this object.public Feed categories(Category... categories)
CommonEntry
categories
in class CommonEntry
categories
- The list of categories of this object.public Feed contributors(Person... contributors)
CommonEntry
contributors
in class CommonEntry
contributors
- The list of contributors of this object.public Feed id(Id id)
CommonEntry
id
in class CommonEntry
id
- The ID of this object.public Feed links(Link... links)
CommonEntry
links
in class CommonEntry
links
- The list of links of this object.public Feed rights(Text rights)
CommonEntry
rights
in class CommonEntry
rights
- The rights statement of this object.public Feed rights(String rights)
CommonEntry
rights
in class CommonEntry
rights
- The rights statement of this object.public Feed title(Text title)
CommonEntry
title
in class CommonEntry
title
- The title of this object.public Feed title(String title)
CommonEntry
title
in class CommonEntry
title
- The title of this object.public Feed updated(Calendar updated)
CommonEntry
updated
in class CommonEntry
updated
- The update timestamp of this object.public Feed updated(String updated)
CommonEntry
updated
in class CommonEntry
updated
- The update timestamp of this object in ISO8601 format.public Feed base(Object base)
Common
The value can be of any of the following types: URI
, URL
, String
.
Strings must be valid URIs.
URIs defined by UriResolver
can be used for values.
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.