org.apache.axiom.om
Class OMImplementation

java.lang.Object
  extended by org.apache.axiom.om.OMImplementation
Direct Known Subclasses:
OMDOMImplementation, OMLinkedListImplementation

public abstract class OMImplementation
extends java.lang.Object

Abstract class encapsulating a particular object model. It provides instances for plain XML, SOAP 1.1 and SOAP 1.2 object model factories for the given object model implementation. Currently the two OM implementations provided by Axiom are LLOM (linked list) and DOM.

The factories returned by getOMFactory(), getSOAP11Factory() and getSOAP12Factory() might be stateless (and thread safe) or not. In the former case the implementation should return the same instance on every invocation, i.e. instantiate the factory for each OM type only once. In the latter case, the implementation must return a new instance on every invocation. In order to work with any OM implementation, code using an implementation of this class must call the relevant method once and only once for every document processed.


Constructor Summary
OMImplementation()
           
 
Method Summary
abstract  OMFactory getOMFactory()
          Get an OM factory instance for the XML infoset model.
abstract  SOAPFactory getSOAP11Factory()
          Get an OM factory instance for the SOAP 1.1 infoset model.
abstract  SOAPFactory getSOAP12Factory()
          Get an OM factory instance for the SOAP 1.2 infoset model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OMImplementation

public OMImplementation()
Method Detail

getOMFactory

public abstract OMFactory getOMFactory()
Get an OM factory instance for the XML infoset model.

Returns:
the OM factory instance

getSOAP11Factory

public abstract SOAPFactory getSOAP11Factory()
Get an OM factory instance for the SOAP 1.1 infoset model.

Returns:
the OM factory instance

getSOAP12Factory

public abstract SOAPFactory getSOAP12Factory()
Get an OM factory instance for the SOAP 1.2 infoset model.

Returns:
the OM factory instance


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