|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axiom.om.impl.llom.OMDocumentImpl
Class OMDocumentImpl
Field Summary | |
protected java.lang.String |
charSetEncoding
Field charSetEncoding Default : UTF-8 |
protected org.apache.axiom.om.OMElement |
documentElement
Field documentElement |
protected boolean |
done
Field done |
protected org.apache.axiom.om.OMFactory |
factory
|
protected org.apache.axiom.om.OMNode |
firstChild
Field firstChild |
protected java.lang.String |
isStandalone
|
protected org.apache.axiom.om.OMNode |
lastChild
Field lastChild |
protected org.apache.axiom.om.OMXMLParserWrapper |
parserWrapper
Field parserWrapper |
protected java.lang.String |
xmlVersion
Field xmlVersion |
Fields inherited from interface org.apache.axiom.om.OMDocument |
XML_10, XML_11 |
Constructor Summary | |
OMDocumentImpl()
Default constructor |
|
OMDocumentImpl(org.apache.axiom.om.OMElement documentElement,
org.apache.axiom.om.OMXMLParserWrapper parserWrapper)
|
|
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)
|
|
OMDocumentImpl(org.apache.axiom.om.OMXMLParserWrapper parserWrapper,
org.apache.axiom.om.OMFactory factory)
Create the OMDocument with the factory |
Method Summary | |
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. |
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 |
getChildrenWithName(javax.xml.namespace.QName elementQName)
Searches for children with a given QName and returns an iterator to traverse through the OMNodes. |
org.apache.axiom.om.OMElement |
getFirstChildWithName(javax.xml.namespace.QName elementQName)
Method getFirstChildWithName. |
org.apache.axiom.om.OMNode |
getFirstOMChild()
Method getFirstOMChild. |
org.apache.axiom.om.OMElement |
getOMDocumentElement()
Method getDocumentElement. |
org.apache.axiom.om.OMFactory |
getOMFactory()
|
java.lang.String |
getXMLVersion()
|
void |
internalSerialize(javax.xml.stream.XMLStreamWriter writer)
Serializes the document with cache. |
void |
internalSerialize(javax.xml.stream.XMLStreamWriter writer,
boolean includeXMLDeclaration)
Serializes the document with cache. |
protected void |
internalSerialize(javax.xml.stream.XMLStreamWriter writer2,
boolean cache,
boolean includeXMLDeclaration)
|
void |
internalSerializeAndConsume(javax.xml.stream.XMLStreamWriter writer)
Serializes the document with the XML declaration. |
void |
internalSerializeAndConsume(javax.xml.stream.XMLStreamWriter writer,
boolean includeXMLDeclaration)
Serialize the docuement with/without the XML declaration |
boolean |
isComplete()
Indicates whether parser has parsed this information item completely or not. |
java.lang.String |
isStandalone()
|
void |
serialize(java.io.OutputStream output)
Serializes the document directly to the output stream with caching enabled. |
void |
serialize(java.io.OutputStream output,
org.apache.axiom.om.OMOutputFormat format)
Serializes the document directly to the output stream with caching enabled. |
void |
serializeAndConsume(java.io.OutputStream output)
Serializes the document directly to the output stream with caching disabled. |
void |
serializeAndConsume(java.io.OutputStream output,
org.apache.axiom.om.OMOutputFormat format)
Serializes the document directly to the output stream with caching disabled. |
void |
setCharsetEncoding(java.lang.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 |
setOMDocumentElement(org.apache.axiom.om.OMElement documentElement)
Method setDocumentElement. |
void |
setStandalone(java.lang.String isStandalone)
|
void |
setXMLVersion(java.lang.String xmlVersion)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected org.apache.axiom.om.OMElement documentElement
protected org.apache.axiom.om.OMNode firstChild
protected org.apache.axiom.om.OMNode lastChild
protected boolean done
protected org.apache.axiom.om.OMXMLParserWrapper parserWrapper
protected java.lang.String charSetEncoding
protected java.lang.String xmlVersion
protected java.lang.String isStandalone
protected org.apache.axiom.om.OMFactory factory
Constructor Detail |
public OMDocumentImpl()
public OMDocumentImpl(org.apache.axiom.om.OMElement documentElement, org.apache.axiom.om.OMXMLParserWrapper parserWrapper)
documentElement
- parserWrapper
- public OMDocumentImpl(org.apache.axiom.om.OMXMLParserWrapper parserWrapper)
parserWrapper
- public OMDocumentImpl(org.apache.axiom.om.OMFactory factory)
OMDocument
given the OMFactory
factory
- The OMFactory
that created this instacepublic OMDocumentImpl(org.apache.axiom.om.OMXMLParserWrapper parserWrapper, org.apache.axiom.om.OMFactory factory)
OMDocument
with the factory
parserWrapper
- 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 element
documentElement
- parserWrapper
- factory
- Method Detail |
public org.apache.axiom.om.OMElement getOMDocumentElement()
getOMDocumentElement
in interface org.apache.axiom.om.OMDocument
public void setOMDocumentElement(org.apache.axiom.om.OMElement documentElement)
setOMDocumentElement
in interface org.apache.axiom.om.OMDocument
documentElement
- public boolean isComplete()
isComplete
in interface org.apache.axiom.om.OMContainer
public void setComplete(boolean state)
setComplete
in interface org.apache.axiom.om.impl.OMContainerEx
state
- public void buildNext()
buildNext
in interface org.apache.axiom.om.OMContainer
public void addChild(org.apache.axiom.om.OMNode child)
addChild
in interface org.apache.axiom.om.OMContainer
child
- public java.util.Iterator getChildren()
getChildren
in interface org.apache.axiom.om.OMContainer
public java.util.Iterator getChildrenWithName(javax.xml.namespace.QName elementQName)
getChildrenWithName
in interface org.apache.axiom.om.OMContainer
elementQName
-
org.apache.axiom.om.OMException
public org.apache.axiom.om.OMNode getFirstOMChild()
getFirstOMChild
in interface org.apache.axiom.om.OMContainer
public org.apache.axiom.om.OMElement getFirstChildWithName(javax.xml.namespace.QName elementQName) throws org.apache.axiom.om.OMException
getFirstChildWithName
in interface org.apache.axiom.om.OMContainer
elementQName
-
org.apache.axiom.om.OMException
public void setFirstChild(org.apache.axiom.om.OMNode firstChild)
setFirstChild
in interface org.apache.axiom.om.impl.OMContainerEx
firstChild
- public java.lang.String getCharsetEncoding()
getCharsetEncoding
in interface org.apache.axiom.om.OMDocument
public void setCharsetEncoding(java.lang.String charEncoding)
setCharsetEncoding
in interface org.apache.axiom.om.OMDocument
charEncoding
- public java.lang.String isStandalone()
isStandalone
in interface org.apache.axiom.om.OMDocument
public void setStandalone(java.lang.String isStandalone)
setStandalone
in interface org.apache.axiom.om.OMDocument
public java.lang.String getXMLVersion()
getXMLVersion
in interface org.apache.axiom.om.OMDocument
public void setXMLVersion(java.lang.String xmlVersion)
setXMLVersion
in interface org.apache.axiom.om.OMDocument
public void internalSerializeAndConsume(javax.xml.stream.XMLStreamWriter writer, 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
public void serializeAndConsume(java.io.OutputStream output) throws javax.xml.stream.XMLStreamException
serializeAndConsume
in interface org.apache.axiom.om.OMDocument
output
-
javax.xml.stream.XMLStreamException
public void serialize(java.io.OutputStream output) throws javax.xml.stream.XMLStreamException
serialize
in interface org.apache.axiom.om.OMDocument
output
-
javax.xml.stream.XMLStreamException
public void serializeAndConsume(java.io.OutputStream output, org.apache.axiom.om.OMOutputFormat format) throws javax.xml.stream.XMLStreamException
serializeAndConsume
in interface org.apache.axiom.om.OMDocument
output
- format
-
javax.xml.stream.XMLStreamException
public void serialize(java.io.OutputStream output, org.apache.axiom.om.OMOutputFormat format) throws javax.xml.stream.XMLStreamException
serialize
in interface org.apache.axiom.om.OMDocument
output
- format
-
javax.xml.stream.XMLStreamException
public void internalSerialize(javax.xml.stream.XMLStreamWriter writer, boolean includeXMLDeclaration) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
protected void internalSerialize(javax.xml.stream.XMLStreamWriter writer2, boolean cache, boolean includeXMLDeclaration) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public org.apache.axiom.om.OMFactory getOMFactory()
getOMFactory
in interface org.apache.axiom.om.OMDocument
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |