org.apache.abdera.parser.stax
Class FOMFactory

java.lang.Object
  extended by org.apache.axiom.om.impl.llom.factory.OMLinkedListImplFactory
      extended by org.apache.abdera.parser.stax.FOMFactory
All Implemented Interfaces:
ExtensionFactory, Factory, Constants, org.apache.axiom.om.OMFactory

public class FOMFactory
extends org.apache.axiom.om.impl.llom.factory.OMLinkedListImplFactory
implements Factory, Constants, ExtensionFactory


Field Summary
 
Fields inherited from class org.apache.axiom.om.impl.llom.factory.OMLinkedListImplFactory
namespaceTable
 
Fields inherited from interface org.apache.abdera.util.Constants
ACCEPT, AID, ALTERNATE, APP_MEDIA_TYPE, APP_NS, APP_NS_PRE_RFC, APP_PREFIX, ATITLE, ATOM_MEDIA_TYPE, ATOM_NS, AURI, AUTHOR, BASE, CAT_MEDIA_TYPE, CATEGORIES, CATEGORY, CLASS, COLLECTION, CONFIG_FACTORY, CONFIG_PARSER, CONFIG_PARSERFACTORY, CONFIG_STREAMWRITER, CONFIG_WRITER, CONFIG_WRITERFACTORY, CONFIG_XPATH, CONTENT, CONTRIBUTOR, CONTROL, CONTROL_NS, CONTROL_PREFIX, DEFAULT_FACTORY, DEFAULT_PARSER, DEFAULT_PARSERFACTORY, DEFAULT_STREAMWRITER, DEFAULT_WRITER, DEFAULT_WRITERFACTORY, DEFAULT_XPATH, DIV, DRAFT, EDITED, EMAIL, ENTRY, ENTRY_MEDIA_TYPE, FEED, FEED_MEDIA_TYPE, FIXED, GENERATOR, HREF, HREFLANG, HTML, ICON, ID, LABEL, LANG, LENGTH, LINK, LN_ACCEPT, LN_ALTERNATE, LN_ALTERNATE_MULTIPART_RELATED, LN_AUTHOR, LN_BASE, LN_CATEGORIES, LN_CATEGORY, LN_CLASS, LN_COLLECTION, LN_CONTENT, LN_CONTRIBUTOR, LN_CONTROL, LN_DIV, LN_DRAFT, LN_EDITED, LN_EMAIL, LN_ENTRY, LN_FEED, LN_FIXED, LN_GENERATOR, LN_HREF, LN_HREFLANG, LN_ICON, LN_ID, LN_LABEL, LN_LANG, LN_LENGTH, LN_LINK, LN_LOGO, LN_NAME, LN_PUBLISHED, LN_REL, LN_RIGHTS, LN_SCHEME, LN_SERVICE, LN_SOURCE, LN_SPACE, LN_SRC, LN_SUBTITLE, LN_SUMMARY, LN_TERM, LN_TITLE, LN_TYPE, LN_UPDATED, LN_URI, LN_VERSION, LN_WORKSPACE, LOGO, MULTIPART_RELATED_TYPE, NAME, NAMED_PARSER, NAMED_WRITER, NO, PRE_RFC_ACCEPT, PRE_RFC_CATEGORIES, PRE_RFC_COLLECTION, PRE_RFC_CONTROL, PRE_RFC_DRAFT, PRE_RFC_EDITED, PRE_RFC_SERVICE, PRE_RFC_WORKSPACE, PREFIX, PREFIXED_TITLE, PUBLISHED, REL, RIGHTS, SCHEME, SERVICE, SOURCE, SPACE, SRC, STREAM_WRITER, SUBTITLE, SUMMARY, TERM, TEXT, TITLE, TYPE, UPDATED, URI, VERSION, WORKSPACE, XHTML, XHTML_NS, XML, XML_MEDIA_TYPE, XML_NS, YES
 
Constructor Summary
FOMFactory()
           
FOMFactory(Abdera abdera)
           
 
Method Summary
protected  org.apache.axiom.om.OMElement createElement(QName qname, org.apache.axiom.om.OMContainer parent, FOMBuilder builder)
           
protected  org.apache.axiom.om.OMElement createElement(QName qname, org.apache.axiom.om.OMContainer parent, org.apache.axiom.om.OMFactory factory, Object objecttype)
           
 org.apache.axiom.om.OMComment createOMComment(org.apache.axiom.om.OMContainer arg0, String arg1)
           
 org.apache.axiom.om.OMProcessingInstruction createOMProcessingInstruction(org.apache.axiom.om.OMContainer arg0, String arg1, String arg2)
           
 org.apache.axiom.om.OMText createOMText(Object arg0, boolean arg1)
           
 org.apache.axiom.om.OMText createOMText(org.apache.axiom.om.OMContainer arg0, char[] arg1, int arg2)
           
 org.apache.axiom.om.OMText createOMText(org.apache.axiom.om.OMContainer arg0, QName arg1)
           
 org.apache.axiom.om.OMText createOMText(org.apache.axiom.om.OMContainer arg0, QName arg1, int arg2)
           
 org.apache.axiom.om.OMText createOMText(org.apache.axiom.om.OMContainer arg0, String arg1)
           
 org.apache.axiom.om.OMText createOMText(org.apache.axiom.om.OMContainer arg0, String arg1, int arg2)
           
 org.apache.axiom.om.OMText createOMText(org.apache.axiom.om.OMContainer arg0, String arg1, String arg2, boolean arg3)
           
 org.apache.axiom.om.OMText createOMText(String arg0)
           
 org.apache.axiom.om.OMText createOMText(String arg0, int arg1)
           
 org.apache.axiom.om.OMText createOMText(String arg0, org.apache.axiom.om.OMContainer arg1, org.apache.axiom.om.OMXMLParserWrapper arg2)
           
 org.apache.axiom.om.OMText createOMText(String arg0, String arg1, boolean arg2)
           
 Abdera getAbdera()
          Get the Abdera instance for this factory
<T extends Element>
T
getElementWrapper(Element internal)
          Abdera's support for static extensions is based on a simple delegation model.
<T extends Base>
String
getMimeType(T base)
          Get the mime type for the specified extension element / document
 String[] getNamespaces()
          Returns the Namespace URIs handled by this Extension Factory
 boolean handlesNamespace(String namespace)
          Returns true if this extension factory handles the specified namespace
 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.
 Categories newCategories(QName qname, org.apache.axiom.om.OMContainer parent, org.apache.axiom.om.OMXMLParserWrapper parserWrapper)
           
 Category newCategory()
          Create a new Category element.
 Category newCategory(Element parent)
          Create a new Category element as a child of the given Element.
 Category newCategory(QName qname, org.apache.axiom.om.OMContainer parent, org.apache.axiom.om.OMXMLParserWrapper parserWrapper)
           
 Collection newCollection()
          Create a new Collection element.
 Collection newCollection(Element parent)
          Create a new Collection element as a child of the given Element.
 Collection newCollection(QName qname, org.apache.axiom.om.OMContainer parent, org.apache.axiom.om.OMXMLParserWrapper parserWrapper)
           
 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.
 Content newContent(QName qname, Content.Type type, org.apache.axiom.om.OMContainer parent, org.apache.axiom.om.OMXMLParserWrapper parserWrapper)
           
 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.
 Control newControl(QName qname, org.apache.axiom.om.OMContainer parent, org.apache.axiom.om.OMXMLParserWrapper parserWrapper)
           
 DateTime newDateTime(QName qname, Element parent)
          Create a new DateTime element with the given QName as a child of the given Element.
 DateTime newDateTimeElement(QName qname, org.apache.axiom.om.OMContainer parent, org.apache.axiom.om.OMXMLParserWrapper parserWrapper)
           
 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.
 Div newDiv(QName qname, org.apache.axiom.om.OMContainer parent, org.apache.axiom.om.OMXMLParserWrapper parserWrapper)
           
<T extends Element>
Document<T>
newDocument()
          Create a new Document instance with a root Element of type T.
<T extends Element>
Document<T>
newDocument(org.apache.axiom.om.OMXMLParserWrapper parserWrapper)
           
<T extends Element>
Document<T>
newDocument(T root, org.apache.axiom.om.OMXMLParserWrapper parserWrapper)
           
 DateTime newEdited()
          Create a new app:edited element.
 DateTime newEdited(Element parent)
          Create a new app:edited element.
<T extends Element>
T
newElement(QName qname)
          Create a new Element with the given QName.
<T extends Element>
T
newElement(QName qname, Base parent)
          Create a new Element with the given QName as a child of the given Base.
 Element newElement(QName qname, org.apache.axiom.om.OMContainer parent, org.apache.axiom.om.OMXMLParserWrapper parserWrapper)
           
 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.
 Entry newEntry(QName qname, org.apache.axiom.om.OMContainer parent, org.apache.axiom.om.OMXMLParserWrapper parserWrapper)
           
<T extends Element>
T
newExtensionElement(QName qname)
          Create a new extension element with the given QName.
<T extends Element>
T
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.
 Feed newFeed(QName qname, org.apache.axiom.om.OMContainer parent, org.apache.axiom.om.OMXMLParserWrapper parserWrapper)
           
 Generator newGenerator()
          Create a new Generator element.
 Generator newGenerator(Element parent)
          Create a new Generator element as a child of the given Element.
 Generator newGenerator(QName qname, org.apache.axiom.om.OMContainer parent, org.apache.axiom.om.OMXMLParserWrapper parserWrapper)
           
 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 newID(QName qname, org.apache.axiom.om.OMContainer parent, org.apache.axiom.om.OMXMLParserWrapper parserWrapper)
           
 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.
 Link newLink(QName qname, org.apache.axiom.om.OMContainer parent, org.apache.axiom.om.OMXMLParserWrapper parserWrapper)
           
 IRIElement newLogo()
          Create a new logo element.
 IRIElement newLogo(Element parent)
          Create a new logo element as a child of the given Element.
 Collection newMultipartCollection(Element parent)
           
 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.
 Person newPerson(QName qname, org.apache.axiom.om.OMContainer parent, org.apache.axiom.om.OMXMLParserWrapper parserWrapper)
           
 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.
 Service newService(QName qname, org.apache.axiom.om.OMContainer parent, org.apache.axiom.om.OMXMLParserWrapper parserWrapper)
           
 Source newSource()
          Create a new Source element.
 Source newSource(Element parent)
          Create a new Source element as a child of the given Element.
 Source newSource(QName qname, org.apache.axiom.om.OMContainer parent, org.apache.axiom.om.OMXMLParserWrapper parserWrapper)
           
 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 newText(QName qname, Text.Type type, org.apache.axiom.om.OMContainer parent, org.apache.axiom.om.OMXMLParserWrapper parserWrapper)
           
 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.
 IRIElement newURIElement(QName qname, org.apache.axiom.om.OMContainer parent, org.apache.axiom.om.OMXMLParserWrapper parserWrapper)
           
 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.
 Workspace newWorkspace(QName qname, org.apache.axiom.om.OMContainer parent, org.apache.axiom.om.OMXMLParserWrapper parserWrapper)
           
