org.apache.axiom.om
Interface OMMetaFactory

All Known Implementing Classes:
OMDOMMetaFactory, OMLinkedListMetaFactory

public interface OMMetaFactory

Object model meta factory. This interface encapsulates a particular object model and 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.


Method Summary
 OMFactory getOMFactory()
          Get an OM factory instance for the XML infoset model.
 SOAPFactory getSOAP11Factory()
          Get an OM factory instance for the SOAP 1.1 infoset model.
 SOAPFactory getSOAP12Factory()
          Get an OM factory instance for the SOAP 1.2 infoset model.
 

Method Detail

getOMFactory

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

Returns:
the OM factory instance

getSOAP11Factory

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

Returns:
the OM factory instance

getSOAP12Factory

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

Returns:
the OM factory instance


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