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
-
Method Summary
Modifier and TypeMethodDescriptionstatic final Category
Creates aCategory
element with the specifiedCategory.setTerm(String)
attribute.static final Content
content()
Creates aContent
element with the specifiedContent.setType(String)
attribute.static final Content
Creates aContent
element.static final Entry
Creates anEntry
element with the specifiedEntry.setId(Id)
,Entry.setTitle(Text)
, andEntry.setUpdated(Calendar)
attributes.static final Entry
Creates anEntry
element with the specifiedEntry.setId(Id)
,Entry.setTitle(Text)
, andEntry.setUpdated(Calendar)
attributes.static final Feed
Creates aFeed
element with the specifiedFeed.setId(Id)
,Entry.setTitle(Text)
, andFeed.setUpdated(Calendar)
attributes.static final Feed
Creates aFeed
element with the specifiedFeed.setId(Id)
,Entry.setTitle(Text)
, andFeed.setUpdated(Calendar)
attributes.static final Generator
Creates aGenerator
element with the specifiedGenerator.setText(String)
child node.static final Icon
Creates anIcon
element with the specifiedIcon.setUri(Object)
attribute.static final Id
Creates anId
element with the specifiedId.setText(String)
child node.static final Link
Creates aLink
element with the specifiedLink.setRel(String)
,Link.setType(String)
, andLink.setHref(String)
attributes.static final Logo
Creates aLogo
element with the specifiedLogo.setUri(Object)
attribute.static final Person
Creates aPerson
element with the specifiedPerson.setName(String)
attribute.static final Source
source()
Creates aSource
element.static final Text
text()
Creates aText
element.static final Text
Creates aText
element with the specifiedText.setType(String)
attribute.
-
Constructor Details
-
AtomBuilder
public AtomBuilder()
-
-
Method Details
-
category
Creates aCategory
element with the specifiedCategory.setTerm(String)
attribute.- Parameters:
term
- TheCategory.setTerm(String)
attribute.- Returns:
- The new element.
-
content
Creates aContent
element with the specifiedContent.setType(String)
attribute.- Returns:
- The new element.
-
content
Creates aContent
element.- Parameters:
type
- TheContent.setType(String)
attribute.- Returns:
- The new element.
-
entry
Creates anEntry
element 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 anEntry
element 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 aFeed
element 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 aFeed
element 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 aGenerator
element with the specifiedGenerator.setText(String)
child node.- Parameters:
text
- TheGenerator.setText(String)
child node.- Returns:
- The new element.
-
icon
Creates anIcon
element 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
UriResolver
can be used for values.- Parameters:
uri
- TheIcon.setUri(Object)
attribute.- Returns:
- The new element.
-
id
Creates anId
element with the specifiedId.setText(String)
child node.- Parameters:
text
- TheId.setText(String)
child node.- Returns:
- The new element.
-
link
Creates aLink
element 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 aLogo
element 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
UriResolver
can be used for values.- Parameters:
uri
- TheLogo.setUri(Object)
attribute.- Returns:
- The new element.
-
person
Creates aPerson
element with the specifiedPerson.setName(String)
attribute.- Parameters:
name
- ThePerson.setName(String)
attribute.- Returns:
- The new element.
-
source
Creates aSource
element.- Returns:
- The new element.
-
text
Creates aText
element.- Returns:
- The new element.
-
text
Creates aText
element with the specifiedText.setType(String)
attribute.- Parameters:
type
- TheText.setType(String)
attribute.- Returns:
- The new element.
-