static void registerAsDefault()
           
 Factory registerExtension(ExtensionFactory factory)
          Registers an extension factory for this Factory instance only
 
Methods inherited from class org.apache.axiom.om.impl.llom.factory.OMLinkedListImplFactory
createOMAttribute, createOMDocType, createOMDocument, createOMDocument, createOMElement, createOMElement, createOMElement, createOMElement, createOMElement, createOMElement, createOMElement, createOMNamespace, createOMText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FOMFactory

public FOMFactory()

FOMFactory

public FOMFactory(Abdera abdera)
Method Detail

registerAsDefault

public static void registerAsDefault()

newParser

public Parser newParser()
Description copied from interface: Factory
Create a new Parser instance.

Specified by:
newParser in interface Factory
Returns:
A new instance of the Parser associated with this Factory

newDocument

public <T extends Element> Document<T> newDocument()
Description copied from interface: Factory
Create a new Document instance with a root Element of type T.

Specified by:
newDocument in interface Factory
Returns:
A new instance of a Document

newDocument

public <T extends Element> Document<T> newDocument(org.apache.axiom.om.OMXMLParserWrapper parserWrapper)

newDocument

public <T extends Element> Document<T> newDocument(T root,
                                                   org.apache.axiom.om.OMXMLParserWrapper parserWrapper)

newService

public Service newService(QName qname,
                          org.apache.axiom.om.OMContainer parent,
                          org.apache.axiom.om.OMXMLParserWrapper parserWrapper)

newService

public Service newService(Base parent)
Description copied from interface: Factory
Create a new Service element as a child of the given Base.

Specified by:
newService in interface Factory
Parameters:
parent - The element or document to which the new Service should be added as a child
Returns:
A newly created Service element

newWorkspace

public Workspace newWorkspace(QName qname,
                              org.apache.axiom.om.OMContainer parent,
                              org.apache.axiom.om.OMXMLParserWrapper parserWrapper)

newWorkspace

public Workspace newWorkspace()
Description copied from interface: Factory
Create a new Workspace element.

Specified by:
newWorkspace in interface Factory
Returns:
A newly created Workspace element

newWorkspace

public Workspace newWorkspace(Element parent)
Description copied from interface: Factory
Create a new Workspace element as a child of the given Element.

Specified by:
newWorkspace in interface Factory
Parameters:
parent - The element to which the new Workspace should be added as a child
Returns:
A newly created Workspace element

newCollection

public Collection newCollection(QName qname,
                                org.apache.axiom.om.OMContainer parent,
                                org.apache.axiom.om.OMXMLParserWrapper parserWrapper)

newCollection

public Collection newCollection()
Description copied from interface: Factory
Create a new Collection element.

Specified by:
newCollection in interface Factory
Returns:
A newly created Collection element

newCollection

public Collection newCollection(Element parent)
Description copied from interface: Factory
Create a new Collection element as a child of the given Element.

Specified by:
newCollection in interface Factory
Parameters:
parent - The element to which the new Collection should be added as a child
Returns:
A newly created Collection element

newMultipartCollection

public Collection newMultipartCollection(Element parent)

newFeed

public Feed newFeed()
Description copied from interface: Factory
Create a new Feed element. A new Document containing the Feed will be created automatically

Specified by:
newFeed in interface Factory
Returns:
A newly created Feed element.

newEntry

public Entry newEntry()
Description copied from interface: Factory
Create a new Entry element. A new Document containing the Entry will be created automatically

Specified by:
newEntry in interface Factory
Returns:
A newly created Entry element

newService

public Service newService()
Description copied from interface: Factory
Create a new Service element.

Specified by:
newService in interface Factory
Returns:
A newly created Service element

newFeed

public Feed newFeed(QName qname,
                    org.apache.axiom.om.OMContainer parent,
                    org.apache.axiom.om.OMXMLParserWrapper parserWrapper)

newFeed

public Feed newFeed(Base parent)
Description copied from interface: Factory
Create a new Feed element as a child of the given Base.

Specified by:
newFeed in interface Factory
Parameters:
parent - The element or document to which the new Feed should be added as a child
Returns:
A newly created Feed element

newEntry

public Entry newEntry(QName qname,
                      org.apache.axiom.om.OMContainer parent,
                      org.apache.axiom.om.OMXMLParserWrapper parserWrapper)

newEntry

public Entry newEntry(Base parent)
Description copied from interface: Factory
Create a new Entry element as a child of the given Base.

Specified by:
newEntry in interface Factory
Parameters:
parent - The element or document to which the new Entry should be added as a child
Returns:
A newly created Entry element

newCategory

public Category newCategory(QName qname,
                            org.apache.axiom.om.OMContainer parent,
                            org.apache.axiom.om.OMXMLParserWrapper parserWrapper)

newCategory

public Category newCategory()
Description copied from interface: Factory
Create a new Category element.

Specified by:
newCategory in interface Factory
Returns:
A newly created Category element

newCategory

public Category newCategory(Element parent)
Description copied from interface: Factory
Create a new Category element as a child of the given Element.

Specified by:
newCategory in interface Factory
Parameters:
parent - The element to which the new Category should be added as a child
Returns:
A newly created Category element

