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:
OMFactory
Direct Known Subclasses:
SOAP11Factory, SOAP12Factory

public class OMLinkedListImplFactory
extends Object
implements OMFactory

Class OMLinkedListImplFactory


Field Summary
protected  Map namespaceTable
          This is a map of namespaces with the namespace URI as the key and Namespace object itself as the value.
 
Constructor Summary
OMLinkedListImplFactory()
           
 
Method Summary
 OMAttribute createOMAttribute(String localName, OMNamespace ns, String value)
          Creates attribute.
 OMComment createOMComment(OMContainer parent, String content)
          Creates a comment.
 OMDocType createOMDocType(OMContainer parent, String content)
          Creates DocType/DTD.
 OMDocument createOMDocument()
          Creates a new OMDocument.
 OMDocument createOMDocument(OMXMLParserWrapper builder)
           
 OMSourcedElement createOMElement(OMDataSource source, String localName, OMNamespace ns)
          Construct element with arbitrary data source.
 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.

 OMElement createOMElement(javax.xml.namespace.QName qname, OMContainer parent)
          Create an OMElement with the given QName under the given parent.
 OMElement createOMElement(String localName, OMNamespace ns)
          Method createOMElement.
 OMElement createOMElement(String localName, OMNamespace ns, OMContainer parent)
           
 OMElement createOMElement(String localName, OMNamespace ns, OMContainer parent, OMXMLParserWrapper builder)
          Method createOMElement.
 OMElement createOMElement(String localName, String namespaceURI, String namespacePrefix)
          Method createOMElement.
 OMNamespace createOMNamespace(String uri, String prefix)
          Method createOMNamespace.
 OMProcessingInstruction createOMProcessingInstruction(OMContainer parent, String piTarget, String piData)
          Creates a PI.
 OMText createOMText(Object dataHandler, boolean optimize)
          Creates text.
 OMText createOMText(OMContainer parent, char[] charArary, int type)
           
 OMText createOMText(OMContainer parent, OMText source)
          Create OMText node that is a copy of the source text node
 OMText createOMText(OMContainer parent, javax.xml.namespace.QName text)
           
 OMText createOMText(OMContainer parent, javax.xml.namespace.QName text, int type)
           
 OMText createOMText(OMContainer parent, String text)
          Method createOMText.
 OMText createOMText(OMContainer parent, String text, int type)
           
 OMText createOMText(OMContainer parent, String s, String mimeType, boolean optimize)
          Creates text.
 OMText createOMText(String s)
          Method createOMText.
 OMText createOMText(String s, int type)
           
 OMText createOMText(String contentID, OMContainer parent, OMXMLParserWrapper builder)
           
 OMText createOMText(String s, 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

namespaceTable

protected 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 OMElement createOMElement(String localName,
                                 OMNamespace ns)
Method createOMElement.

Specified by:
createOMElement in interface OMFactory
Parameters:
localName -
ns -
Returns:
Returns OMElement.

createOMElement

public OMElement createOMElement(String localName,
                                 OMNamespace ns,
                                 OMContainer parent)
Specified by:
createOMElement in interface OMFactory

createOMElement

public OMElement createOMElement(String localName,
                                 OMNamespace ns,
                                 OMContainer parent,
                                 OMXMLParserWrapper builder)
Method createOMElement.

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

createOMElement

public OMElement createOMElement(String localName,
                                 String namespaceURI,
                                 String namespacePrefix)
Method createOMElement.

Specified by:
createOMElement in interface OMFactory
Parameters:
localName -
namespaceURI -
namespacePrefix -
Returns:
Returns OMElement.

createOMElement

public OMElement createOMElement(javax.xml.namespace.QName qname,
                                 OMContainer parent)
                          throws 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 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:
OMException - if there's a namespace mapping problem

createOMElement

public OMElement createOMElement(javax.xml.namespace.QName qname)
                          throws 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 OMFactory
Parameters:
qname -
Returns:
the new OMElement.
Throws:
OMException

createOMElement

public OMSourcedElement createOMElement(OMDataSource source,
                                        String localName,
                                        OMNamespace ns)
Construct element with arbitrary data source.

Specified by:
createOMElement in interface OMFactory
Parameters:
source -
localName -
ns -

createOMNamespace

public OMNamespace createOMNamespace(String uri,
                                     String prefix)
Method createOMNamespace.

Specified by:
createOMNamespace in interface OMFactory
Parameters:
uri -
prefix -
Returns:
Returns OMNamespace.

createOMText

public OMText createOMText(OMContainer parent,
                           String text)
Method createOMText.

Specified by:
createOMText in interface OMFactory
Parameters:
parent -
text -
Returns:
Returns OMText.

createOMText

public OMText createOMText(OMContainer parent,
                           javax.xml.namespace.QName text)
Specified by:
createOMText in interface OMFactory
text - - This text itself can contain a namespace inside it.

createOMText

public OMText createOMText(OMContainer parent,
                           String text,
                           int type)
Specified by:
createOMText in interface OMFactory
type - - this should be either of XMLStreamConstants.CHARACTERS, XMLStreamConstants.CDATA, XMLStreamConstants.SPACE, XMLStreamConstants.ENTITY_REFERENCE
Returns:
Returns OMText.

createOMText

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

createOMText

public OMText createOMText(OMContainer parent,
                           javax.xml.namespace.QName text,
                           int type)
Specified by:
createOMText in interface OMFactory
text - - This text itself can contain a namespace inside it.

createOMText

public OMText createOMText(String s)
Method createOMText.

Specified by:
createOMText in interface OMFactory
Parameters:
s -
Returns:
Returns OMText.

createOMText

public OMText createOMText(String s,
                           int type)
Specified by:
createOMText in interface OMFactory
type - - OMText node can handle SPACE, CHARACTERS, CDATA and ENTITY REFERENCES. For Constants, use either XMLStreamConstants or constants found in OMNode.
Returns:
Returns OMText.

createOMText

public OMText createOMText(String s,
                           String mimeType,
                           boolean optimize)
Creates text.

Specified by:
createOMText in interface OMFactory
Parameters:
s -
mimeType -
optimize -
Returns:
Returns OMText.

createOMText

public OMText createOMText(Object dataHandler,
                           boolean optimize)
Creates text.

Specified by:
createOMText in interface OMFactory
Parameters:
dataHandler -
optimize -
Returns:
Returns OMText.

createOMText

public OMText createOMText(String contentID,
                           OMContainer parent,
                           OMXMLParserWrapper builder)
Specified by:
createOMText in interface OMFactory

createOMText

public OMText createOMText(OMContainer parent,
                           OMText source)
Create OMText node that is a copy of the source text node

Specified by:
createOMText in interface OMFactory
Parameters:
parent -
source -
Returns:

createOMText

public OMText createOMText(OMContainer parent,
                           String s,
                           String mimeType,
                           boolean optimize)
Creates text.

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

createOMAttribute

public OMAttribute createOMAttribute(String localName,
                                     OMNamespace ns,
                                     String value)
Creates attribute.

Specified by:
createOMAttribute in interface OMFactory
Parameters:
localName -
ns -
value -
Returns:
Returns OMAttribute.

createOMDocType

public OMDocType createOMDocType(OMContainer parent,
                                 String content)
Creates DocType/DTD.

Specified by:
createOMDocType in interface OMFactory
Parameters:
parent -
content -
Returns:
Returns doctype.

createOMProcessingInstruction

public OMProcessingInstruction createOMProcessingInstruction(OMContainer parent,
                                                             String piTarget,
                                                             String piData)
Creates a PI.

Specified by:
createOMProcessingInstruction in interface OMFactory
Parameters:
parent -
piTarget -
piData -
Returns:
Returns OMProcessingInstruction.

createOMComment

public OMComment createOMComment(OMContainer parent,
                                 String content)
Creates a comment.

Specified by:
createOMComment in interface OMFactory
Parameters:
parent -
content -
Returns:
Returns OMComment.

createOMDocument

public OMDocument createOMDocument()
Description copied from interface: OMFactory
Creates a new OMDocument.

Specified by:
createOMDocument in interface OMFactory

createOMDocument

public OMDocument createOMDocument(OMXMLParserWrapper builder)
Specified by:
createOMDocument in interface OMFactory


Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.