|
||||||||||
| 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 OMXMLParserWrapper |
builder
|
protected java.lang.String |
charSetEncoding
Field charSetEncoding Default : UTF-8 |
protected OMNode |
firstChild
Field firstChild |
protected java.lang.String |
isStandalone
|
protected OMNode |
lastChild
Field lastChild |
protected int |
state
|
protected java.lang.String |
xmlEncoding
|
protected java.lang.String |
xmlVersion
Field xmlVersion |
| Fields inherited from class org.apache.axiom.om.impl.llom.OMSerializableImpl |
|---|
factory |
| Fields inherited from interface org.apache.axiom.om.OMDocument |
|---|
XML_10, XML_11 |
| Fields inherited from interface org.apache.axiom.om.impl.common.IParentNode |
|---|
COMPLETE, DISCARDED, INCOMPLETE |
| Constructor Summary | |
|---|---|
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)
|
void |
addChild(OMNode omNode,
boolean fromBuilder)
|
void |
build()
|
OMInformationItem |
clone(OMCloneOptions options)
|
protected OMDocument |
createClone(OMCloneOptions options)
|
void |
discarded()
|
OMXMLParserWrapper |
getBuilder()
|
java.lang.String |
getCharsetEncoding()
|
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)
|
java.util.Iterator |
getDescendants(boolean includeSelf)
|
OMElement |
getFirstChildWithName(javax.xml.namespace.QName elementQName)
Method getFirstChildWithName. |
OMNode |
getFirstOMChild()
Method getFirstOMChild. |
OMNode |
getFirstOMChildIfAvailable()
|
OMNode |
getLastKnownOMChild()
|
OMElement |
getOMDocumentElement()
|
javax.xml.transform.sax.SAXSource |
getSAXSource(boolean cache)
|
int |
getState()
|
java.lang.String |
getXMLEncoding()
|
javax.xml.stream.XMLStreamReader |
getXMLStreamReader()
|
javax.xml.stream.XMLStreamReader |
getXMLStreamReader(boolean cache)
|
javax.xml.stream.XMLStreamReader |
getXMLStreamReader(boolean cache,
OMXMLStreamReaderConfiguration configuration)
|
javax.xml.stream.XMLStreamReader |
getXMLStreamReaderWithoutCaching()
|
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. |
boolean |
isComplete()
|
java.lang.String |
isStandalone()
|
void |
removeChildren()
|
void |
setCharsetEncoding(java.lang.String charEncoding)
|
void |
setComplete(boolean complete)
Method setComplete. |
void |
setFirstChild(OMNode firstChild)
Method setFirstChild. |
void |
setLastChild(OMNode omNode)
Forcefully set the last child |
void |
setOMDocumentElement(OMElement documentElement)
|
void |
setStandalone(java.lang.String isStandalone)
|
void |
setXMLEncoding(java.lang.String encoding)
|
void |
setXMLVersion(java.lang.String xmlVersion)
|
| Methods inherited from class org.apache.axiom.om.impl.llom.OMSerializableImpl |
|---|
close, getOMFactory, 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 |
|---|
close, serialize, serialize, serializeAndConsume |
| Methods inherited from interface org.apache.axiom.om.OMInformationItem |
|---|
getOMFactory |
| Field Detail |
|---|
protected OMXMLParserWrapper builder
protected int state
protected OMNode firstChild
protected OMNode lastChild
protected java.lang.String charSetEncoding
protected java.lang.String xmlVersion
protected java.lang.String xmlEncoding
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 - | Method Detail |
|---|
public OMXMLParserWrapper getBuilder()
getBuilder in interface IParentNodegetBuilder in interface OMContainergetBuilder in class OMSerializableImplpublic OMElement getOMDocumentElement()
getOMDocumentElement in interface OMDocumentpublic void setOMDocumentElement(OMElement documentElement)
setOMDocumentElement in interface OMDocumentpublic int getState()
getState in interface IParentNodepublic boolean isComplete()
isComplete in interface IParentNodeisComplete in interface OMSerializablepublic void setComplete(boolean complete)
setComplete in interface OMContainerExsetComplete in class OMSerializableImplstate - public void discarded()
discarded in interface OMContainerExpublic void addChild(OMNode child)
addChild in interface OMContainer
public void addChild(OMNode omNode,
boolean fromBuilder)
addChild in interface OMContainerExpublic java.util.Iterator getChildren()
getChildren in interface OMContainerpublic java.util.Iterator getDescendants(boolean includeSelf)
getDescendants 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 IParentNodepublic OMNode getLastKnownOMChild()
getLastKnownOMChild in interface IContainer
public OMElement getFirstChildWithName(javax.xml.namespace.QName elementQName)
throws OMException
getFirstChildWithName in interface OMContainerelementQName -
OMExceptionpublic void setFirstChild(OMNode firstChild)
setFirstChild in interface IContainerfirstChild - public void setLastChild(OMNode omNode)
setLastChild in interface IContaineromNode - public java.lang.String getCharsetEncoding()
getCharsetEncoding in interface OMDocumentpublic void setCharsetEncoding(java.lang.String charEncoding)
setCharsetEncoding in interface OMDocumentpublic 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 OMDocumentpublic java.lang.String getXMLEncoding()
getXMLEncoding in interface OMDocumentpublic void setXMLEncoding(java.lang.String encoding)
setXMLEncoding 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.XMLStreamExceptionpublic javax.xml.stream.XMLStreamReader getXMLStreamReader()
getXMLStreamReader in interface OMContainerpublic javax.xml.stream.XMLStreamReader getXMLStreamReaderWithoutCaching()
getXMLStreamReaderWithoutCaching in interface OMContainerpublic javax.xml.stream.XMLStreamReader getXMLStreamReader(boolean cache)
getXMLStreamReader in interface OMContainer
public javax.xml.stream.XMLStreamReader getXMLStreamReader(boolean cache,
OMXMLStreamReaderConfiguration configuration)
getXMLStreamReader in interface OMContainerpublic javax.xml.transform.sax.SAXSource getSAXSource(boolean cache)
getSAXSource in interface OMContainerpublic void build()
build in interface OMSerializablepublic void removeChildren()
removeChildren in interface OMContainerpublic OMInformationItem clone(OMCloneOptions options)
clone in interface OMInformationItemprotected OMDocument createClone(OMCloneOptions options)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||