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 specifiedCommonEntry.setId(Id),CommonEntry.setTitle(Text), andCommonEntry.setUpdated(Calendar)attributes.static final EntryCreates anEntryelement with the specifiedCommonEntry.setId(Id),CommonEntry.setTitle(Text), andCommonEntry.setUpdated(Calendar)attributes.static final FeedCreates aFeedelement with the specifiedCommonEntry.setId(Id),CommonEntry.setTitle(Text), andCommonEntry.setUpdated(Calendar)attributes.static final FeedCreates aFeedelement with the specifiedCommonEntry.setId(Id),CommonEntry.setTitle(Text), andCommonEntry.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. Can benull to leave the property unset.- 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. Can benull to leave the property unset.- Returns:
- The new element.
-
entry
Creates anEntryelement with the specifiedCommonEntry.setId(Id),CommonEntry.setTitle(Text), andCommonEntry.setUpdated(Calendar)attributes.- Parameters:
id- TheCommonEntry.setId(Id)attribute. Can benull to leave the property unset.title- TheCommonEntry.setTitle(Text)attribute. Can benull to leave the property unset.updated- TheCommonEntry.setUpdated(Calendar)attribute. Can benull to leave the property unset.- Returns:
- The new element.
-
entry
Creates anEntryelement with the specifiedCommonEntry.setId(Id),CommonEntry.setTitle(Text), andCommonEntry.setUpdated(Calendar)attributes.- Parameters:
id- TheCommonEntry.setId(Id)attribute. Can benull , in which case the property is set to anIdwith no text (not left unset).title- TheCommonEntry.setTitle(Text)attribute. Can benull , in which case the property is set to aTextwith no text (not left unset).updated- TheCommonEntry.setUpdated(Calendar)attribute. Can benull or blank to leave the property unset.- Returns:
- The new element.
-
feed
Creates aFeedelement with the specifiedCommonEntry.setId(Id),CommonEntry.setTitle(Text), andCommonEntry.setUpdated(Calendar)attributes.- Parameters:
id- TheCommonEntry.setId(Id)attribute. Can benull to leave the property unset.title- TheCommonEntry.setTitle(Text)attribute. Can benull to leave the property unset.updated- TheCommonEntry.setUpdated(Calendar)attribute. Can benull to leave the property unset.- Returns:
- The new element.
-
feed
Creates aFeedelement with the specifiedCommonEntry.setId(Id),CommonEntry.setTitle(Text), andCommonEntry.setUpdated(Calendar)attributes.- Parameters:
id- TheCommonEntry.setId(Id)attribute. Can benull , in which case the property is set to anIdwith no text (not left unset).title- TheCommonEntry.setTitle(Text)attribute. Can benull , in which case the property is set to aTextwith no text (not left unset).updated- TheCommonEntry.setUpdated(Calendar)attribute. Can benull or blank to leave the property unset.- Returns:
- The new element.
-
generator
Creates aGeneratorelement with the specifiedGenerator.setText(String)child node.- Parameters:
text- TheGenerator.setText(String)child node. Can benull to leave the property unset.- 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. Can benull to leave the property unset.- Returns:
- The new element.
-
id
Creates anIdelement with the specifiedId.setText(String)child node.- Parameters:
text- TheId.setText(String)child node. Can benull to leave the property unset.- 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. Can benull to leave the property unset.type- TheLink.setType(String)attribute. Can benull to leave the property unset.href- TheLink.setHref(String)attribute. Can benull to leave the property unset.- 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. Can benull to leave the property unset.- Returns:
- The new element.
-
person
Creates aPersonelement with the specifiedPerson.setName(String)attribute.- Parameters:
name- ThePerson.setName(String)attribute. Can benull to leave the property unset.- 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. Can benull to leave the property unset.- Returns:
- The new element.
-