public class AtomBuilder extends Object
Typically, you'll want to do a static import on this class and then call the methods like so...
Constructor and Description |
---|
AtomBuilder() |
Modifier and Type | Method and Description |
---|---|
static Category |
category(String term)
Creates a
Category element with the specified Category.term(String) attribute. |
static Content |
content()
Creates a
Content element with the specified Content.type(String) attribute. |
static Content |
content(String type)
Creates a
Content element. |
static Entry |
entry(Id id,
Text title,
Calendar updated)
Creates an
Entry element with the specified Entry.id(Id) , Entry.title(Text) , and
Entry.updated(Calendar) attributes. |
static Entry |
entry(String id,
String title,
String updated)
Creates an
Entry element with the specified Entry.id(Id) , Entry.title(Text) , and
Entry.updated(Calendar) attributes. |
static Feed |
feed(Id id,
Text title,
Calendar updated)
Creates a
Feed element with the specified Feed.id(Id) , Entry.title(Text) , and
Feed.updated(Calendar) attributes. |
static Feed |
feed(String id,
String title,
String updated)
Creates a
Feed element with the specified Feed.id(Id) , Entry.title(Text) , and
Feed.updated(Calendar) attributes. |
static Generator |
generator(String text)
Creates a
Generator element with the specified Generator.text(String) child node. |
static Icon |
icon(Object uri)
Creates an
Icon element with the specified Icon.uri(Object) attribute. |
static Id |
id(String text)
Creates an
Id element with the specified Id.text(String) child node. |
static Link |
link(String rel,
String type,
String href)
Creates a
Link element with the specified Link.rel(String) , Link.type(String) , and
Link.href(String) attributes. |
static Logo |
logo(Object uri)
Creates a
Logo element with the specified Logo.uri(Object) attribute. |
static Person |
person(String name)
Creates a
Person element with the specified Person.name(String) attribute. |
static Source |
source()
Creates a
Source element. |
static Text |
text()
Creates a
Text element. |
static Text |
text(String type)
Creates a
Text element with the specified Text.type(String) attribute. |
public AtomBuilder()
public static final Category category(String term)
Category
element with the specified Category.term(String)
attribute.term
- The Category.term(String)
attribute.public static final Content content()
Content
element with the specified Content.type(String)
attribute.public static final Content content(String type)
Content
element.type
- The Content.type(String)
attribute.public static final Entry entry(Id id, Text title, Calendar updated)
Entry
element with the specified Entry.id(Id)
, Entry.title(Text)
, and
Entry.updated(Calendar)
attributes.id
- The Entry.id(Id)
attribute.title
- The Entry.title(Text)
attribute.updated
- The Entry.updated(Calendar)
attribute.public static final Entry entry(String id, String title, String updated)
Entry
element with the specified Entry.id(Id)
, Entry.title(Text)
, and
Entry.updated(Calendar)
attributes.id
- The Entry.id(Id)
attribute.title
- The Entry.title(Text)
attribute.updated
- The Entry.updated(Calendar)
attribute.public static final Feed feed(Id id, Text title, Calendar updated)
Feed
element with the specified Feed.id(Id)
, Entry.title(Text)
, and
Feed.updated(Calendar)
attributes.id
- The Feed.id(Id)
attribute.title
- The Feed.title(Text)
attribute.updated
- The Feed.updated(Calendar)
attribute.public static final Feed feed(String id, String title, String updated)
Feed
element with the specified Feed.id(Id)
, Entry.title(Text)
, and
Feed.updated(Calendar)
attributes.id
- The Feed.id(Id)
attribute.title
- The Feed.title(Text)
attribute.updated
- The Feed.updated(Calendar)
attribute.public static final Generator generator(String text)
Generator
element with the specified Generator.text(String)
child node.text
- The Generator.text(String)
child node.public static final Icon icon(Object uri)
Icon
element with the specified Icon.uri(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.
uri
- The Icon.uri(Object)
attribute.public static final Id id(String text)
Id
element with the specified Id.text(String)
child node.text
- The Id.text(String)
child node.public static final Link link(String rel, String type, String href)
Link
element with the specified Link.rel(String)
, Link.type(String)
, and
Link.href(String)
attributes.rel
- The Link.rel(String)
attribute.type
- The Link.type(String)
attribute.href
- The Link.href(String)
attribute.public static final Logo logo(Object uri)
Logo
element with the specified Logo.uri(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.
uri
- The Logo.uri(Object)
attribute.public static final Person person(String name)
Person
element with the specified Person.name(String)
attribute.name
- The Person.name(String)
attribute.public static final Text text(String type)
Text
element with the specified Text.type(String)
attribute.type
- The Text.type(String)
attribute.Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.