|
||||||||||
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
public class OMDocumentImpl
Class OMDocumentImpl
Field Summary | |
---|---|
protected java.lang.String |
charSetEncoding
Field charSetEncoding Default : UTF-8 |
protected OMElement |
documentElement
Field documentElement |
protected boolean |
done
Field done |
protected OMFactory |
factory
|
protected OMNode |
firstChild
Field firstChild |
protected java.lang.String |
isStandalone
|
protected OMNode |
lastChild
Field lastChild |
protected 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(OMElement documentElement,
OMXMLParserWrapper parserWrapper)
|
|
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)
|
|
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)
Returns an iterator for child nodes matching the local name. |
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)
Returns an iterator for child nodes matching the namespace uri. |
OMElement |
getFirstChildWithName(javax.xml.namespace.QName elementQName)
Method getFirstChildWithName. |
OMNode |
getFirstOMChild()
Method getFirstOMChild. |
OMElement |
getOMDocumentElement()
Method getDocumentElement. |
OMFactory |
getOMFactory()
Returns the OMFactory that created this object |
java.lang.String |
getXMLVersion()
Returns the XML version. |
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 writer,
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()
XML standalone value. |
void |
serialize(java.io.OutputStream output)
Serializes the document directly to the output stream with caching enabled. |
void |
serialize(java.io.OutputStream output,
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,
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(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)
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 java.lang.String charSetEncoding
protected java.lang.String xmlVersion
protected java.lang.String isStandalone
protected OMFactory factory
Constructor Detail |
---|
public OMDocumentImpl()
public OMDocumentImpl(OMElement documentElement, OMXMLParserWrapper parserWrapper)
documentElement
- parserWrapper
- public OMDocumentImpl(OMXMLParserWrapper parserWrapper)
parserWrapper
- public OMDocumentImpl(OMFactory factory)
OMDocument
given the OMFactory
factory
- The OMFactory
that created this instacepublic 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 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 java.util.Iterator getChildren()
getChildren
in interface OMContainer
OMContainer.getFirstChildWithName(javax.xml.namespace.QName)
,
OMContainer.getChildrenWithName(javax.xml.namespace.QName)
public java.util.Iterator getChildrenWithName(javax.xml.namespace.QName elementQName)
getChildrenWithName
in interface OMContainer
elementQName
-
OMException
public java.util.Iterator getChildrenWithLocalName(java.lang.String localName)
OMContainer
getChildrenWithLocalName
in interface OMContainer
OMElement
items that match the given localNamepublic java.util.Iterator getChildrenWithNamespaceURI(java.lang.String uri)
OMContainer
getChildrenWithNamespaceURI
in interface OMContainer
OMElement
items that match the given uripublic OMNode getFirstOMChild()
getFirstOMChild
in interface OMContainer
public OMElement getFirstChildWithName(javax.xml.namespace.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 void setLastChild(OMNode omNode)
setLastChild
in interface OMContainerEx
omNode
- 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
XML 1.0
,
XML 1.1
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 OMDocument
output
-
javax.xml.stream.XMLStreamException
public void serialize(java.io.OutputStream output) throws javax.xml.stream.XMLStreamException
serialize
in interface OMDocument
output
-
javax.xml.stream.XMLStreamException
public void serializeAndConsume(java.io.OutputStream output, OMOutputFormat format) throws javax.xml.stream.XMLStreamException
serializeAndConsume
in interface OMDocument
output
- format
-
javax.xml.stream.XMLStreamException
public void serialize(java.io.OutputStream output, OMOutputFormat format) throws javax.xml.stream.XMLStreamException
serialize
in interface 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 writer, boolean cache, boolean includeXMLDeclaration) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public OMFactory getOMFactory()
OMDocument
getOMFactory
in interface OMDocument
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |