Package org.apache.axiom.om.impl
Class AbstractOMMetaFactory
- java.lang.Object
-
- org.apache.axiom.om.impl.AbstractOMMetaFactory
-
- All Implemented Interfaces:
OMMetaFactory
public abstract class AbstractOMMetaFactory extends Object implements OMMetaFactory
Base class forOMMetaFactoryimplementations that make use of the standard builders (StAXOMBuilderand its subclasses).
-
-
Constructor Summary
Constructors Constructor Description AbstractOMMetaFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OMXMLParserWrappercreateOMBuilder(OMFactory omFactory, StAXParserConfiguration configuration, InputSource is)Create an object model builder for plain XML that reads a document from the provided input source.OMXMLParserWrappercreateSOAPModelBuilder(StAXParserConfiguration configuration, InputSource is)Create an object model builder for SOAP that reads a message from the provided input source.OMXMLParserWrappercreateStAXOMBuilder(OMFactory omFactory, XMLStreamReader parser)Create an object model builder for plain XML that pulls events from a StAX stream reader.OMXMLParserWrappercreateStAXSOAPModelBuilder(XMLStreamReader parser)Create an object model builder for SOAP that pulls events from a StAX stream reader.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.axiom.om.OMMetaFactory
getOMFactory, getSOAP11Factory, getSOAP12Factory
-
-
-
-
Method Detail
-
createStAXOMBuilder
public OMXMLParserWrapper createStAXOMBuilder(OMFactory omFactory, XMLStreamReader parser)
Description copied from interface:OMMetaFactoryCreate an object model builder for plain XML that pulls events from a StAX stream reader.- Specified by:
createStAXOMBuilderin interfaceOMMetaFactory- Parameters:
omFactory- The object model factory to use. This factory must be obtained from the sameOMMetaFactoryinstance as the one used to invoke this method. In general the factory will be retrieved fromOMMetaFactory.getOMFactory()), but in some cases it may be necessary to pass aSOAPFactoryinstance, although this method will never produce a SOAP infoset.parser- the stream reader to read the XML data from- Returns:
- the builder
-
createOMBuilder
public OMXMLParserWrapper createOMBuilder(OMFactory omFactory, StAXParserConfiguration configuration, InputSource is)
Description copied from interface:OMMetaFactoryCreate an object model builder for plain XML that reads a document from the provided input source.- Specified by:
createOMBuilderin interfaceOMMetaFactory- Parameters:
omFactory- The object model factory to use. This factory must be obtained from the sameOMMetaFactoryinstance as the one used to invoke this method. In general the factory will be retrieved fromOMMetaFactory.getOMFactory()), but in some cases it may be necessary to pass aSOAPFactoryinstance, although this method will never produce a SOAP infoset.configuration- the parser configuration to useis- the source of the XML document- Returns:
- the builder
-
createStAXSOAPModelBuilder
public OMXMLParserWrapper createStAXSOAPModelBuilder(XMLStreamReader parser)
Description copied from interface:OMMetaFactoryCreate an object model builder for SOAP that pulls events from a StAX stream reader. The implementation will select the appropriateSOAPFactorybased on the namespace URI of the SOAP envelope.- Specified by:
createStAXSOAPModelBuilderin interfaceOMMetaFactory- Parameters:
parser- the stream reader to read the SOAP message from- Returns:
- the builder
-
createSOAPModelBuilder
public OMXMLParserWrapper createSOAPModelBuilder(StAXParserConfiguration configuration, InputSource is)
Description copied from interface:OMMetaFactoryCreate an object model builder for SOAP that reads a message from the provided input source. The implementation will select the appropriateSOAPFactorybased on the namespace URI of the SOAP envelope.- Specified by:
createSOAPModelBuilderin interfaceOMMetaFactory- Parameters:
configuration- the parser configuration to use; for security reasons, this should in general beStAXParserConfiguration.SOAPis- the source of the SOAP message- Returns:
- the builder
-
-