public class OMDocumentImpl extends OMSerializableImpl implements org.apache.axiom.om.OMDocument, org.apache.axiom.om.impl.OMContainerEx
| Modifier and Type | Field and Description |
|---|---|
protected String |
charSetEncoding
Field charSetEncoding Default : UTF-8
|
protected org.apache.axiom.om.OMElement |
documentElement
Field documentElement
|
protected org.apache.axiom.om.OMNode |
firstChild
Field firstChild
|
protected String |
isStandalone |
protected org.apache.axiom.om.OMNode |
lastChild
Field lastChild
|
protected String |
xmlVersion
Field xmlVersion
|
builder, done, factory| Constructor and Description |
|---|
OMDocumentImpl(org.apache.axiom.om.OMElement documentElement,
org.apache.axiom.om.OMXMLParserWrapper parserWrapper,
org.apache.axiom.om.OMFactory factory)
Create the
OMDoucment with the factory and set the given OMElement
as the document element |
OMDocumentImpl(org.apache.axiom.om.OMFactory factory)
Create a
OMDocument given the OMFactory |
OMDocumentImpl(org.apache.axiom.om.OMXMLParserWrapper parserWrapper,
org.apache.axiom.om.OMFactory factory)
Create the
OMDocument with the factory |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(org.apache.axiom.om.OMNode child)
Adds child to the element.
|
void |
buildNext()
Forces the parser to proceed, if parser has not yet finished with the XML input.
|
org.apache.axiom.om.OMXMLParserWrapper |
getBuilder() |
String |
getCharsetEncoding()
Returns the character set encoding scheme to be used.
|
Iterator |
getChildren()
Returns a collection of this element.
|
Iterator |
getChildrenWithLocalName(String localName) |
Iterator |
getChildrenWithName(QName elementQName)
Searches for children with a given QName and returns an iterator to traverse through the
OMNodes.
|
Iterator |
getChildrenWithNamespaceURI(String uri) |
org.apache.axiom.om.OMElement |
getFirstChildWithName(QName elementQName)
Method getFirstChildWithName.
|
org.apache.axiom.om.OMNode |
getFirstOMChild()
Method getFirstOMChild.
|
org.apache.axiom.om.OMNode |
getFirstOMChildIfAvailable() |
org.apache.axiom.om.OMElement |
getOMDocumentElement()
Method getDocumentElement.
|
XMLStreamReader |
getXMLStreamReader() |
XMLStreamReader |
getXMLStreamReader(boolean cache) |
XMLStreamReader |
getXMLStreamReaderWithoutCaching() |
String |
getXMLVersion() |
void |
internalSerialize(XMLStreamWriter writer)
Serializes the document with cache.
|
void |
internalSerialize(XMLStreamWriter writer,
boolean cache)
Serializes the node.
|
protected void |
internalSerialize(XMLStreamWriter writer,
boolean cache,
boolean includeXMLDeclaration) |
void |
internalSerializeAndConsume(XMLStreamWriter writer)
Serializes the document with the XML declaration.
|
String |
isStandalone() |
void |
setCharsetEncoding(String charEncoding)
Sets the character set encoding scheme.
|
void |
setComplete(boolean state)
Method setComplete.
|
void |
setFirstChild(org.apache.axiom.om.OMNode firstChild)
Method setFirstChild.
|
void |
setLastChild(org.apache.axiom.om.OMNode omNode)
Forcefully set the last child
|
void |
setOMDocumentElement(org.apache.axiom.om.OMElement documentElement)
Method setDocumentElement.
|
void |
setStandalone(String isStandalone) |
void |
setXMLVersion(String xmlVersion) |
build, close, getOMFactory, isComplete, serialize, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsumeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected org.apache.axiom.om.OMElement documentElement
protected org.apache.axiom.om.OMNode firstChild
protected org.apache.axiom.om.OMNode lastChild
protected String charSetEncoding
protected String xmlVersion
protected String isStandalone
public OMDocumentImpl(org.apache.axiom.om.OMFactory factory)
OMDocument given the OMFactoryfactory - The OMFactory that created this instacepublic OMDocumentImpl(org.apache.axiom.om.OMXMLParserWrapper parserWrapper,
org.apache.axiom.om.OMFactory factory)
OMDocument with the factoryparserWrapper - factory - public OMDocumentImpl(org.apache.axiom.om.OMElement documentElement,
org.apache.axiom.om.OMXMLParserWrapper parserWrapper,
org.apache.axiom.om.OMFactory factory)
OMDoucment with the factory and set the given OMElement
as the document elementdocumentElement - parserWrapper - factory - public org.apache.axiom.om.OMXMLParserWrapper getBuilder()
getBuilder in interface org.apache.axiom.om.OMContainerpublic org.apache.axiom.om.OMElement getOMDocumentElement()
getOMDocumentElement in interface org.apache.axiom.om.OMDocumentpublic void setOMDocumentElement(org.apache.axiom.om.OMElement documentElement)
setOMDocumentElement in interface org.apache.axiom.om.OMDocumentdocumentElement - public void setComplete(boolean state)
setComplete in interface org.apache.axiom.om.impl.OMContainerExsetComplete in class OMSerializableImplstate - public void buildNext()
buildNext in interface org.apache.axiom.om.OMContainerpublic void addChild(org.apache.axiom.om.OMNode child)
addChild in interface org.apache.axiom.om.OMContainerchild - public Iterator getChildren()
getChildren in interface org.apache.axiom.om.OMContainerpublic Iterator getChildrenWithName(QName elementQName)
getChildrenWithName in interface org.apache.axiom.om.OMContainerelementQName - org.apache.axiom.om.OMExceptionpublic Iterator getChildrenWithLocalName(String localName)
getChildrenWithLocalName in interface org.apache.axiom.om.OMContainerpublic Iterator getChildrenWithNamespaceURI(String uri)
getChildrenWithNamespaceURI in interface org.apache.axiom.om.OMContainerpublic org.apache.axiom.om.OMNode getFirstOMChild()
getFirstOMChild in interface org.apache.axiom.om.OMContainerpublic org.apache.axiom.om.OMNode getFirstOMChildIfAvailable()
getFirstOMChildIfAvailable in interface org.apache.axiom.om.impl.OMContainerExpublic org.apache.axiom.om.OMElement getFirstChildWithName(QName elementQName) throws org.apache.axiom.om.OMException
getFirstChildWithName in interface org.apache.axiom.om.OMContainerelementQName - org.apache.axiom.om.OMExceptionpublic void setFirstChild(org.apache.axiom.om.OMNode firstChild)
setFirstChild in interface org.apache.axiom.om.impl.OMContainerExfirstChild - public void setLastChild(org.apache.axiom.om.OMNode omNode)
setLastChild in interface org.apache.axiom.om.impl.OMContainerExomNode - public String getCharsetEncoding()
getCharsetEncoding in interface org.apache.axiom.om.OMDocumentpublic void setCharsetEncoding(String charEncoding)
setCharsetEncoding in interface org.apache.axiom.om.OMDocumentcharEncoding - public String isStandalone()
isStandalone in interface org.apache.axiom.om.OMDocumentpublic void setStandalone(String isStandalone)
setStandalone in interface org.apache.axiom.om.OMDocumentpublic String getXMLVersion()
getXMLVersion in interface org.apache.axiom.om.OMDocumentpublic void setXMLVersion(String xmlVersion)
setXMLVersion in interface org.apache.axiom.om.OMDocumentpublic void internalSerialize(XMLStreamWriter writer, boolean cache) throws XMLStreamException
OMSerializableImplinternalSerialize in class OMSerializableImplXMLStreamExceptionprotected void internalSerialize(XMLStreamWriter writer, boolean cache, boolean includeXMLDeclaration) throws XMLStreamException
XMLStreamExceptionpublic void internalSerializeAndConsume(XMLStreamWriter writer) throws XMLStreamException
XMLStreamExceptionpublic void internalSerialize(XMLStreamWriter writer) throws XMLStreamException
XMLStreamExceptionpublic XMLStreamReader getXMLStreamReader()
getXMLStreamReader in interface org.apache.axiom.om.OMContainerpublic XMLStreamReader getXMLStreamReaderWithoutCaching()
getXMLStreamReaderWithoutCaching in interface org.apache.axiom.om.OMContainerpublic XMLStreamReader getXMLStreamReader(boolean cache)
getXMLStreamReader in interface org.apache.axiom.om.OMContainerCopyright © 2004–2021 The Apache Software Foundation. All rights reserved.