org.apache.abdera.ext.thread
Class ThreadExtensionFactory

java.lang.Object
  extended by org.apache.abdera.ext.thread.ThreadExtensionFactory
All Implemented Interfaces:
ExtensionFactory, org.apache.abdera.parser.stax.FOMExtensionFactory

public class ThreadExtensionFactory
extends java.lang.Object
implements ExtensionFactory, org.apache.abdera.parser.stax.FOMExtensionFactory


Constructor Summary
ThreadExtensionFactory()
           
 
Method Summary
 java.util.List<java.lang.String> getNamespaces()
          Returns the Namespace URIs handled by this Extension Factory.
 boolean handlesNamespace(java.lang.String namespace)
          Returns true if this extension factory handles the specified namespace
<T extends Element>
T
newExtensionElement(javax.xml.namespace.QName qname, Base parent, Factory factory)
          Called by the Factory implementaton to create an instance of the extension element.
<T extends Element>
T
newExtensionElement(javax.xml.namespace.QName qname, Base parent, Factory factory, org.apache.axiom.om.OMXMLParserWrapper parserWrapper)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadExtensionFactory

public ThreadExtensionFactory()
Method Detail

handlesNamespace

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

Specified by:
handlesNamespace in interface ExtensionFactory

getNamespaces

public java.util.List<java.lang.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

newExtensionElement

public <T extends Element> T newExtensionElement(javax.xml.namespace.QName qname,
                                                 Base parent,
                                                 Factory factory)
Description copied from interface: ExtensionFactory
Called by the Factory implementaton to create an instance of the extension element. If parent is not null, the new element will be automatically added as a child of the parent.

Specified by:
newExtensionElement in interface ExtensionFactory
Parameters:
qname - the QName of the extension element
parent - the Parent of the extension element
factory - the Factory
Returns:
ExtensionElement The created ExtensionElement

newExtensionElement

public <T extends Element> T newExtensionElement(javax.xml.namespace.QName qname,
                                                 Base parent,
                                                 Factory factory,
                                                 org.apache.axiom.om.OMXMLParserWrapper parserWrapper)
Specified by:
newExtensionElement in interface org.apache.abdera.parser.stax.FOMExtensionFactory