|
||||||||||
| 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 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 java.lang.String |
xmlEncoding
|
protected java.lang.String |
xmlVersion
Field xmlVersion |
| Fields inherited from class org.apache.axiom.om.impl.llom.OMSerializableImpl |
|---|
builder, done, factory |
| Fields inherited from interface org.apache.axiom.om.OMDocument |
|---|
XML_10, XML_11 |
| Constructor Summary | |
|---|---|
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,
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. |
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()
|
OMElement |
getOMDocumentElement()
|
javax.xml.transform.sax.SAXSource |
getSAXSource(boolean cache)
|
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. |
java.lang.String |
isStandalone()
|
void |
setCharsetEncoding(java.lang.String charEncoding)
|
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)
|
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 |
|---|
build, close, getOMFactory, isComplete, 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 |
|---|
build, close, isComplete, serialize, serialize, serializeAndConsume |
| Methods inherited from interface org.apache.axiom.om.OMInformationItem |
|---|
getOMFactory |
| 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 |
|---|
build, close, isComplete, serialize, serialize, serializeAndConsume |
| Methods inherited from interface org.apache.axiom.om.OMInformationItem |
|---|
getOMFactory |
| Field Detail |
|---|
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 -
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 OMXMLParserWrapper getBuilder()
getBuilder in interface OMContainerpublic OMElement getOMDocumentElement()
getOMDocumentElement in interface OMDocumentpublic void setOMDocumentElement(OMElement documentElement)
setOMDocumentElement in interface OMDocumentpublic void setComplete(boolean state)
setComplete in interface OMContainerExsetComplete in class OMSerializableImplstate - public void buildNext()
buildNext in interface OMContainerpublic void addChild(OMNode child)
addChild in interface OMContainerchild - public 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 OMContainerEx
public OMElement getFirstChildWithName(javax.xml.namespace.QName elementQName)
throws OMException
getFirstChildWithName in interface OMContainerelementQName -
OMExceptionpublic void setFirstChild(OMNode firstChild)
setFirstChild in interface OMContainerExfirstChild - public void setLastChild(OMNode omNode)
setLastChild in interface OMContainerExomNode - 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 OMContainer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||