|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.axiom.om.impl.llom.OMSerializableImpl
org.apache.axiom.om.impl.llom.OMDocumentImpl
public class OMDocumentImpl
Class OMDocumentImpl
| Field Summary | |
|---|---|
protected java.lang.String |
charSetEncoding
Field charSetEncoding Default : UTF-8 |
protected OMElement |
documentElement
Field documentElement |
protected OMNode |
firstChild
Field firstChild |
protected java.lang.String |
isStandalone
|
protected OMNode |
lastChild
Field lastChild |
protected java.lang.String |
xmlVersion
Field xmlVersion |
| Fields inherited from class org.apache.axiom.om.impl.llom.OMSerializableImpl |
|---|
builder, done, factory |
| Fields inherited from interface org.apache.axiom.om.OMDocument |
|---|
XML_10, XML_11 |
| Constructor Summary | |
|---|---|
OMDocumentImpl(OMElement documentElement,
OMXMLParserWrapper parserWrapper,
OMFactory factory)
Create the OMDoucment with the factory and set the given OMElement
as the document element |
|
OMDocumentImpl(OMFactory factory)
Create a OMDocument given the OMFactory |
|
OMDocumentImpl(OMXMLParserWrapper parserWrapper,
OMFactory factory)
Create the OMDocument with the factory |
|
| Method Summary | |
|---|---|
void |
addChild(OMNode child)
Adds child to the element. |
void |
buildNext()
Forces the parser to proceed, if parser has not yet finished with the XML input. |
java.lang.String |
getCharsetEncoding()
Returns the character set encoding scheme to be used. |
java.util.Iterator |
getChildren()
Returns a collection of this element. |
java.util.Iterator |
getChildrenWithLocalName(java.lang.String localName)
|
java.util.Iterator |
getChildrenWithName(javax.xml.namespace.QName elementQName)
Searches for children with a given QName and returns an iterator to traverse through the OMNodes. |
java.util.Iterator |
getChildrenWithNamespaceURI(java.lang.String uri)
|
OMElement |
getFirstChildWithName(javax.xml.namespace.QName elementQName)
Method getFirstChildWithName. |
OMNode |
getFirstOMChild()
Method getFirstOMChild. |
OMNode |
getFirstOMChildIfAvailable()
|
OMElement |
getOMDocumentElement()
Method getDocumentElement. |
java.lang.String |
getXMLVersion()
|
void |
internalSerialize(javax.xml.stream.XMLStreamWriter writer)
Serializes the document with cache. |
void |
internalSerialize(javax.xml.stream.XMLStreamWriter writer,
boolean cache)
Serializes the node. |
protected void |
internalSerialize(javax.xml.stream.XMLStreamWriter writer,
boolean cache,
boolean includeXMLDeclaration)
|
void |
internalSerializeAndConsume(javax.xml.stream.XMLStreamWriter writer)
Serializes the document with the XML declaration. |
java.lang.String |
isStandalone()
|
void |
setCharsetEncoding(java.lang.String charEncoding)
Sets the character set encoding scheme. |
void |
setComplete(boolean state)
Method setComplete. |
void |
setFirstChild(OMNode firstChild)
Method setFirstChild. |
void |
setLastChild(OMNode omNode)
Forcefully set the last child |
void |
setOMDocumentElement(OMElement documentElement)
Method setDocumentElement. |
void |
setStandalone(java.lang.String isStandalone)
|
void |
setXMLVersion(java.lang.String xmlVersion)
|
| Methods inherited from class org.apache.axiom.om.impl.llom.OMSerializableImpl |
|---|
build, close, getOMFactory, isComplete, serialize, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume |
| 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.OMContainer |
|---|
serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume |
| Methods inherited from interface org.apache.axiom.om.OMSerializable |
|---|
build, close, getOMFactory, isComplete, serialize, serialize, serializeAndConsume |
| Methods inherited from interface org.apache.axiom.om.OMContainer |
|---|
serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume |
| Methods inherited from interface org.apache.axiom.om.OMSerializable |
|---|
build, close, getOMFactory, isComplete, serialize, serialize, serializeAndConsume |
| Field Detail |
|---|
protected OMElement documentElement
protected OMNode firstChild
protected OMNode lastChild
protected java.lang.String charSetEncoding
protected java.lang.String xmlVersion
protected java.lang.String isStandalone
| Constructor Detail |
|---|
public OMDocumentImpl(OMFactory factory)
OMDocument given the OMFactory
factory - The OMFactory that created this instace
public OMDocumentImpl(OMXMLParserWrapper parserWrapper,
OMFactory factory)
OMDocument with the factory
parserWrapper - factory -
public OMDocumentImpl(OMElement documentElement,
OMXMLParserWrapper parserWrapper,
OMFactory factory)
OMDoucment with the factory and set the given OMElement
as the document element
documentElement - parserWrapper - factory - | Method Detail |
|---|
public OMElement getOMDocumentElement()
getOMDocumentElement in interface OMDocumentpublic void setOMDocumentElement(OMElement documentElement)
setOMDocumentElement in interface OMDocumentdocumentElement - public void setComplete(boolean state)
setComplete in interface OMContainerExsetComplete in class OMSerializableImplstate - public void buildNext()
buildNext in interface OMContainerpublic void addChild(OMNode child)
addChild in interface OMContainerchild - public java.util.Iterator getChildren()
getChildren in interface OMContainerpublic java.util.Iterator getChildrenWithName(javax.xml.namespace.QName elementQName)
getChildrenWithName in interface OMContainerelementQName -
OMExceptionpublic java.util.Iterator getChildrenWithLocalName(java.lang.String localName)
getChildrenWithLocalName in interface OMContainerpublic java.util.Iterator getChildrenWithNamespaceURI(java.lang.String uri)
getChildrenWithNamespaceURI in interface OMContainerpublic OMNode getFirstOMChild()
getFirstOMChild in interface OMContainerpublic OMNode getFirstOMChildIfAvailable()
getFirstOMChildIfAvailable in interface OMContainerEx
public OMElement getFirstChildWithName(javax.xml.namespace.QName elementQName)
throws OMException
getFirstChildWithName in interface OMContainerelementQName -
OMExceptionpublic void setFirstChild(OMNode firstChild)
setFirstChild in interface OMContainerExfirstChild - public void setLastChild(OMNode omNode)
setLastChild in interface OMContainerExomNode - public java.lang.String getCharsetEncoding()
getCharsetEncoding in interface OMDocumentpublic void setCharsetEncoding(java.lang.String charEncoding)
setCharsetEncoding in interface OMDocumentcharEncoding - public java.lang.String isStandalone()
isStandalone in interface OMDocumentpublic void setStandalone(java.lang.String isStandalone)
setStandalone in interface OMDocumentpublic java.lang.String getXMLVersion()
getXMLVersion in interface OMDocumentpublic void setXMLVersion(java.lang.String xmlVersion)
setXMLVersion in interface OMDocument
public void internalSerialize(javax.xml.stream.XMLStreamWriter writer,
boolean cache)
throws javax.xml.stream.XMLStreamException
OMSerializableImpl
internalSerialize in class OMSerializableImpljavax.xml.stream.XMLStreamException
protected void internalSerialize(javax.xml.stream.XMLStreamWriter writer,
boolean cache,
boolean includeXMLDeclaration)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public void internalSerializeAndConsume(javax.xml.stream.XMLStreamWriter writer)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public void internalSerialize(javax.xml.stream.XMLStreamWriter writer)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||