|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kxml.kdom.Node
org.kxml.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 | |
---|---|
protected int |
rootIndex
|
Fields inherited from class org.kxml.kdom.Node |
---|
children, types |
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 |
getName()
returns "#document" |
Element |
getRootElement()
returns the root element of this document. |
void |
parse(AbstractXmlParser 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 |
Methods inherited from class org.kxml.kdom.Node |
---|
addChild, createElement, getChild, getChildCount, getElement, getElement, getElement, getNamespace, getText, getText, getType, indexOf, indexOf, toString, write, writeChildren |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int rootIndex
Constructor Detail |
---|
public Document()
Method Detail |
---|
public java.lang.String getName()
getName
in class Node
public void addChild(int index, int type, java.lang.Object child)
addChild
in class Node
public void parse(AbstractXmlParser parser) throws java.io.IOException
parse
in interface XmlIO
parse
in class Node
java.io.IOException
public void removeChild(int index)
Node
removeChild
in class Node
public Element getRootElement()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |