Class OMXMLBuilderFactory

Provides static factory methods to create various kinds of object model builders from different
types of input sources. The methods defined by this class are the starting point to parse XML
documents into Axiom trees.

Create an object model builder that reads an XML document from the provided input stream
using a specified object model factory and with the default parser configuration defined by
StAXParserConfiguration.DEFAULT.

Create an object model builder that reads an XML document from the provided input stream
using a specified object model factory and with the default parser configuration defined by
StAXParserConfiguration.DEFAULT.

Create an object model builder that reads an XML document from the provided character stream
using a specified object model factory and with the default parser configuration defined by
StAXParserConfiguration.DEFAULT.

createOMBuilder

Create an object model builder that reads an XML document from the provided input stream
using a specified object model factory and with the default parser configuration defined by
StAXParserConfiguration.DEFAULT.

Parameters:

omFactory - the object model factory to use

in - the input stream representing the XML document

Returns:

the builder

createOMBuilder

Create an object model builder that reads an XML document from the provided input stream
using a specified object model factory and with the default parser configuration defined by
StAXParserConfiguration.DEFAULT.

Parameters:

omFactory - the object model factory to use

in - the input stream representing the XML document

encoding - the charset encoding of the XML document or null if the parser should
determine the charset encoding

createOMBuilder

Create an object model builder that reads an XML document from the provided character stream
using a specified object model factory and with the default parser configuration defined by
StAXParserConfiguration.DEFAULT.

createStAXSOAPModelBuilder

Create an object model builder for SOAP that pulls events from a StAX stream reader and that
uses a particular Axiom implementation. The method will select the appropriate
SOAPFactory based on the namespace URI of the SOAP envelope.

createSOAPModelBuilder

Create an object model builder for SOAP that reads a message from the provided input stream,
using a given charset encoding. The method will select the appropriate SOAPFactory
based on the namespace URI of the SOAP envelope. It will configure the underlying parser as
specified by StAXParserConfiguration.SOAP.

Parameters:

in - the input stream containing the SOAP message

encoding - the charset encoding of the SOAP message or null if the parser should
determine the charset encoding

Returns:

the builder

createSOAPModelBuilder

Create an object model builder for SOAP that reads a message from the provided input stream,
using a particular Axiom implementation and a given charset encoding. The method will select
the appropriate SOAPFactory based on the namespace URI of the SOAP envelope. It will
configure the underlying parser as specified by StAXParserConfiguration.SOAP.

Parameters:

metaFactory - the meta factory for the Axiom implementation to use

in - the input stream containing the SOAP message

encoding - the charset encoding of the SOAP message or null if the parser should
determine the charset encoding

Returns:

the builder

createSOAPModelBuilder

Create an object model builder for SOAP that reads a message from the provided character
stream. The method will select the appropriate SOAPFactory based on the namespace URI
of the SOAP envelope. It will configure the underlying parser as specified by
StAXParserConfiguration.SOAP.

Parameters:

in - the character stream containing the SOAP message

Returns:

the builder

createSOAPModelBuilder

Create an object model builder for SOAP that reads a message from the provided character
stream using a particular Axiom implementation. The method will select the appropriate
SOAPFactory based on the namespace URI of the SOAP envelope. It will configure the
underlying parser as specified by StAXParserConfiguration.SOAP.

Parameters:

metaFactory - the meta factory for the Axiom implementation to use

in - the character stream containing the SOAP message

Returns:

the builder

createSOAPModelBuilder

Create an MTOM aware model builder from the provided Attachments object. The method
will determine the SOAP version based on the content type information from the
Attachments object. It will configure the underlying parser as specified by
StAXParserConfiguration.SOAP.

Parameters:

attachments - an Attachments object that must have been created from an input stream

createSOAPModelBuilder

Create an MTOM aware model builder from the provided Attachments object using a
particular Axiom implementation. The method will determine the SOAP version based on the
content type information from the Attachments object. It will configure the
underlying parser as specified by StAXParserConfiguration.SOAP.

Parameters:

metaFactory - the meta factory for the Axiom implementation to use

attachments - an Attachments object that must have been created from an input stream