Class AtomBuilder
Typically, you'll want to do a static import on this class and then call the methods like so...
See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final CategoryCreates aCategoryelement with the specifiedCategory.setTerm(String)attribute.static final Contentcontent()Creates aContentelement with the specifiedContent.setType(String)attribute.static final ContentCreates aContentelement.static final EntryCreates anEntryelement with the specifiedEntry.setId(Id),Entry.setTitle(Text), andEntry.setUpdated(Calendar)attributes.static final EntryCreates anEntryelement with the specifiedEntry.setId(Id),Entry.setTitle(Text), andEntry.setUpdated(Calendar)attributes.static final FeedCreates aFeedelement with the specifiedFeed.setId(Id),Entry.setTitle(Text), andFeed.setUpdated(Calendar)attributes.static final FeedCreates aFeedelement with the specifiedFeed.setId(Id),Entry.setTitle(Text), andFeed.setUpdated(Calendar)attributes.static final GeneratorCreates aGeneratorelement with the specifiedGenerator.setText(String)child node.static final IconCreates anIconelement with the specifiedIcon.setUri(Object)attribute.static final IdCreates anIdelement with the specifiedId.setText(String)child node.static final LinkCreates aLinkelement with the specifiedLink.setRel(String),Link.setType(String), andLink.setHref(String)attributes.static final LogoCreates aLogoelement with the specifiedLogo.setUri(Object)attribute.static final PersonCreates aPersonelement with the specifiedPerson.setName(String)attribute.static final Sourcesource()Creates aSourceelement.static final Texttext()Creates aTextelement.static final TextCreates aTextelement with the specifiedText.setType(String)attribute.
-
Constructor Details
-
AtomBuilder
protected AtomBuilder()Constructor.
-
-
Method Details
-
category
Creates aCategoryelement with the specifiedCategory.setTerm(String)attribute.- Parameters:
term- TheCategory.setTerm(String)attribute.- Returns:
- The new element.
-
content
Creates aContentelement with the specifiedContent.setType(String)attribute.- Returns:
- The new element.
-
content
Creates aContentelement.- Parameters:
type- TheContent.setType(String)attribute.- Returns:
- The new element.
-
entry
Creates anEntryelement with the specifiedEntry.setId(Id),Entry.setTitle(Text), andEntry.setUpdated(Calendar)attributes.- Parameters:
id- TheEntry.setId(Id)attribute.title- TheEntry.setTitle(Text)attribute.updated- TheEntry.setUpdated(Calendar)attribute.- Returns:
- The new element.
-
entry
Creates anEntryelement with the specifiedEntry.setId(Id),Entry.setTitle(Text), andEntry.setUpdated(Calendar)attributes.- Parameters:
id- TheEntry.setId(Id)attribute.title- TheEntry.setTitle(Text)attribute.updated- TheEntry.setUpdated(Calendar)attribute.- Returns:
- The new element.
-
feed
Creates aFeedelement with the specifiedFeed.setId(Id),Entry.setTitle(Text), andFeed.setUpdated(Calendar)attributes.- Parameters:
id- TheFeed.setId(Id)attribute.title- TheFeed.setTitle(Text)attribute.updated- TheFeed.setUpdated(Calendar)attribute.- Returns:
- The new element.
-
feed
Creates aFeedelement with the specifiedFeed.setId(Id),Entry.setTitle(Text), andFeed.setUpdated(Calendar)attributes.- Parameters:
id- TheFeed.setId(Id)attribute.title- TheFeed.setTitle(Text)attribute.updated- TheFeed.setUpdated(Calendar)attribute.- Returns:
- The new element.
-
generator
Creates aGeneratorelement with the specifiedGenerator.setText(String)child node.- Parameters:
text- TheGenerator.setText(String)child node.- Returns:
- The new element.
-
icon
Creates anIconelement with the specifiedIcon.setUri(Object)attribute.The value can be of any of the following types:
URI,URL,String. Strings must be valid URIs.URIs defined by
UriResolvercan be used for values.- Parameters:
uri- TheIcon.setUri(Object)attribute.- Returns:
- The new element.
-
id
Creates anIdelement with the specifiedId.setText(String)child node.- Parameters:
text- TheId.setText(String)child node.- Returns:
- The new element.
-
link
Creates aLinkelement with the specifiedLink.setRel(String),Link.setType(String), andLink.setHref(String)attributes.- Parameters:
rel- TheLink.setRel(String)attribute.type- TheLink.setType(String)attribute.href- TheLink.setHref(String)attribute.- Returns:
- The new element.
-
logo
Creates aLogoelement with the specifiedLogo.setUri(Object)attribute.The value can be of any of the following types:
URI,URL,String. Strings must be valid URIs.URIs defined by
UriResolvercan be used for values.- Parameters:
uri- TheLogo.setUri(Object)attribute.- Returns:
- The new element.
-
person
Creates aPersonelement with the specifiedPerson.setName(String)attribute.- Parameters:
name- ThePerson.setName(String)attribute.- Returns:
- The new element.
-
source
Creates aSourceelement.- Returns:
- The new element.
-
text
Creates aTextelement.- Returns:
- The new element.
-
text
Creates aTextelement with the specifiedText.setType(String)attribute.- Parameters:
type- TheText.setType(String)attribute.- Returns:
- The new element.
-