|
|||||||||||
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 java.lang.String |
charSetEncoding
Field charSetEncoding Dafult : UTF-8 |
protected boolean |
done
Field done |
protected OMNode |
firstChild
Field firstChild |
protected java.lang.String |
isStandalone
|
protected OMNode |
lastChild
Field lastChild |
protected OMXMLParserWrapper |
parserWrapper
Field parserWrapper |
protected OMElement |
rootElement
Field rootElement |
protected java.lang.String |
xmlVersion
Field xmlVersion |
Fields inherited from interface org.apache.axis2.om.OMDocument |
XML_10, XML_11 |
Constructor Summary | |
OMDocumentImpl()
Default constructor |
|
OMDocumentImpl(OMElement rootElement,
OMXMLParserWrapper parserWrapper)
|
|
OMDocumentImpl(OMXMLParserWrapper parserWrapper)
|
Method Summary | |
void |
addChild(OMNode child)
This will add child to the element. |
void |
buildNext()
This will force 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()
This returns a collection of this element. |
java.util.Iterator |
getChildrenWithName(javax.xml.namespace.QName elementQName)
This will search for children with a given QName and will return an iterator to traverse through the OMNodes. |
OMElement |
getDocumentElement()
Method getRootElement |
OMNode |
getFirstChild()
Method getFirstChild |
OMElement |
getFirstChildWithName(javax.xml.namespace.QName elementQName)
Method getFirstChildWithName |
java.lang.String |
getXMLVersion()
Returns the XML version |
boolean |
isComplete()
this will indicate whether parser has parsed this information item completely or not. |
java.lang.String |
isStandalone()
XML standalone value This will be yes, no or null (if not available) |
void |
serialize(OMOutputImpl omOutput)
Serialize the document with the XML declaration |
void |
serialize(OMOutputImpl omOutput,
boolean includeXMLDeclaration)
Serialize the docuement with/without the XML declaration |
protected void |
serialize(OMOutputImpl omOutput,
boolean cache,
boolean includeXMLDeclaration)
|
void |
serializeWithCache(OMOutputImpl omOutput)
Serialize the document with cache |
void |
serializeWithCache(OMOutputImpl omOutput,
boolean includeXMLDeclaration)
Serialize the document with cache |
void |
setCharsetEncoding(java.lang.String charEncoding)
Set the character set encoding scheme |
void |
setComplete(boolean state)
Method setComplete |
void |
setDocumentElement(OMElement rootElement)
Method setRootElement |
void |
setFirstChild(OMNode firstChild)
Method setFirstChild |
void |
setStandalone(java.lang.String isStandalone)
|
void |
setXMLVersion(java.lang.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 rootElement
protected OMNode firstChild
protected OMNode lastChild
protected boolean done
protected OMXMLParserWrapper parserWrapper
protected java.lang.String charSetEncoding
protected java.lang.String xmlVersion
protected java.lang.String isStandalone
Constructor Detail |
public OMDocumentImpl()
public OMDocumentImpl(OMElement rootElement, OMXMLParserWrapper parserWrapper)
rootElement
- parserWrapper
- public OMDocumentImpl(OMXMLParserWrapper parserWrapper)
parserWrapper
- Method Detail |
public OMElement getDocumentElement()
getDocumentElement
in interface OMDocument
public void setDocumentElement(OMElement rootElement)
setDocumentElement
in interface OMDocument
rootElement
- 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 java.util.Iterator getChildren()
getChildren
in interface OMContainer
public java.util.Iterator getChildrenWithName(javax.xml.namespace.QName elementQName) throws OMException
getChildrenWithName
in interface OMContainer
elementQName
-
OMException
OMException
public OMNode getFirstChild()
getFirstChild
in interface OMContainer
public OMElement getFirstChildWithName(javax.xml.namespace.QName elementQName) throws OMException
getFirstChildWithName
in interface OMContainer
elementQName
-
OMException
public void setFirstChild(OMNode firstChild)
setFirstChild
in interface OMContainerEx
firstChild
- public java.lang.String getCharsetEncoding()
getCharsetEncoding
in interface OMDocument
public void setCharsetEncoding(java.lang.String charEncoding)
setCharsetEncoding
in interface OMDocument
charEncoding
- public java.lang.String isStandalone()
OMDocument
isStandalone
in interface OMDocument
public void setStandalone(java.lang.String isStandalone)
setStandalone
in interface OMDocument
public java.lang.String getXMLVersion()
OMDocument
getXMLVersion
in interface OMDocument
public void setXMLVersion(java.lang.String xmlVersion)
OMDocument
setXMLVersion
in interface OMDocument
xmlVersion
- XML 1.0
,
XML 1.1
public void serialize(OMOutputImpl omOutput, boolean includeXMLDeclaration) throws XMLStreamException
serialize
in interface OMDocument
omOutput
- includeXMLDeclaration
- Whether to include the XML declaration or not
XMLStreamException
public void serialize(OMOutputImpl omOutput) throws XMLStreamException
serialize
in interface OMDocument
omOutput
-
XMLStreamException
OMDocument.serialize(org.apache.axis2.om.impl.OMOutputImpl,
boolean)
public void serializeWithCache(OMOutputImpl omOutput) throws XMLStreamException
serializeWithCache
in interface OMDocument
omOutput
-
XMLStreamException
OMDocument.serializeWithCache(org.apache.axis2.om.impl.OMOutputImpl)
public void serializeWithCache(OMOutputImpl omOutput, boolean includeXMLDeclaration) throws XMLStreamException
serializeWithCache
in interface OMDocument
omOutput
- includeXMLDeclaration
-
XMLStreamException
OMDocument.serializeWithCache(org.apache.axis2.om.impl.OMOutputImpl, boolean)
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 |