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