Package org.apache.axiom.om
Interface OMMetaFactorySPI
- All Superinterfaces:
OMMetaFactory
For internal use only.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOMBuilder
(SAXSource source, boolean expandEntityReferences) Create an object model builder for plain XML that gets its input from aSAXSource
.createOMBuilder
(Source source) Create an object model builder for plain XML that gets its input from aSource
.createOMBuilder
(Source rootPart, OMAttachmentAccessor attachmentAccessor) createOMBuilder
(StAXParserConfiguration configuration, MultipartBody message) Create an XOP aware object model builder.createOMBuilder
(StAXParserConfiguration configuration, InputSource is) Create an object model builder for plain XML that reads a document from the provided input source.createOMBuilder
(Node node, boolean expandEntityReferences) Create an object model builder for plain XML that gets its input from a DOM tree.createSOAPModelBuilder
(Source source) Create an object model builder for SOAP that reads a message from the providedSource
.createSOAPModelBuilder
(Source rootPart, OMAttachmentAccessor attachmentAccessor) createSOAPModelBuilder
(MultipartBody message) Create an MTOM aware object model builder.Create an object model builder for SOAP that reads a message from the provided input source.createStAXOMBuilder
(XMLStreamReader parser) Create an object model builder for plain XML that pulls events from a StAX stream reader.Create an object model builder for SOAP that pulls events from a StAX stream reader.Methods inherited from interface org.apache.axiom.om.OMMetaFactory
getOMFactory, getSOAP11Factory, getSOAP12Factory
-
Method Details
-
createStAXOMBuilder
Create an object model builder for plain XML that pulls events from a StAX stream reader.The implementation must perform namespace repairing, i.e. it must add appropriate namespace declarations if undeclared namespaces appear in the StAX stream.
- Parameters:
parser
- the stream reader to read the XML data from- Returns:
- the builder
-
createOMBuilder
Create an object model builder for plain XML that reads a document from the provided input source.- Parameters:
configuration
- the parser configuration to useis
- the source of the XML document- Returns:
- the builder
-
createOMBuilder
Create an object model builder for plain XML that gets its input from aSource
.- Parameters:
source
- the source of the XML document- Returns:
- the builder
-
createOMBuilder
Create an object model builder for plain XML that gets its input from a DOM tree.- Parameters:
node
- the DOM node; must be aNode.DOCUMENT_NODE
orNode.ELEMENT_NODE
expandEntityReferences
- Determines howEntityReference
nodes are handled:- If the parameter is
false
then a singleOMEntityReference
will be created for eachEntityReference
. The child nodes ofEntityReference
nodes are not taken into account. - If the parameter is
true
then noOMEntityReference
nodes are created and the children ofEntityReference
nodes are converted and inserted into the Axiom tree.
- If the parameter is
- Returns:
- the builder
-
createOMBuilder
Create an object model builder for plain XML that gets its input from aSAXSource
.- Parameters:
source
- the source of the XML documentexpandEntityReferences
- Determines how entity references (i.e.LexicalHandler.startEntity(String)
andLexicalHandler.endEntity(String)
events) are handled:- If the parameter is
false
then a singleOMEntityReference
will be created for each pair ofLexicalHandler.startEntity(String)
andLexicalHandler.endEntity(String)
events. Other events reported between these two events are not taken into account. - If the parameter is
true
then noOMEntityReference
nodes are created andLexicalHandler.startEntity(String)
andLexicalHandler.endEntity(String)
events are ignored. However, events betweenLexicalHandler.startEntity(String)
andLexicalHandler.endEntity(String)
are processed normally.
- If the parameter is
- Returns:
- the builder
-
createOMBuilder
Create an XOP aware object model builder.- Parameters:
configuration
- the parser configuration to usemessage
- the MIME message- Returns:
- the builder
-
createOMBuilder
-
createStAXSOAPModelBuilder
Create an object model builder for SOAP that pulls events from a StAX stream reader. The implementation will select the appropriateSOAPFactory
based on the namespace URI of the SOAP envelope.- Parameters:
parser
- the stream reader to read the SOAP message from- Returns:
- the builder
-
createSOAPModelBuilder
Create an object model builder for SOAP that reads a message from the provided input source. The implementation will select the appropriateSOAPFactory
based on the namespace URI of the SOAP envelope.- Parameters:
is
- the source of the SOAP message- Returns:
- the builder
-
createSOAPModelBuilder
Create an object model builder for SOAP that reads a message from the providedSource
. The implementation will select the appropriateSOAPFactory
based on the namespace URI of the SOAP envelope.- Parameters:
source
- the source of the SOAP message- Returns:
- the builder
-
createSOAPModelBuilder
Create an MTOM aware object model builder.- Parameters:
message
- the MIME message- Returns:
- the builder
-
createSOAPModelBuilder
-