|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Factory
The Factory interface is the primary means by which Feed Object Model instances are built. Factories are specific to parser implementations. Users will generally not have to know anything about the Factory implementation, which will be automatically selected based on the Abdera configuration options.
Method Summary | ||
---|---|---|
Abdera |
getAbdera()
Get the Abdera instance for this factory |
|
|
getMimeType(T base)
Get the mime type for the specified extension element / document |
|
String[] |
listExtensionFactories()
Returns a listing of extension factories registered |
|
Person |
newAuthor()
Create a new author element. |
|
Person |
newAuthor(Element parent)
Create a new author element as a child of the given Element. |
|
Categories |
newCategories()
Create a new Categories element. |
|
Categories |
newCategories(Base parent)
Create a new Categories element. |
|
Category |
newCategory()
Create a new Category element. |
|
Category |
newCategory(Element parent)
Create a new Category element as a child of the given Element. |
|
Collection |
newCollection()
Create a new Collection element. |
|
Collection |
newCollection(Element parent)
Create a new Collection element as a child of the given Element. |
|
Content |
newContent()
Create a new Content element. |
|
Content |
newContent(Content.Type type)
Create a new Content element of the given Content.Type. |
|
Content |
newContent(Content.Type type,
Element parent)
Create a new Content element of the given Content.Type as a child of the given Element. |
|
Content |
newContent(javax.activation.MimeType mediaType)
Create a new Content element of the given MediaType. |
|
Content |
newContent(javax.activation.MimeType mediaType,
Element parent)
Create a new Content element of the given MediaType as a child of the given Element. |
|
Person |
newContributor()
Create a new contributor element. |
|
Person |
newContributor(Element parent)
Create a new contributor element as a child of the given Element. |
|
Control |
newControl()
Create a new Control element. |
|
Control |
newControl(Element parent)
Create a new Control element as a child of the given Element. |
|
DateTime |
newDateTime(QName qname,
Element parent)
Create a new DateTime element with the given QName as a child of the given Element. |
|
Generator |
newDefaultGenerator()
Create a new Generator with Abdera's default name and version. |
|
Generator |
newDefaultGenerator(Element parent)
Create a new Generator using Abdera's default name and version as a child of the given Element. |
|
Div |
newDiv()
Create a new Div element. |
|
Div |
newDiv(Base parent)
Create a new Div element as a child of the given Base. |
|
|
newDocument()
Create a new Document instance with a root Element of type T. |
|
DateTime |
newEdited()
Create a new app:edited element. |
|
DateTime |
newEdited(Element parent)
Create a new app:edited element. |
|
|
newElement(QName qname)
Create a new Element with the given QName. |
|
|
newElement(QName qname,
Base parent)
Create a new Element with the given QName as a child of the given Base. |
|
Element |
newEmail()
Create a new email element. |
|
Element |
newEmail(Element parent)
Create a new email element as a child of the given Element. |
|
Entry |
newEntry()
Create a new Entry element. |
|
Entry |
newEntry(Base parent)
Create a new Entry element as a child of the given Base. |
|
|
newExtensionElement(QName qname)
Create a new extension element with the given QName. |
|
|
newExtensionElement(QName qname,
Base parent)
Create a new extension element with the given QName as a child of the given Base. |
|
Feed |
newFeed()
Create a new Feed element. |
|
Feed |
newFeed(Base parent)
Create a new Feed element as a child of the given Base. |
|
Generator |
newGenerator()
Create a new Generator element. |
|
Generator |
newGenerator(Element parent)
Create a new Generator element as a child of the given Element. |
|
IRIElement |
newIcon()
Create a new icon element. |
|
IRIElement |
newIcon(Element parent)
Create a new icon element as a child of the given Element. |
|
IRIElement |
newID()
Create a new id element. |
|
IRIElement |
newID(Element parent)
Create a new id element as a child of the given Element. |
|
IRIElement |
newIRIElement(QName qname,
Element parent)
Create a new IRI element with the given QName as a child of the given Element. |
|
Link |
newLink()
Create a new Link element. |
|
Link |
newLink(Element parent)
Create a new Link element as a child of the given Element. |
|
IRIElement |
newLogo()
Create a new logo element. |
|
IRIElement |
newLogo(Element parent)
Create a new logo element as a child of the given Element. |
|
Element |
newName()
Create a new name element. |
|
Element |
newName(Element parent)
Create a new name element as a child of the given Element. |
|
Parser |
newParser()
Create a new Parser instance. |
|
Person |
newPerson(QName qname,
Element parent)
Create a new Person element with the given QName as a child of the given Element. |
|
DateTime |
newPublished()
Create a new published element. |
|
DateTime |
newPublished(Element parent)
Create a new published element as a child of the given Element. |
|
Text |
newRights()
Create a new rights element. |
|
Text |
newRights(Element parent)
Create a new rights element as a child of the given Element. |
|
Text |
newRights(Text.Type type)
Create a new rights element with the given Text.Type. |
|
Text |
newRights(Text.Type type,
Element parent)
Create a new rights element with the given Text.Type as a child of the given Element. |
|
Service |
newService()
Create a new Service element. |
|
Service |
newService(Base parent)
Create a new Service element as a child of the given Base. |
|
Source |
newSource()
Create a new Source element. |
|
Source |
newSource(Element parent)
Create a new Source element as a child of the given Element. |
|
Text |
newSubtitle()
Create a new subtitle element. |
|
Text |
newSubtitle(Element parent)
Create a new subtitle element as a child of the given Element. |
|
Text |
newSubtitle(Text.Type type)
Create a new subtitle element with the given Text.Type. |
|
Text |
newSubtitle(Text.Type type,
Element parent)
Create a new subtitle element with the given Text.Type as a child of the given Element. |
|
Text |
newSummary()
Create a new summary element. |
|
Text |
newSummary(Element parent)
Create a new summary element as a child of the given Element. |
|
Text |
newSummary(Text.Type type)
Create a new summary element with the given Text.Type. |
|
Text |
newSummary(Text.Type type,
Element parent)
Create a new summary element with the given Text.Type as a child of the given Element. |
|
Text |
newText(QName qname,
Text.Type type)
Create a new Text element with the given QName and Text.Type. |
|
Text |
newText(QName qname,
Text.Type type,
Element parent)
Create a new Text element with the given QName and Text.Type as a child of the given Element. |
|
Text |
newTitle()
Create a new title element. |
|
Text |
newTitle(Element parent)
Create a new title element as a child of the given Element. |
|
Text |
newTitle(Text.Type type)
Create a new title element with the given Text.Type. |
|
Text |
newTitle(Text.Type type,
Element parent)
Create a new title element with the given Text.Type as a child of the given Element. |
|
DateTime |
newUpdated()
Create a new updated element. |
|
DateTime |
newUpdated(Element parent)
create a new updated element as a child of the given Element. |
|
IRIElement |
newUri()
Create a new uri element. |
|
IRIElement |
newUri(Element parent)
Create a new uri element as a child of the given Element. |
|
String |
newUuidUri()
Generate a new random UUID URI |
|
Workspace |
newWorkspace()
Create a new Workspace element. |
|
Workspace |
newWorkspace(Element parent)
Create a new Workspace element as a child of the given Element. |
|
Factory |
registerExtension(ExtensionFactory extensionFactory)
Registers an extension factory for this Factory instance only |
Method Detail |
---|
Parser newParser()
<T extends Element> Document<T> newDocument()
Service newService()
Service newService(Base parent)
parent
- The element or document to which the new Service should be added as a child
Workspace newWorkspace()
Workspace newWorkspace(Element parent)
parent
- The element to which the new Workspace should be added as a child
Collection newCollection()
Collection newCollection(Element parent)
parent
- The element to which the new Collection should be added as a child
Feed newFeed()
Feed newFeed(Base parent)
parent
- The element or document to which the new Feed should be added as a child
Entry newEntry()
Entry newEntry(Base parent)
parent
- The element or document to which the new Entry should be added as a child
Category newCategory()
Category newCategory(Element parent)
parent
- The element to which the new Category should be added as a child
Content newContent()
Content newContent(Content.Type type)
type
- The Content.Type for the newly created Content element.
Content newContent(Content.Type type, Element parent)
type
- The Content.Type for the newly created Content element.parent
- The element to which the new Content should be added as a child
Content newContent(javax.activation.MimeType mediaType)
mediaType
- The MIME media type to be specified by the type attribute
Content newContent(javax.activation.MimeType mediaType, Element parent)
mediaType
- The MIME media type to be specified by the type attributeparent
- The element to which the new Content should be added as a child
DateTime newPublished()
DateTime newPublished(Element parent)
parent
- The element to which the new Published element should be added as a child
DateTime newUpdated()
DateTime newUpdated(Element parent)
parent
- The element to which the new Updated element should be added as a child
DateTime newEdited()
DateTime newEdited(Element parent)
parent
- The element to which the new Edited element should be added as a child
DateTime newDateTime(QName qname, Element parent)
qname
- The XML QName of the Atom Date element to createparent
- The element to which the new Atom Date element should be added as a child
Generator newDefaultGenerator()
Generator newDefaultGenerator(Element parent)
parent
- The element to which the new Generator element should be added as a child
Generator newGenerator()
Generator newGenerator(Element parent)
parent
- The element to which the new Generator element should be added as a child
IRIElement newID()
IRIElement newID(Element parent)
parent
- The element to which the new ID element should be added as a child
IRIElement newIcon()
IRIElement newIcon(Element parent)
parent
- The element to which the new Icon element should be added as a child
IRIElement newLogo()
IRIElement newLogo(Element parent)
parent
- The element to which the new Logo element should be added as a child
IRIElement newUri()
IRIElement newUri(Element parent)
parent
- The element to which the new URI element should be added as a child
IRIElement newIRIElement(QName qname, Element parent)
qname
- The XML QName of the new IRI elementparent
- The element to which the new generic IRI element should be added as a child
Link newLink()
Link newLink(Element parent)
parent
- The element to which the new Link element should be added as a child
Person newAuthor()
Person newAuthor(Element parent)
parent
- The element to which the new Author element should be added as a child
Person newContributor()
Person newContributor(Element parent)
parent
- The element to which the new Contributor element should be added as a child
Person newPerson(QName qname, Element parent)
qname
- The XML QName of the newly created Person elementparent
- The element to which the new Person element should be added as a child
Source newSource()
Source newSource(Element parent)
parent
- The element to which the new Source element should be added as a child
Text newText(QName qname, Text.Type type)
qname
- The XML QName of the Text element to createtype
- The type of text (plain text, HTML or XHTML)
Text newText(QName qname, Text.Type type, Element parent)
qname
- The XML QName of the Text element to createtype
- The type of text (plain text, HTML or XHTML)parent
- The element to which the new Updated element should be added as a child
Text newTitle()
Text newTitle(Element parent)
parent
- The element to which the new Title element should be added as a child
Text newTitle(Text.Type type)
type
- The type of text used in the title (plain text, HTML, XHTML)
Text newTitle(Text.Type type, Element parent)
type
- The type of text used in the title (plain text, HTML, XHTML)parent
- The element to which the new Updated element should be added as a child
Text newSubtitle()
Text newSubtitle(Element parent)
parent
- The element to which the new Subtitle element should be added as a child
Text newSubtitle(Text.Type type)
type
- The type of text used in the subtitle (plain text, HTML, XHTML)
Text newSubtitle(Text.Type type, Element parent)
type
- The type of text used i the subtitle (plain text, HTML, XHTML)parent
- The element to which the new Subtitle element should be added as a child
Text newSummary()
Text newSummary(Element parent)
parent
- The element to which the new Summary element should be added as a child
Text newSummary(Text.Type type)
type
- The type of text used in the summary (plain text, HTML, XHTML)
Text newSummary(Text.Type type, Element parent)
type
- The type of text used in the summary (plain text, HTML, XHTML)parent
- The element to which the new Summary element should be added as a child
Text newRights()
Text newRights(Element parent)
parent
- The element to which the new Rights element should be added as a child
Text newRights(Text.Type type)
type
- The type of text used in the Rights (plain text, HTML, XHTML)
Text newRights(Text.Type type, Element parent)
type
- The type of text used in the Rights (plain text, HTML, XHTML)parent
- The element to which the new Rights element should be added as a child
Element newName()
Element newName(Element parent)
parent
- The element to which the new Name element should be added as a child
Element newEmail()
Element newEmail(Element parent)
parent
- The element to which the new Email element should be added as a child
<T extends Element> T newElement(QName qname)
<T extends Element> T newElement(QName qname, Base parent)
qname
- The XML QName of the element to createparent
- The element or document to which the new element should be added as a child
<T extends Element> T newExtensionElement(QName qname)
qname
- The XML QName of the element to create
<T extends Element> T newExtensionElement(QName qname, Base parent)
qname
- The XML QName of the element to createparent
- The element or document to which the new element should be added as a child
Control newControl()
Control newControl(Element parent)
parent
- The element to which the new Control element should be added as a child
Div newDiv()
Div newDiv(Base parent)
parent
- The element or document to which the new XHTML div element should be added as a child
Factory registerExtension(ExtensionFactory extensionFactory)
extensionFactory
- An ExtensionFactory instanceCategories newCategories()
Categories newCategories(Base parent)
parent
- The element or document to which the new Categories element should be added as a child
String newUuidUri()
Abdera getAbdera()
<T extends Base> String getMimeType(T base)
String[] listExtensionFactories()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |