org.apache.axiom.om.impl.llom.factory
Class OMLinkedListImplFactory

java.lang.Object
  extended by org.apache.axiom.om.impl.llom.factory.OMLinkedListImplFactory
All Implemented Interfaces:
org.apache.axiom.om.OMFactory
Direct Known Subclasses:
SOAP11Factory, SOAP12Factory

public class OMLinkedListImplFactory
extends java.lang.Object
implements org.apache.axiom.om.OMFactory

Class OMLinkedListImplFactory


Field Summary
protected  java.util.Map namespaceTable
          This is a map of namespaces with the namespace URI as the key and Namespace object itself as the value.
private static java.lang.String uriAndPrefixSeparator
           
 
Constructor Summary
OMLinkedListImplFactory()
           
 
Method Summary
 org.apache.axiom.om.OMAttribute createOMAttribute(java.lang.String localName, org.apache.axiom.om.OMNamespace ns, java.lang.String value)
          Creates attribute.
 org.apache.axiom.om.OMComment createOMComment(org.apache.axiom.om.OMContainer parent, java.lang.String content)
          Creates a comment.
 org.apache.axiom.om.OMDocType createOMDocType(org.apache.axiom.om.OMContainer parent, java.lang.String content)
          Creates DocType/DTD.
 org.apache.axiom.om.OMDocument createOMDocument()
           
 org.apache.axiom.om.OMDocument createOMDocument(org.apache.axiom.om.OMXMLParserWrapper builder)
           
 org.apache.axiom.om.OMSourcedElement createOMElement(org.apache.axiom.om.OMDataSource source, java.lang.String localName, org.apache.axiom.om.OMNamespace ns)
          Construct element with arbitrary data source.
 org.apache.axiom.om.OMElement createOMElement(javax.xml.namespace.QName qname)
          Create an OMElement with the given QName

If the QName contains a prefix, we will ensure that an OMNamespace is created mapping the given namespace to the given prefix.

 org.apache.axiom.om.OMElement createOMElement(javax.xml.namespace.QName qname, org.apache.axiom.om.OMContainer parent)
          Create an OMElement with the given QName under the given parent.
 org.apache.axiom.om.OMElement createOMElement(java.lang.String localName, org.apache.axiom.om.OMNamespace ns)
          Method createOMElement.
 org.apache.axiom.om.OMElement createOMElement(java.lang.String localName, org.apache.axiom.om.OMNamespace ns, org.apache.axiom.om.OMContainer parent)
           
 org.apache.axiom.om.OMElement createOMElement(java.lang.String localName, org.apache.axiom.om.OMNamespace ns, org.apache.axiom.om.OMContainer parent, org.apache.axiom.om.OMXMLParserWrapper builder)
          Method createOMElement.
 org.apache.axiom.om.OMElement createOMElement(java.lang.String localName, java.lang.String namespaceURI, java.lang.String namespacePrefix)
          Method createOMElement.
 org.apache.axiom.om.OMNamespace createOMNamespace(java.lang.String uri, java.lang.String prefix)
          Method createOMNamespace.
 org.apache.axiom.om.OMProcessingInstruction createOMProcessingInstruction(org.apache.axiom.om.OMContainer parent, java.lang.String piTarget, java.lang.String piData)
          Creates a PI.
 org.apache.axiom.om.OMText createOMText(java.lang.Object dataHandler, boolean optimize)
          Creates text.
 org.apache.axiom.om.OMText createOMText(org.apache.axiom.om.OMContainer parent, char[] charArary, int type)
           
 org.apache.axiom.om.OMText createOMText(org.apache.axiom.om.OMContainer parent, org.apache.axiom.om.OMText source)
          Create OMText node that is a copy of the source text node
 org.apache.axiom.om.OMText createOMText(org.apache.axiom.om.OMContainer parent, javax.xml.namespace.QName text)
           
 org.apache.axiom.om.OMText createOMText(org.apache.axiom.om.OMContainer parent, javax.xml.namespace.QName text, int type)
           
 org.apache.axiom.om.OMText createOMText(org.apache.axiom.om.OMContainer parent, java.lang.String text)
          Method createOMText.
 org.apache.axiom.om.OMText createOMText(org.apache.axiom.om.OMContainer parent, java.lang.String text, int type)
           
 org.apache.axiom.om.OMText createOMText(org.apache.axiom.om.OMContainer parent, java.lang.String s, java.lang.String mimeType, boolean optimize)
          Creates text.
 org.apache.axiom.om.OMText createOMText(java.lang.String s)
          Method createOMText.
 org.apache.axiom.om.OMText createOMText(java.lang.String s, int type)
           
 org.apache.axiom.om.OMText createOMText(java.lang.String contentID, org.apache.axiom.om.OMContainer parent, org.apache.axiom.om.OMXMLParserWrapper builder)
           
 org.apache.axiom.om.OMText createOMText(java.lang.String s, java.lang.String mimeType, boolean optimize)
          Creates text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

uriAndPrefixSeparator

private static final java.lang.String uriAndPrefixSeparator
See Also:
Constant Field Values

namespaceTable

protected java.util.Map namespaceTable
This is a map of namespaces with the namespace URI as the key and Namespace object itself as the value. OMFactories are shared across threads. The Hashtable is necessary to prevent concurrent modification exceptions.

Constructor Detail

OMLinkedListImplFactory

public OMLinkedListImplFactory()
Method Detail

createOMElement

public org.apache.axiom.om.OMElement createOMElement(java.lang.String localName,
                                                     org.apache.axiom.om.OMNamespace ns)
Method createOMElement.

Specified by:
createOMElement in interface org.apache.axiom.om.OMFactory
Parameters:
localName -
ns -
Returns:
Returns OMElement.

createOMElement

public org.apache.axiom.om.OMElement createOMElement(java.lang.String localName,
                                                     org.apache.axiom.om.OMNamespace ns,
                                                     org.apache.axiom.om.OMContainer parent)
Specified by:
createOMElement in interface org.apache.axiom.om.OMFactory

createOMElement

public org.apache.axiom.om.OMElement createOMElement(java.lang.String localName,
                                                     org.apache.axiom.om.OMNamespace ns,
                                                     org.apache.axiom.om.OMContainer parent,
                                                     org.apache.axiom.om.OMXMLParserWrapper builder)
Method createOMElement.

Specified by:
createOMElement in interface org.apache.axiom.om.OMFactory
Parameters:
localName -
ns -
parent -
builder -
Returns:
Returns OMElement.

createOMElement

public org.apache.axiom.om.OMElement createOMElement(java.lang.String localName,
                                                     java.lang.String namespaceURI,
                                                     java.lang.String namespacePrefix)
Method createOMElement.

Specified by:
createOMElement in interface org.apache.axiom.om.OMFactory
Parameters:
localName -
namespaceURI -
namespacePrefix -
Returns:
Returns OMElement.

createOMElement

public org.apache.axiom.om.OMElement createOMElement(javax.xml.namespace.QName qname,
                                                     org.apache.axiom.om.OMContainer parent)
                                              throws org.apache.axiom.om.OMException
Create an OMElement with the given QName under the given parent. If the QName contains a prefix, we will ensure that an OMNamespace is created mapping the given namespace to the given prefix. If no prefix is passed, we'll use whatever's already mapped in the parent, or create a generated one.

Specified by:
createOMElement in interface org.apache.axiom.om.OMFactory
Parameters:
qname - the QName of the element to create
parent - the OMContainer in which to place the new element
Returns:
Returns the new OMElement
Throws:
org.apache.axiom.om.OMException - if there's a namespace mapping problem

createOMElement

public org.apache.axiom.om.OMElement createOMElement(javax.xml.namespace.QName qname)
                                              throws org.apache.axiom.om.OMException
Create an OMElement with the given QName

If the QName contains a prefix, we will ensure that an OMNamespace is created mapping the given namespace to the given prefix. If no prefix is passed, we'll use whatever's already mapped in the parent, or create a generated one.

Specified by:
createOMElement in interface org.apache.axiom.om.OMFactory
Parameters:
qname -
Returns:
the new OMElement.
Throws:
org.apache.axiom.om.OMException

createOMElement

public org.apache.axiom.om.OMSourcedElement createOMElement(org.apache.axiom.om.OMDataSource source,
                                                            java.lang.String localName,
                                                            org.apache.axiom.om.OMNamespace ns)
Construct element with arbitrary data source.

Specified by:
createOMElement in interface org.apache.axiom.om.OMFactory
Parameters:
source -
localName -
ns -

createOMNamespace

public org.apache.axiom.om.OMNamespace createOMNamespace(java.lang.String uri,
                                                         java.lang.String prefix)
Method createOMNamespace.

Specified by:
createOMNamespace in interface org.apache.axiom.om.OMFactory
Parameters:
uri -
prefix -
Returns:
Returns OMNamespace.

createOMText

public org.apache.axiom.om.OMText createOMText(org.apache.axiom.om.OMContainer parent,
                                               java.lang.String text)
Method createOMText.

Specified by:
createOMText in interface org.apache.axiom.om.OMFactory
Parameters:
parent -
text -
Returns:
Returns OMText.

createOMText

public org.apache.axiom.om.OMText createOMText(org.apache.axiom.om.OMContainer parent,
                                               javax.xml.namespace.QName text)
Specified by:
createOMText in interface org.apache.axiom.om.OMFactory

createOMText

public org.apache.axiom.om.OMText createOMText(org.apache.axiom.om.OMContainer parent,
                                               java.lang.String text,
                                               int type)
Specified by:
createOMText in interface org.apache.axiom.om.OMFactory

createOMText

public org.apache.axiom.om.OMText createOMText(org.apache.axiom.om.OMContainer parent,
                                               char[] charArary,
                                               int type)
Specified by:
createOMText in interface org.apache.axiom.om.OMFactory

createOMText

public org.apache.axiom.om.OMText createOMText(org.apache.axiom.om.OMContainer parent,
                                               javax.xml.namespace.QName text,
                                               int type)
Specified by:
createOMText in interface org.apache.axiom.om.OMFactory

createOMText

public org.apache.axiom.om.OMText createOMText(java.lang.String s)
Method createOMText.

Specified by:
createOMText in interface org.apache.axiom.om.OMFactory
Parameters:
s -
Returns:
Returns OMText.

createOMText

public org.apache.axiom.om.OMText createOMText(java.lang.String s,
                                               int type)
Specified by:
createOMText in interface org.apache.axiom.om.OMFactory

createOMText

public org.apache.axiom.om.OMText createOMText(java.lang.String s,
                                               java.lang.String mimeType,
                                               boolean optimize)
Creates text.

Specified by:
createOMText in interface org.apache.axiom.om.OMFactory
Parameters:
s -
mimeType -
optimize -
Returns:
Returns OMText.

createOMText

public org.apache.axiom.om.OMText createOMText(java.lang.Object dataHandler,
                                               boolean optimize)
Creates text.

Specified by:
createOMText in interface org.apache.axiom.om.OMFactory
Parameters:
dataHandler -
optimize -
Returns:
Returns OMText.

createOMText

public org.apache.axiom.om.OMText createOMText(java.lang.String contentID,
                                               org.apache.axiom.om.OMContainer parent,
                                               org.apache.axiom.om.OMXMLParserWrapper builder)
Specified by:
createOMText in interface org.apache.axiom.om.OMFactory

createOMText

public org.apache.axiom.om.OMText createOMText(org.apache.axiom.om.OMContainer parent,
                                               org.apache.axiom.om.OMText source)
Create OMText node that is a copy of the source text node

Specified by:
createOMText in interface org.apache.axiom.om.OMFactory
Parameters:
parent -
source -
Returns:

createOMText

public org.apache.axiom.om.OMText createOMText(org.apache.axiom.om.OMContainer parent,
                                               java.lang.String s,
                                               java.lang.String mimeType,
                                               boolean optimize)
Creates text.

Specified by:
createOMText in interface org.apache.axiom.om.OMFactory
Parameters:
parent -
s -
mimeType -
optimize -
Returns:
Returns OMText.

createOMAttribute

public org.apache.axiom.om.OMAttribute createOMAttribute(java.lang.String localName,
                                                         org.apache.axiom.om.OMNamespace ns,
                                                         java.lang.String value)
Creates attribute.

Specified by:
createOMAttribute in interface org.apache.axiom.om.OMFactory
Parameters:
localName -
ns -
value -
Returns:
Returns OMAttribute.

createOMDocType

public org.apache.axiom.om.OMDocType createOMDocType(org.apache.axiom.om.OMContainer parent,
                                                     java.lang.String content)
Creates DocType/DTD.

Specified by:
createOMDocType in interface org.apache.axiom.om.OMFactory
Parameters:
parent -
content -
Returns:
Returns doctype.

createOMProcessingInstruction

public org.apache.axiom.om.OMProcessingInstruction createOMProcessingInstruction(org.apache.axiom.om.OMContainer parent,
                                                                                 java.lang.String piTarget,
                                                                                 java.lang.String piData)
Creates a PI.

Specified by:
createOMProcessingInstruction in interface org.apache.axiom.om.OMFactory
Parameters:
parent -
piTarget -
piData -
Returns:
Returns OMProcessingInstruction.

createOMComment

public org.apache.axiom.om.OMComment createOMComment(org.apache.axiom.om.OMContainer parent,
                                                     java.lang.String content)
Creates a comment.

Specified by:
createOMComment in interface org.apache.axiom.om.OMFactory
Parameters:
parent -
content -
Returns:
Returns OMComment.

createOMDocument

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

createOMDocument

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