public interface Factory
Modifier and Type | Method and Description |
---|---|
Abdera |
getAbdera()
Get the Abdera instance for this factory
|
<T extends Base> |
getMimeType(T base)
Get the mime type for the specified extension element / document
|
java.lang.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(javax.xml.namespace.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.
|
<T extends Element> |
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.
|
<T extends Element> |
newElement(javax.xml.namespace.QName qname)
Create a new Element with the given QName.
|
<T extends Element> |
newElement(javax.xml.namespace.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.
|
<T extends Element> |
newExtensionElement(javax.xml.namespace.QName qname)
Create a new extension element with the given QName.
|
<T extends Element> |
newExtensionElement(javax.xml.namespace.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(javax.xml.namespace.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.
|
org.apache.abdera.parser.Parser |
newParser()
Create a new Parser instance.
|
Person |
newPerson(javax.xml.namespace.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(javax.xml.namespace.QName qname,
Text.Type type)
Create a new Text element with the given QName and Text.Type.
|
Text |
newText(javax.xml.namespace.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.
|
java.lang.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
|
org.apache.abdera.parser.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 childWorkspace newWorkspace()
Workspace newWorkspace(Element parent)
parent
- The element to which the new Workspace should be added as a childCollection newCollection()
Collection newCollection(Element parent)
parent
- The element to which the new Collection should be added as a childFeed newFeed()
Feed newFeed(Base parent)
parent
- The element or document to which the new Feed should be added as a childEntry newEntry()
Entry newEntry(Base parent)
parent
- The element or document to which the new Entry should be added as a childCategory newCategory()
Category newCategory(Element parent)
parent
- The element to which the new Category should be added as a childContent 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 childContent newContent(javax.activation.MimeType mediaType)
mediaType
- The MIME media type to be specified by the type attributeContent 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 childDateTime newPublished()
DateTime newPublished(Element parent)
parent
- The element to which the new Published element should be added as a childDateTime newUpdated()
DateTime newUpdated(Element parent)
parent
- The element to which the new Updated element should be added as a childDateTime newEdited()
DateTime newEdited(Element parent)
parent
- The element to which the new Edited element should be added as a childDateTime newDateTime(javax.xml.namespace.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 childGenerator newDefaultGenerator()
Generator newDefaultGenerator(Element parent)
parent
- The element to which the new Generator element should be added as a childGenerator newGenerator()
Generator newGenerator(Element parent)
parent
- The element to which the new Generator element should be added as a childIRIElement newID()
IRIElement newID(Element parent)
parent
- The element to which the new ID element should be added as a childIRIElement newIcon()
IRIElement newIcon(Element parent)
parent
- The element to which the new Icon element should be added as a childIRIElement newLogo()
IRIElement newLogo(Element parent)
parent
- The element to which the new Logo element should be added as a childIRIElement newUri()
IRIElement newUri(Element parent)
parent
- The element to which the new URI element should be added as a childIRIElement newIRIElement(javax.xml.namespace.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 childLink newLink()
Link newLink(Element parent)
parent
- The element to which the new Link element should be added as a childPerson newAuthor()
Person newAuthor(Element parent)
parent
- The element to which the new Author element should be added as a childPerson newContributor()
Person newContributor(Element parent)
parent
- The element to which the new Contributor element should be added as a childPerson newPerson(javax.xml.namespace.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 childSource newSource()
Source newSource(Element parent)
parent
- The element to which the new Source element should be added as a childText newText(javax.xml.namespace.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(javax.xml.namespace.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 childText newTitle()
Text newTitle(Element parent)
parent
- The element to which the new Title element should be added as a childText 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 childText newSubtitle()
Text newSubtitle(Element parent)
parent
- The element to which the new Subtitle element should be added as a childText 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 childText newSummary()
Text newSummary(Element parent)
parent
- The element to which the new Summary element should be added as a childText 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 childText newRights()
Text newRights(Element parent)
parent
- The element to which the new Rights element should be added as a childText 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 childElement newName()
Element newName(Element parent)
parent
- The element to which the new Name element should be added as a childElement 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(javax.xml.namespace.QName qname)
<T extends Element> T newElement(javax.xml.namespace.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(javax.xml.namespace.QName qname)
qname
- The XML QName of the element to create<T extends Element> T newExtensionElement(javax.xml.namespace.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 childControl newControl()
Control newControl(Element parent)
parent
- The element to which the new Control element should be added as a childDiv newDiv()
Div newDiv(Base parent)
parent
- The element or document to which the new XHTML div element should be added as a childFactory 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 childjava.lang.String newUuidUri()
Abdera getAbdera()
<T extends Base> java.lang.String getMimeType(T base)
java.lang.String[] listExtensionFactories()
Copyright © 2010 - 2020 Adobe. All Rights Reserved