|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 | |
---|---|
OMXMLParserWrapper |
createOMBuilder(OMFactory omFactory,
Source source)
Create an object model builder for plain XML that gets its input from a Source . |
OMXMLParserWrapper |
createOMBuilder(OMFactory omFactory,
StAXParserConfiguration configuration,
InputSource is)
Create an object model builder for plain XML that reads a document from the provided input source. |
SOAPModelBuilder |
createSOAPModelBuilder(StAXParserConfiguration configuration,
InputSource is)
Create an object model builder for SOAP that reads a message from the provided input source. |
OMXMLParserWrapper |
createStAXOMBuilder(OMFactory omFactory,
XMLStreamReader parser)
Create an object model builder for plain XML that pulls events from a StAX stream reader. |
SOAPModelBuilder |
createStAXSOAPModelBuilder(XMLStreamReader parser)
Create an object model builder for SOAP that pulls events from a StAX stream reader. |
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 |
---|
OMFactory getOMFactory()
SOAPFactory getSOAP11Factory()
SOAPFactory getSOAP12Factory()
OMXMLParserWrapper createStAXOMBuilder(OMFactory omFactory, XMLStreamReader parser)
omFactory
- The object model factory to use. This factory must be obtained from the same
OMMetaFactory
instance as the one used to invoke this method. In general
the factory will be retrieved from getOMFactory()
), but in some cases it
may be necessary to pass a SOAPFactory
instance, although this method will
never produce a SOAP infoset.parser
- the stream reader to read the XML data from
OMXMLParserWrapper createOMBuilder(OMFactory omFactory, StAXParserConfiguration configuration, InputSource is)
omFactory
- The object model factory to use. This factory must be obtained from the same
OMMetaFactory
instance as the one used to invoke this method. In general
the factory will be retrieved from getOMFactory()
), but in some cases it
may be necessary to pass a SOAPFactory
instance, although this method will
never produce a SOAP infoset.configuration
- the parser configuration to useis
- the source of the XML document
OMXMLParserWrapper createOMBuilder(OMFactory omFactory, Source source)
Source
.
omFactory
- The object model factory to use. This factory must be obtained from the same
OMMetaFactory
instance as the one used to invoke this method. In general
the factory will be retrieved from getOMFactory()
), but in some cases it
may be necessary to pass a SOAPFactory
instance, although this method will
never produce a SOAP infoset.source
- the source of the XML document
SOAPModelBuilder createStAXSOAPModelBuilder(XMLStreamReader parser)
SOAPFactory
based on the namespace URI of
the SOAP envelope.
parser
- the stream reader to read the SOAP message from
SOAPModelBuilder createSOAPModelBuilder(StAXParserConfiguration configuration, InputSource is)
SOAPFactory
based on the namespace URI
of the SOAP envelope.
configuration
- the parser configuration to use; for security reasons, this should in general be
StAXParserConfiguration.SOAP
is
- the source of the SOAP message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |