org.apache.abdera.ext.opensearch
Class OpenSearchExtensionFactory

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

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


Constructor Summary
OpenSearchExtensionFactory()
           
 
Method Summary
 java.util.List<java.lang.String> getNamespaces()
          Returns the Namespace URIs handled by this Extension Factory.
 boolean handlesNamespace(java.lang.String ns)
          Returns true if this extension factory handles the specified namespace
<T extends Element>
T
newExtensionElement(javax.xml.namespace.QName qname, Base base, 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 base, 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

OpenSearchExtensionFactory

public OpenSearchExtensionFactory()
Method Detail

handlesNamespace

public boolean handlesNamespace(java.lang.String ns)
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 base,
                                                 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
base - 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 base,
                                                 Factory factory,
                                                 org.apache.axiom.om.OMXMLParserWrapper parserWrapper)
Specified by:
newExtensionElement in interface org.apache.abdera.parser.stax.FOMExtensionFactory