Package org.apache.axiom.om
Interface OMMetaFactorySPI
-
- All Superinterfaces:
OMMetaFactory
public interface OMMetaFactorySPI extends OMMetaFactory
For internal use only.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OMXMLParserWrappercreateOMBuilder(SAXSource source, boolean expandEntityReferences)Create an object model builder for plain XML that gets its input from aSAXSource.OMXMLParserWrappercreateOMBuilder(Source source)Create an object model builder for plain XML that gets its input from aSource.OMXMLParserWrappercreateOMBuilder(Source rootPart, OMAttachmentAccessor attachmentAccessor)OMXMLParserWrappercreateOMBuilder(StAXParserConfiguration configuration, MultipartBody message)Create an XOP aware object model builder.OMXMLParserWrappercreateOMBuilder(StAXParserConfiguration configuration, InputSource is)Create an object model builder for plain XML that reads a document from the provided input source.OMXMLParserWrappercreateOMBuilder(Node node, boolean expandEntityReferences)Create an object model builder for plain XML that gets its input from a DOM tree.SOAPModelBuildercreateSOAPModelBuilder(Source source)Create an object model builder for SOAP that reads a message from the providedSource.SOAPModelBuildercreateSOAPModelBuilder(Source rootPart, OMAttachmentAccessor attachmentAccessor)SOAPModelBuildercreateSOAPModelBuilder(MultipartBody message)Create an MTOM aware object model builder.SOAPModelBuildercreateSOAPModelBuilder(InputSource is)Create an object model builder for SOAP that reads a message from the provided input source.OMXMLParserWrappercreateStAXOMBuilder(XMLStreamReader parser)Create an object model builder for plain XML that pulls events from a StAX stream reader.SOAPModelBuildercreateStAXSOAPModelBuilder(XMLStreamReader parser)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 Detail
-
createStAXOMBuilder
OMXMLParserWrapper createStAXOMBuilder(XMLStreamReader parser)
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
OMXMLParserWrapper createOMBuilder(StAXParserConfiguration configuration, InputSource is)
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
OMXMLParserWrapper createOMBuilder(Source source)
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
OMXMLParserWrapper createOMBuilder(Node node, boolean expandEntityReferences)
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_NODEorNode.ELEMENT_NODEexpandEntityReferences- Determines howEntityReferencenodes are handled:- If the parameter is
falsethen a singleOMEntityReferencewill be created for eachEntityReference. The child nodes ofEntityReferencenodes are not taken into account. - If the parameter is
truethen noOMEntityReferencenodes are created and the children ofEntityReferencenodes are converted and inserted into the Axiom tree.
- If the parameter is
- Returns:
- the builder
-
createOMBuilder
OMXMLParserWrapper createOMBuilder(SAXSource source, boolean expandEntityReferences)
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
falsethen a singleOMEntityReferencewill 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
truethen noOMEntityReferencenodes 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
OMXMLParserWrapper createOMBuilder(StAXParserConfiguration configuration, MultipartBody message)
Create an XOP aware object model builder.- Parameters:
configuration- the parser configuration to usemessage- the MIME message- Returns:
- the builder
-
createOMBuilder
OMXMLParserWrapper createOMBuilder(Source rootPart, OMAttachmentAccessor attachmentAccessor)
-
createStAXSOAPModelBuilder
SOAPModelBuilder createStAXSOAPModelBuilder(XMLStreamReader parser)
Create 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.- Parameters:
parser- the stream reader to read the SOAP message from- Returns:
- the builder
-
createSOAPModelBuilder
SOAPModelBuilder createSOAPModelBuilder(InputSource is)
Create 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.- Parameters:
is- the source of the SOAP message- Returns:
- the builder
-
createSOAPModelBuilder
SOAPModelBuilder createSOAPModelBuilder(Source source)
Create an object model builder for SOAP that reads a message from the providedSource. The implementation will select the appropriateSOAPFactorybased on the namespace URI of the SOAP envelope.- Parameters:
source- the source of the SOAP message- Returns:
- the builder
-
createSOAPModelBuilder
SOAPModelBuilder createSOAPModelBuilder(MultipartBody message)
Create an MTOM aware object model builder.- Parameters:
message- the MIME message- Returns:
- the builder
-
createSOAPModelBuilder
SOAPModelBuilder createSOAPModelBuilder(Source rootPart, OMAttachmentAccessor attachmentAccessor)
-
-