|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kxml2.kdom.Node
org.kxml2.kdom.Document
public class Document
The document consists of some legacy events and a single root element. This class basically adds some consistency checks to Node.
Field Summary |
---|
Fields inherited from class org.kxml2.kdom.Node |
---|
CDSECT, COMMENT, DOCDECL, DOCUMENT, ELEMENT, ENTITY_REF, IGNORABLE_WHITESPACE, PROCESSING_INSTRUCTION, TEXT |
Constructor Summary | |
---|---|
Document()
|
Method Summary | |
---|---|
void |
addChild(int index,
int type,
java.lang.Object child)
Adds a child at the given index position. |
java.lang.String |
getEncoding()
returns "#document" |
java.lang.String |
getName()
|
Element |
getRootElement()
returns the root element of this document. |
java.lang.Boolean |
getStandalone()
|
void |
parse(org.xmlpull.v1.XmlPullParser parser)
reads the document and checks if the last event is END_DOCUMENT. |
void |
removeChild(int index)
Removes the child object at the given index |
void |
setEncoding(java.lang.String enc)
|
void |
setStandalone(java.lang.Boolean standalone)
|
void |
write(org.xmlpull.v1.XmlSerializer writer)
Writes this node to the given XmlWriter. |
Methods inherited from class org.kxml2.kdom.Node |
---|
addChild, createElement, getChild, getChildCount, getElement, getElement, getText, getType, indexOf, isText, writeChildren |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Document()
Method Detail |
---|
public java.lang.String getEncoding()
public void setEncoding(java.lang.String enc)
public void setStandalone(java.lang.Boolean standalone)
public java.lang.Boolean getStandalone()
public java.lang.String getName()
public void addChild(int index, int type, java.lang.Object child)
addChild
in class Node
public void parse(org.xmlpull.v1.XmlPullParser parser) throws java.io.IOException, org.xmlpull.v1.XmlPullParserException
parse
in class Node
java.io.IOException
org.xmlpull.v1.XmlPullParserException
public void removeChild(int index)
Node
removeChild
in class Node
public Element getRootElement()
public void write(org.xmlpull.v1.XmlSerializer writer) throws java.io.IOException
write
in class Node
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |