|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.pdark.decentxml.BasicNode
public class BasicNode
The parent class for all nodes in the XML document.
| Constructor Summary | |
|---|---|
BasicNode(Token token)
|
|
BasicNode(XMLTokenizer.Type type,
java.lang.String text)
|
|
| Method Summary | |
|---|---|
BasicNode |
copy()
Simulate clone() |
BasicNode |
copy(Node orig)
Copy all data from orig into this |
BasicNode |
createClone()
Simulate clone() |
int |
getEndOffset()
|
int |
getStartOffset()
The start offset of the node in the XML source or -1 |
Token |
getToken()
Get the token (mainly for error handling) |
XMLTokenizer.Type |
getType()
Get the node type |
java.lang.String |
getValue()
|
protected void |
setType(XMLTokenizer.Type type)
|
void |
setValue(java.lang.String value)
|
java.lang.String |
toString()
|
java.lang.String |
toXML()
Convert this node to a string. |
static java.lang.String |
toXML(Node n)
Helper method for String toXML() to handle the
IOException that StringWriter
will never throw. |
BasicNode |
toXML(XMLWriter writer)
Append the content of this node to writer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BasicNode(Token token)
public BasicNode(XMLTokenizer.Type type,
java.lang.String text)
| Method Detail |
|---|
protected void setType(XMLTokenizer.Type type)
public XMLTokenizer.Type getType()
Node
getType in interface Nodepublic Token getToken()
public int getStartOffset()
public int getEndOffset()
public java.lang.String getValue()
public void setValue(java.lang.String value)
public BasicNode toXML(XMLWriter writer)
throws java.io.IOException
writer
toXML in interface Nodejava.io.IOExceptionpublic java.lang.String toXML()
toXML in interface Nodepublic java.lang.String toString()
toString in class java.lang.Objectpublic static java.lang.String toXML(Node n)
String toXML() to handle the
IOException that StringWriter
will never throw.
public BasicNode createClone()
Node
createClone in interface Nodepublic BasicNode copy(Node orig)
Nodeorig into this
copy in interface Nodepublic BasicNode copy()
Node
copy in interface Node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||