org.apache.axis2.om.impl.dom.factory
Class OMDOMFactory

java.lang.Object
  extended byorg.apache.axis2.om.impl.dom.factory.OMDOMFactory
All Implemented Interfaces:
org.apache.ws.commons.om.OMFactory
Direct Known Subclasses:
DOMSOAPFactory

public class OMDOMFactory
extends Object
implements org.apache.ws.commons.om.OMFactory


Field Summary
protected  DocumentImpl document
           
 
Constructor Summary
OMDOMFactory()
           
OMDOMFactory(DocumentImpl doc)
           
 
Method Summary
 org.apache.ws.commons.om.OMAttribute createOMAttribute(String localName, org.apache.ws.commons.om.OMNamespace ns, String value)
           
 org.apache.ws.commons.om.OMComment createOMComment(org.apache.ws.commons.om.OMContainer parent, String content)
           
 org.apache.ws.commons.om.OMDocType createOMDocType(org.apache.ws.commons.om.OMContainer parent, String content)
           
 org.apache.ws.commons.om.OMDocument createOMDocument()
           
 org.apache.ws.commons.om.OMDocument createOMDocument(org.apache.ws.commons.om.OMXMLParserWrapper builder)
           
 org.apache.ws.commons.om.OMElement createOMElement(QName qname, org.apache.ws.commons.om.OMContainer parent)
          Creates a new OMDOM Element node and adds it to the given parent.
 org.apache.ws.commons.om.OMElement createOMElement(String localName, org.apache.ws.commons.om.OMNamespace ns)
           
 org.apache.ws.commons.om.OMElement createOMElement(String localName, org.apache.ws.commons.om.OMNamespace ns, org.apache.ws.commons.om.OMContainer parent)
           
 org.apache.ws.commons.om.OMElement createOMElement(String localName, org.apache.ws.commons.om.OMNamespace ns, org.apache.ws.commons.om.OMContainer parent, org.apache.ws.commons.om.OMXMLParserWrapper builder)
          Creates an OMElement with the builder.
 org.apache.ws.commons.om.OMElement createOMElement(String localName, String namespaceURI, String namespacePrefix)
          Creates an OMElement.
 org.apache.ws.commons.om.OMNamespace createOMNamespace(String uri, String prefix)
          Creates a new OMNamespace.
 org.apache.ws.commons.om.OMProcessingInstruction createOMProcessingInstruction(org.apache.ws.commons.om.OMContainer parent, String piTarget, String piData)
           
 org.apache.ws.commons.om.OMText createText(Object dataHandler, boolean optimize)
          Creates a new OMDOM Text node with the given datahandler and the given MTOM optimization configuration and returns it.
 org.apache.ws.commons.om.OMText createText(org.apache.ws.commons.om.OMElement parent, String text)
          Creates a new OMDOM Text node with the given value and appends it to the given parent element.
 org.apache.ws.commons.om.OMText createText(org.apache.ws.commons.om.OMElement parent, String text, int type)
           
 org.apache.ws.commons.om.OMText createText(org.apache.ws.commons.om.OMElement parent, String s, String mimeType, boolean optimize)
          Creates an OMDOM Text node, adds it to the give parent element and returns it.
 org.apache.ws.commons.om.OMText createText(String s)
          Creates a OMDOM Text node carrying the given value.
 org.apache.ws.commons.om.OMText createText(String text, int type)
          Creates a Character node of the given type.
 org.apache.ws.commons.om.OMText createText(String contentID, org.apache.ws.commons.om.OMElement parent, org.apache.ws.commons.om.OMXMLParserWrapper builder)
           
 org.apache.ws.commons.om.OMText createText(String text, String mimeType, boolean optimize)
          Creates a new OMDOM Text node with the value of the given text value along with the MTOM optimization parameters and returns it.
 DocumentImpl getDocument()
           
 void setDocument(DocumentImpl document)
          Configure this factory to use the given document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

document

protected DocumentImpl document
Constructor Detail

OMDOMFactory

public OMDOMFactory()

OMDOMFactory

public OMDOMFactory(DocumentImpl doc)
Method Detail

createOMDocument

public org.apache.ws.commons.om.OMDocument createOMDocument()
Specified by:
createOMDocument in interface org.apache.ws.commons.om.OMFactory

setDocument

public void setDocument(DocumentImpl document)
Configure this factory to use the given document. Use with care.

Parameters:
document -

createOMElement

public org.apache.ws.commons.om.OMElement createOMElement(String localName,
                                                          org.apache.ws.commons.om.OMNamespace ns)
Specified by:
createOMElement in interface org.apache.ws.commons.om.OMFactory

createOMElement

public org.apache.ws.commons.om.OMElement createOMElement(String localName,
                                                          org.apache.ws.commons.om.OMNamespace ns,
                                                          org.apache.ws.commons.om.OMContainer parent)
                                                   throws OMDOMException
Specified by:
createOMElement in interface org.apache.ws.commons.om.OMFactory
Throws:
OMDOMException

createOMElement

public org.apache.ws.commons.om.OMElement createOMElement(String localName,
                                                          org.apache.ws.commons.om.OMNamespace ns,
                                                          org.apache.ws.commons.om.OMContainer parent,
                                                          org.apache.ws.commons.om.OMXMLParserWrapper builder)
Creates an OMElement with the builder.

Specified by:
createOMElement in interface org.apache.ws.commons.om.OMFactory

createOMElement

public org.apache.ws.commons.om.OMElement createOMElement(String localName,
                                                          String namespaceURI,
                                                          String namespacePrefix)
Creates an OMElement.

Specified by:
createOMElement in interface org.apache.ws.commons.om.OMFactory
See Also:
OMFactory.createOMElement(java.lang.String, java.lang.String, java.lang.String)

createOMElement

public org.apache.ws.commons.om.OMElement createOMElement(QName qname,
                                                          org.apache.ws.commons.om.OMContainer parent)
                                                   throws org.apache.ws.commons.om.OMException
Creates a new OMDOM Element node and adds it to the given parent.

Specified by:
createOMElement in interface org.apache.ws.commons.om.OMFactory
Throws:
org.apache.ws.commons.om.OMException
See Also:
createOMElement(String, OMNamespace, OMContainer), OMFactory.createOMElement( javax.xml.namespace.QName, org.apache.ws.commons.om.OMContainer)

createOMNamespace

public org.apache.ws.commons.om.OMNamespace createOMNamespace(String uri,
                                                              String prefix)
Creates a new OMNamespace.

Specified by:
createOMNamespace in interface org.apache.ws.commons.om.OMFactory
See Also:
OMFactory.createOMNamespace(java.lang.String, java.lang.String)

createText

public org.apache.ws.commons.om.OMText createText(org.apache.ws.commons.om.OMElement parent,
                                                  String text)
Creates a new OMDOM Text node with the given value and appends it to the given parent element.

Specified by:
createText in interface org.apache.ws.commons.om.OMFactory
See Also:
OMFactory.createText( org.apache.ws.commons.om.OMElement,java.lang.String)

createText

public org.apache.ws.commons.om.OMText createText(org.apache.ws.commons.om.OMElement parent,
                                                  String text,
                                                  int type)
Specified by:
createText in interface org.apache.ws.commons.om.OMFactory

createText

public org.apache.ws.commons.om.OMText createText(String s)
Creates a OMDOM Text node carrying the given value.

Specified by:
createText in interface org.apache.ws.commons.om.OMFactory
See Also:
OMFactory.createText(java.lang.String)

createText

public org.apache.ws.commons.om.OMText createText(String text,
                                                  int type)
Creates a Character node of the given type.

Specified by:
createText in interface org.apache.ws.commons.om.OMFactory
See Also:
OMFactory.createText(java.lang.String, int)

createText

public org.apache.ws.commons.om.OMText createText(String text,
                                                  String mimeType,
                                                  boolean optimize)
Creates a new OMDOM Text node with the value of the given text value along with the MTOM optimization parameters and returns it.

Specified by:
createText in interface org.apache.ws.commons.om.OMFactory
See Also:
OMFactory.createText(java.lang.String, java.lang.String, boolean)

createText

public org.apache.ws.commons.om.OMText createText(Object dataHandler,
                                                  boolean optimize)
Creates a new OMDOM Text node with the given datahandler and the given MTOM optimization configuration and returns it.

Specified by:
createText in interface org.apache.ws.commons.om.OMFactory
See Also:
OMFactory.createText(java.lang.Object, boolean)

createText

public org.apache.ws.commons.om.OMText createText(org.apache.ws.commons.om.OMElement parent,
                                                  String s,
                                                  String mimeType,
                                                  boolean optimize)
Creates an OMDOM Text node, adds it to the give parent element and returns it.

Specified by:
createText in interface org.apache.ws.commons.om.OMFactory
See Also:
OMFactory.createText(org.apache.ws.commons.om.OMElement, java.lang.String, java.lang.String, boolean)

createText

public org.apache.ws.commons.om.OMText createText(String contentID,
                                                  org.apache.ws.commons.om.OMElement parent,
                                                  org.apache.ws.commons.om.OMXMLParserWrapper builder)
Specified by:
createText in interface org.apache.ws.commons.om.OMFactory

createOMAttribute

public org.apache.ws.commons.om.OMAttribute createOMAttribute(String localName,
                                                              org.apache.ws.commons.om.OMNamespace ns,
                                                              String value)
Specified by:
createOMAttribute in interface org.apache.ws.commons.om.OMFactory

createOMDocType

public org.apache.ws.commons.om.OMDocType createOMDocType(org.apache.ws.commons.om.OMContainer parent,
                                                          String content)
Specified by:
createOMDocType in interface org.apache.ws.commons.om.OMFactory

createOMProcessingInstruction

public org.apache.ws.commons.om.OMProcessingInstruction createOMProcessingInstruction(org.apache.ws.commons.om.OMContainer parent,
                                                                                      String piTarget,
                                                                                      String piData)
Specified by:
createOMProcessingInstruction in interface org.apache.ws.commons.om.OMFactory

createOMComment

public org.apache.ws.commons.om.OMComment createOMComment(org.apache.ws.commons.om.OMContainer parent,
                                                          String content)
Specified by:
createOMComment in interface org.apache.ws.commons.om.OMFactory

getDocument

public DocumentImpl getDocument()

createOMDocument

public org.apache.ws.commons.om.OMDocument createOMDocument(org.apache.ws.commons.om.OMXMLParserWrapper builder)
Specified by:
createOMDocument in interface org.apache.ws.commons.om.OMFactory