newContent

public Content newContent(QName qname,
                          Content.Type type,
                          org.apache.axiom.om.OMContainer parent,
                          org.apache.axiom.om.OMXMLParserWrapper parserWrapper)

newContent

public Content newContent()
Description copied from interface: Factory
Create a new Content element.

Specified by:
newContent in interface Factory
Returns:
A newly created Content element with type="text"

newContent

public Content newContent(Content.Type type)
Description copied from interface: Factory
Create a new Content element of the given Content.Type.

Specified by:
newContent in interface Factory
Parameters:
type - The Content.Type for the newly created Content element.
Returns:
A newly created Content element using the specified type

newContent

public Content newContent(Content.Type type,
                          Element parent)
Description copied from interface: Factory
Create a new Content element of the given Content.Type as a child of the given Element.

Specified by:
newContent in interface Factory
Parameters:
type - The Content.Type for the newly created Content element.
parent - The element to which the new Content should be added as a child
Returns:
A newly created Content element using the specified type

newContent

public Content newContent(javax.activation.MimeType mediaType)
Description copied from interface: Factory
Create a new Content element of the given MediaType.

Specified by:
newContent in interface Factory
Parameters:
mediaType - The MIME media type to be specified by the type attribute
Returns:
A newly created Content element using the specified MIME type

newContent

public Content newContent(javax.activation.MimeType mediaType,
                          Element parent)
Description copied from interface: Factory
Create a new Content element of the given MediaType as a child of the given Element.

Specified by:
newContent in interface Factory
Parameters:
mediaType - The MIME media type to be specified by the type attribute
parent - The element to which the new Content should be added as a child
Returns:
A newly created Content element using the specified mediatype.

newDateTimeElement

public DateTime newDateTimeElement(QName qname,
                                   org.apache.axiom.om.OMContainer parent,
                                   org.apache.axiom.om.OMXMLParserWrapper parserWrapper)

newDateTime

public DateTime newDateTime(QName qname,
                            Element parent)
Description copied from interface: Factory
Create a new DateTime element with the given QName as a child of the given Element. RFC4287 provides the abstract Atom Date Construct as a reusable component. Any extension element whose value is a Date/Time SHOULD reuse this construct to maintain consistency with the base specification.

Specified by:
newDateTime in interface Factory
Parameters:
qname - The XML QName of the Atom Date element to create
parent - The element to which the new Atom Date element should be added as a child
Returns:
The newly created Atom Date Construct element

newGenerator

public Generator newGenerator(QName qname,
                              org.apache.axiom.om.OMContainer parent,
                              org.apache.axiom.om.OMXMLParserWrapper parserWrapper)

newDefaultGenerator

public Generator newDefaultGenerator()
Description copied from interface: Factory
Create a new Generator with Abdera's default name and version.

Specified by:
newDefaultGenerator in interface Factory
Returns:
A newly created and pre-populated atom:generator element

newDefaultGenerator

public Generator newDefaultGenerator(Element parent)
Description copied from interface: Factory
Create a new Generator using Abdera's default name and version as a child of the given Element.

Specified by:
newDefaultGenerator in interface Factory
Parameters:
parent - The element to which the new Generator element should be added as a child
Returns:
A newly created and pre-populated atom:generator element

newGenerator

public Generator newGenerator()
Description copied from interface: Factory
Create a new Generator element.

Specified by:
newGenerator in interface Factory
Returns:
A newly created atom:generator element

newGenerator

public Generator newGenerator(Element parent)
Description copied from interface: Factory
Create a new Generator element as a child of the given Element.

Specified by:
newGenerator in interface Factory
Parameters:
parent - The element to which the new Generator element should be added as a child
Returns:
A newly creatd atom:generator element

newID

public IRIElement newID(QName qname,
                        org.apache.axiom.om.OMContainer parent,
                        org.apache.axiom.om.OMXMLParserWrapper parserWrapper)

newID

public IRIElement newID()
Description copied from interface: Factory
Create a new id element.

Specified by:
newID in interface Factory
Returns:
A newly created atom:id element

newID

public IRIElement newID(Element parent)
Description copied from interface: Factory
Create a new id element as a child of the given Element.

Specified by:
newID in interface Factory
Parameters:
parent - The element to which the new ID element should be added as a child
Returns:
A newly created atom:id element

newURIElement

public IRIElement newURIElement(QName qname,
                                org.apache.axiom.om.OMContainer parent,
                                org.apache.axiom.om.OMXMLParserWrapper parserWrapper)

newIRIElement

public IRIElement newIRIElement(QName qname,
                                Element parent)
Description copied from interface: Factory
Create a new IRI element with the given QName as a child of the given Element.

Specified by:
newIRIElement in interface Factory
Parameters:
qname - The XML QName of the new IRI element
parent - The element to which the new generic IRI element should be added as a child
Returns:
A newly created element whose text value can be an IRI

newLink

public Link newLink(QName qname,
                    org.apache.axiom.om.OMContainer parent,
                    org.apache.axiom.om.OMXMLParserWrapper parserWrapper)

newLink

public Link newLink()
Description copied from interface: Factory
Create a new Link element.

Specified by:
newLink in interface Factory
Returns:
A newly created atom:link element

newLink

public Link newLink(Element parent)
Description copied from interface: Factory
Create a new Link element as a child of the given Element.

Specified by:
newLink in interface Factory
Parameters:
parent - The element to which the new Link element should be added as a child
Returns:
A newly created atom:uri element

newPerson

public Person newPerson(QName qname,
                        org.apache.axiom.om.OMContainer parent,
                        org.apache.axiom.om.OMXMLParserWrapper parserWrapper)

newPerson

public Person newPerson(QName qname,
                        Element parent)
Description copied from interface: Factory
Create a new Person element with the given QName as a child of the given Element. RFC4287 provides the abstract Atom Person Construct to represent people and other entities within an Atom Document. Extensions that wish to represent people SHOULD reuse this construct.

Specified by:
newPerson in interface Factory
Parameters:
qname - The XML QName of the newly created Person element
parent - The element to which the new Person element should be added as a child
Returns:
A newly created Atom Person Construct element

newSource

public Source newSource(QName qname,
                        org.apache.axiom.om.OMContainer parent,
                        org.apache.axiom.om.OMXMLParserWrapper parserWrapper)

newSource

public Source newSource()
Description copied from interface: Factory
Create a new Source element.

Specified by:
newSource in interface Factory
Returns:
A newly created atom:source element

newSource

public Source newSource(Element parent)
Description copied from interface: Factory
Create a new Source element as a child of the given Element.

Specified by:
newSource in interface Factory
Parameters:
parent - The element to which the new Source element should be added as a child
Returns:
A newly created atom:source element

newText

public Text newText(QName qname,
                    Text.Type type,
                    org.apache.axiom.om.OMContainer parent,
                    org.apache.axiom.om.OMXMLParserWrapper parserWrapper)

newText

public Text newText(QName qname,
                    Text.Type type)
Description copied from interface: Factory
Create a new Text element with the given QName and Text.Type. RFC4287 provides the abstract Text Construct to represent simple Text, HTML or XHTML within a document. This construct is used by Atom core elements like atom:title, atom:summary, atom:rights, atom:subtitle, etc and SHOULD be reused by extensions that need a way of embedding text in a document.

Specified by:
newText in interface Factory
Parameters:
qname - The XML QName of the Text element to create
type - The type of text (plain text, HTML or XHTML)
Returns:
A newly created Atom Text Construct element

newText

public Text newText(QName qname,
                    Text.Type type,
                    Element parent)
Description copied from interface: Factory
Create a new Text element with the given QName and Text.Type as a child of the given Element.

Specified by:
newText in interface Factory
Parameters:
qname - The XML QName of the Text element to create
type - The type of text (plain text, HTML or XHTML)
parent - The element to which the new Updated element should be added as a child
Returns:
A newly created Atom Text Construct element

newElement

public <T extends Element> T newElement(QName qname)
Description copied from interface: Factory
Create a new Element with the given QName.

Specified by:
newElement in interface Factory
Returns:
A newly created element

newElement

public <T extends Element> T newElement(QName qname,
                                        Base parent)
Description copied from interface: Factory
Create a new Element with the given QName as a child of the given Base.

Specified by:
newElement in interface Factory
Parameters:
qname - The XML QName of the element to create
parent - The element or document to which the new element should be added as a child
Returns:
A newly created element

newExtensionElement

public <T extends Element> T newExtensionElement(QName qname)
Description copied from interface: Factory
Create a new extension element with the given QName.

Specified by:
newExtensionElement in interface Factory
Parameters:
qname - The XML QName of the element to create
Returns:
A newly created element

newExtensionElement

public <T extends Element> T newExtensionElement(QName qname,
                                                 Base parent)
Description copied from interface: Factory
Create a new extension element with the given QName as a child of the given Base.

Specified by:
newExtensionElement in interface Factory
Parameters:
qname - The XML QName of the element to create
parent - The element or document to which the new element should be added as a child
Returns:
A newly created element

newControl

public Control newControl()
Description copied from interface: Factory
Create a new Control element. The app:control element is introduced by the Atom Publishing Protocol as a means of allowing publishing clients to provide metadata to a server affecting the way an entry is published. The control element SHOULD only ever appear as a child of the atom:entry and MUST only ever appear once.

Specified by:
newControl in interface Factory
Returns:
A newly app:control element

newControl

public Control newControl(Element parent)
Description copied from interface: Factory
Create a new Control element as a child of the given Element.

Specified by:
newControl in interface Factory
Parameters:
parent - The element to which the new Control element should be added as a child
Returns:
A newly app:control element

newControl

public Control newControl(QName qname,
                          org.apache.axiom.om.OMContainer parent,
                          org.apache.axiom.om.OMXMLParserWrapper parserWrapper)

newPublished

public DateTime newPublished()
Description copied from interface: Factory
Create a new published element.

Specified by:
newPublished in interface Factory
Returns:
A newly created atom:published element

newPublished

public DateTime newPublished(Element parent)
Description copied from interface: Factory
Create a new published element as a child of the given Element.

Specified by:
newPublished in interface Factory
Parameters:
parent - The element to which the new Published element should be added as a child
Returns:
A newly created atom:published element

newUpdated

public DateTime newUpdated()
Description copied from interface: Factory
Create a new updated element.

Specified by:
newUpdated in interface Factory
Returns:
A newly created atom:updated element

newUpdated

public DateTime newUpdated(Element parent)
Description copied from interface: Factory
create a new updated element as a child of the given Element.

Specified by:
newUpdated in interface Factory
Parameters:
parent - The element to which the new Updated element should be added as a child
Returns:
A newly created atom:updated element

newEdited

public DateTime newEdited()
Description copied from interface: Factory
Create a new app:edited element. The app:edited element is defined by the Atom Publishing Protocol specification for use in atom:entry elements created and edited using that protocol. The element should only ever appear as a child of atom:entry.

Specified by:
newEdited in interface Factory
Returns:
A newly created app:edited element

newEdited

public DateTime newEdited(Element parent)
Description copied from interface: Factory
Create a new app:edited element. The app:edited element is defined by the Atom Publishing Protocol specification for use in atom:entry elements created and edited using that protocol. The element should only ever appear as a child of atom:entry.

Specified by:
newEdited in interface Factory
Parameters:
parent - The element to which the new Edited element should be added as a child
Returns:
A newly created app:edited element

newIcon

public IRIElement newIcon()
Description copied from interface: Factory
Create a new icon element.

Specified by:
newIcon in interface Factory
Returns:
A newly created atom:icon element

newIcon

public IRIElement newIcon(Element parent)
Description copied from interface: Factory
Create a new icon element as a child of the given Element.

Specified by:
newIcon in interface Factory
Parameters:
parent - The element to which the new Icon element should be added as a child
Returns:
A newly created atom:icon element

newLogo

public IRIElement newLogo()
Description copied from interface: Factory
Create a new logo element.

Specified by:
newLogo in interface Factory
Returns:
A newly created atom:logo element

newLogo

public IRIElement newLogo(Element parent)
Description copied from interface: Factory
Create a new logo element as a child of the given Element.

Specified by:
newLogo in interface Factory
Parameters:
parent - The element to which the new Logo element should be added as a child
Returns:
A newly created atom:logo element

newUri

public IRIElement newUri()
Description copied from interface: Factory
Create a new uri element.

Specified by:
newUri in interface Factory
Returns:
A newly created atom:uri element

newUri

public IRIElement newUri(Element parent)
Description copied from interface: Factory
Create a new uri element as a child of the given Element.

Specified by:
newUri in interface Factory
Parameters:
parent - The element to which the new URI element should be added as a child
Returns:
A newly created atom:uri element

newAuthor

public Person newAuthor()
Description copied from interface: Factory
Create a new author element.

Specified by:
newAuthor in interface Factory
Returns:
A newly created atom:author element

newAuthor

public Person newAuthor(Element parent)
Description copied from interface: Factory
Create a new author element as a child of the given Element.

Specified by:
newAuthor in interface Factory
Parameters:
parent - The element to which the new Author element should be added as a child
Returns:
A newly created atom:author element

newContributor

public Person newContributor()
Description copied from interface: Factory
Create a new contributor element.

Specified by:
newContributor in interface Factory
Returns:
A newly created atom:contributor element

newContributor

public Person newContributor(Element parent)
Description copied from interface: Factory
Create a new contributor element as a child of the given Element.

Specified by:
newContributor in interface Factory
Parameters:
parent - The element to which the new Contributor element should be added as a child
Returns:
A newly created atom:contributor element

newTitle

public Text newTitle()
Description copied from interface: Factory
Create a new title element.

Specified by:
newTitle in interface Factory
Returns:
A newly created atom:title element

newTitle

public Text newTitle(Element parent)
Description copied from interface: Factory
Create a new title element as a child of the given Element.

Specified by:
newTitle in interface Factory
Parameters:
parent - The element to which the new Title element should be added as a child
Returns:
A newly created atom:title element

newTitle

public Text newTitle(Text.Type type)
Description copied from interface: Factory
Create a new title element with the given Text.Type.

Specified by:
newTitle in interface Factory
Parameters:
type - The type of text used in the title (plain text, HTML, XHTML)
Returns:
A newly created atom:title element

newTitle

public Text newTitle(Text.Type type,
                     Element parent)
Description copied from interface: Factory
Create a new title element with the given Text.Type as a child of the given Element.

Specified by:
newTitle in interface Factory
Parameters:
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
Returns:
A newly created atom:title element

newSubtitle

public Text newSubtitle()
Description copied from interface: Factory
Create a new subtitle element.

Specified by:
newSubtitle in interface Factory
Returns:
A newly created atom:subtitle element

newSubtitle

public Text newSubtitle(Element parent)
Description copied from interface: Factory
Create a new subtitle element as a child of the given Element.

Specified by:
newSubtitle in interface Factory
Parameters:
parent - The element to which the new Subtitle element should be added as a child
Returns:
A newly created atom:subtitle element

newSubtitle

public Text newSubtitle(Text.Type type)
Description copied from interface: Factory
Create a new subtitle element with the given Text.Type.

Specified by:
newSubtitle in interface Factory
Parameters:
type - The type of text used in the subtitle (plain text, HTML, XHTML)
Returns:
A newly created atom:subtitle element

newSubtitle

public Text newSubtitle(Text.Type type,
                        Element parent)
Description copied from interface: Factory
Create a new subtitle element with the given Text.Type as a child of the given Element.

Specified by:
newSubtitle in interface Factory
Parameters:
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
Returns:
A newly created atom:subtitle element

newSummary

public Text newSummary()
Description copied from interface: Factory
Create a new summary element.

Specified by:
newSummary in interface Factory
Returns:
A newly created atom:summary element

newSummary

public Text newSummary(Element parent)
Description copied from interface: Factory
Create a new summary element as a child of the given Element.

Specified by:
newSummary in interface Factory
Parameters:
parent - The element to which the new Summary element should be added as a child
Returns:
A newly created atom:summary element

newSummary

public Text newSummary(Text.Type type)
Description copied from interface: Factory
Create a new summary element with the given Text.Type.

Specified by:
newSummary in interface Factory
Parameters:
type - The type of text used in the summary (plain text, HTML, XHTML)
Returns:
A newly created atom:summary element

newSummary

public Text newSummary(Text.Type type,
                       Element parent)
Description copied from interface: Factory
Create a new summary element with the given Text.Type as a child of the given Element.

Specified by:
newSummary in interface Factory
Parameters:
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
Returns:
A newly created atom:summary element

newRights

public Text newRights()
Description copied from interface: Factory
Create a new rights element.

Specified by:
newRights in interface Factory
Returns:
A newly created atom:rights element

newRights

public Text newRights(Element parent)
Description copied from interface: Factory
Create a new rights element as a child of the given Element.

Specified by:
newRights in interface Factory
Parameters:
parent - The element to which the new Rights element should be added as a child
Returns:
A newly created atom:rights element

newRights

public Text newRights(Text.Type type)
Description copied from interface: Factory
Create a new rights element with the given Text.Type.

Specified by:
newRights in interface Factory
Parameters:
type - The type of text used in the Rights (plain text, HTML, XHTML)
Returns:
A newly created atom:rights element

newRights

public Text newRights(Text.Type type,
                      Element parent)
Description copied from interface: Factory
Create a new rights element with the given Text.Type as a child of the given Element.

Specified by:
newRights in interface Factory
Parameters:
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
Returns:
A newly created atom:rights element

newName

public Element newName()
Description copied from interface: Factory
Create a new name element.

Specified by:
newName in interface Factory
Returns:
A newly created atom:name element

newName

public Element newName(Element parent)
Description copied from interface: Factory
Create a new name element as a child of the given Element.

Specified by:
newName in interface Factory
Parameters:
parent - The element to which the new Name element should be added as a child
Returns:
A newly created atom:summary element

newEmail

public Element newEmail()
Description copied from interface: Factory
Create a new email element.

Specified by:
newEmail in interface Factory
Returns:
A newly created atom:email element

newEmail

public Element newEmail(Element parent)
Description copied from interface: Factory
Create a new email element as a child of the given Element.

Specified by:
newEmail in interface Factory
Parameters:
parent - The element to which the new Email element should be added as a child
Returns:
A newly created atom:email element

newDiv

public Div newDiv()
Description copied from interface: Factory
Create a new Div element.

Specified by:
newDiv in interface Factory
Returns:
A newly xhtml:div element

newDiv

public Div newDiv(Base parent)
Description copied from interface: Factory
Create a new Div element as a child of the given Base.

Specified by:
newDiv in interface Factory
Parameters:
parent - The element or document to which the new XHTML div element should be added as a child
Returns:
A newly xhtml:div element

newDiv

public Div newDiv(QName qname,
                  org.apache.axiom.om.OMContainer parent,
                  org.apache.axiom.om.OMXMLParserWrapper parserWrapper)

newElement

public Element newElement(QName qname,
                          org.apache.axiom.om.OMContainer parent,
                          org.apache.axiom.om.OMXMLParserWrapper parserWrapper)

createElement

protected org.apache.axiom.om.OMElement createElement(QName qname,
                                                      org.apache.axiom.om.OMContainer parent,
                                                      org.apache.axiom.om.OMFactory factory,
                                                      Object objecttype)

createElement

protected org.apache.axiom.om.OMElement createElement(QName qname,
                                                      org.apache.axiom.om.OMContainer parent,
                                                      FOMBuilder builder)

registerExtension

public Factory registerExtension(ExtensionFactory factory)
Description copied from interface: Factory
Registers an extension factory for this Factory instance only

Specified by:
registerExtension in interface Factory
Parameters:
factory - An ExtensionFactory instance

newCategories

public Categories newCategories()
Description copied from interface: Factory
Create a new Categories element. The app:categories element is introduced by the Atom Publishing Protocol as a means of providing a listing of atom:category's that can be used by entries in a collection.

Specified by:
newCategories in interface Factory
Returns:
A newly app:categories element

newCategories

public Categories newCategories(Base parent)
Description copied from interface: Factory
Create a new Categories element. The app:categories element is introduced by the Atom Publishing Protocol as a means of providing a listing of atom:category's that can be used by entries in a collection.

Specified by:
newCategories in interface Factory
Parameters:
parent - The element or document to which the new Categories element should be added as a child
Returns:
A newly app:categories element

newCategories

public Categories newCategories(QName qname,
                                org.apache.axiom.om.OMContainer parent,
                                org.apache.axiom.om.OMXMLParserWrapper parserWrapper)

newUuidUri

public String newUuidUri()
Description copied from interface: Factory
Generate a new random UUID URI

Specified by:
newUuidUri in interface Factory

getElementWrapper

public <T extends Element> T getElementWrapper(Element internal)
Description copied from interface: ExtensionFactory
Abdera's support for static extensions is based on a simple delegation model. Static extension interfaces wrap the dynamic extension API. ExtensionFactory's are handed the internal dynamic element instance and are expected to hand back an object wrapper.

Specified by:
getElementWrapper in interface ExtensionFactory
Parameters:
internal - The Abdera element that needs to be wrapped
Returns:
The wrapper element

getNamespaces

public String[] getNamespaces()
Description copied from interface: ExtensionFactory
Returns the Namespace URIs handled by this Extension Factory

Specified by:
getNamespaces in interface ExtensionFactory
Returns:
A List of Namespace URIs Supported by this Extension

handlesNamespace

public boolean handlesNamespace(String namespace)
Description copied from interface: ExtensionFactory
Returns true if this extension factory handles the specified namespace

Specified by:
handlesNamespace in interface ExtensionFactory
Parameters:
namespace - The XML namespace of the extension
Returns:
True if the namespace is supported by the ExtensionFactory

getAbdera

public Abdera getAbdera()
Description copied from interface: Factory
Get the Abdera instance for this factory

Specified by:
getAbdera in interface Factory

getMimeType

public <T extends Base> String getMimeType(T base)
Description copied from interface: Factory
Get the mime type for the specified extension element / document

Specified by:
getMimeType in interface ExtensionFactory
Specified by:
getMimeType in interface Factory
Parameters:
base - An Abdera object
Returns:
A MIME media type for the object

listExtensionFactories

public String[] listExtensionFactories()
Description copied from interface: Factory
Returns a listing of extension factories registered

Specified by:
listExtensionFactories in interface Factory

createOMText

public org.apache.axiom.om.OMText createOMText(Object arg0,
                                               boolean arg1)
Specified by:
createOMText in interface org.apache.axiom.om.OMFactory
Overrides:
createOMText in class org.apache.axiom.om.impl.llom.factory.OMLinkedListImplFactory

createOMText

public org.apache.axiom.om.OMText createOMText(org.apache.axiom.om.OMContainer arg0,
                                               char[] arg1,
                                               int arg2)
Specified by:
createOMText in interface org.apache.axiom.om.OMFactory
Overrides:
createOMText in class org.apache.axiom.om.impl.llom.factory.OMLinkedListImplFactory

createOMText

public org.apache.axiom.om.OMText createOMText(org.apache.axiom.om.OMContainer arg0,
                                               QName arg1,
                                               int arg2)
Specified by:
createOMText in interface org.apache.axiom.om.OMFactory
Overrides:
createOMText in class org.apache.axiom.om.impl.llom.factory.OMLinkedListImplFactory

createOMText

public org.apache.axiom.om.OMText createOMText(org.apache.axiom.om.OMContainer arg0,
                                               QName arg1)
Specified by:
createOMText in interface org.apache.axiom.om.OMFactory
Overrides:
createOMText in class org.apache.axiom.om.impl.llom.factory.OMLinkedListImplFactory

createOMText

public org.apache.axiom.om.OMText createOMText(org.apache.axiom.om.OMContainer arg0,
                                               String arg1,
                                               int arg2)
Specified by:
createOMText in interface org.apache.axiom.om.OMFactory
Overrides:
createOMText in class org.apache.axiom.om.impl.llom.factory.OMLinkedListImplFactory

createOMText

public org.apache.axiom.om.OMText createOMText(org.apache.axiom.om.OMContainer arg0,
                                               String arg1,
                                               String arg2,
                                               boolean arg3)
Specified by:
createOMText in interface org.apache.axiom.om.OMFactory
Overrides:
createOMText in class org.apache.axiom.om.impl.llom.factory.OMLinkedListImplFactory

createOMText

public org.apache.axiom.om.OMText createOMText(org.apache.axiom.om.OMContainer arg0,
                                               String arg1)
Specified by:
createOMText in interface org.apache.axiom.om.OMFactory
Overrides:
createOMText in class org.apache.axiom.om.impl.llom.factory.OMLinkedListImplFactory

createOMText

public org.apache.axiom.om.OMText createOMText(String arg0,
                                               int arg1)
Specified by:
createOMText in interface org.apache.axiom.om.OMFactory
Overrides:
createOMText in class org.apache.axiom.om.impl.llom.factory.OMLinkedListImplFactory

createOMText

public org.apache.axiom.om.OMText createOMText(String arg0,
                                               org.apache.axiom.om.OMContainer arg1,
                                               org.apache.axiom.om.OMXMLParserWrapper arg2)
Specified by:
createOMText in interface org.apache.axiom.om.OMFactory
Overrides:
createOMText in class org.apache.axiom.om.impl.llom.factory.OMLinkedListImplFactory

createOMText

public org.apache.axiom.om.OMText createOMText(String arg0,
                                               String arg1,
                                               boolean arg2)
Specified by:
createOMText in interface org.apache.axiom.om.OMFactory
Overrides:
createOMText in class org.apache.axiom.om.impl.llom.factory.OMLinkedListImplFactory

createOMText

public org.apache.axiom.om.OMText createOMText(String arg0)
Specified by:
createOMText in interface org.apache.axiom.om.OMFactory
Overrides:
createOMText in class org.apache.axiom.om.impl.llom.factory.OMLinkedListImplFactory

createOMComment

public org.apache.axiom.om.OMComment createOMComment(org.apache.axiom.om.OMContainer arg0,
                                                     String arg1)
Specified by:
createOMComment in interface org.apache.axiom.om.OMFactory
Overrides:
createOMComment in class org.apache.axiom.om.impl.llom.factory.OMLinkedListImplFactory

createOMProcessingInstruction

public org.apache.axiom.om.OMProcessingInstruction createOMProcessingInstruction(org.apache.axiom.om.OMContainer arg0,
                                                                                 String arg1,
                                                                                 String arg2)
Specified by:
createOMProcessingInstruction in interface org.apache.axiom.om.OMFactory
Overrides:
createOMProcessingInstruction in class org.apache.axiom.om.impl.llom.factory.OMLinkedListImplFactory


Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.