|
Project 1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcscie259.project1.mf.Node
cscie259.project1.mf.Text
A simplified, non-interface version of org.w3c.dom.Text. You MAY NOT modify this file.
Field Summary |
Fields inherited from class cscie259.project1.mf.Node |
ATTRIBUTE_NODE, DOCUMENT_NODE, ELEMENT_NODE, TEXT_NODE |
Constructor Summary | |
Text(java.lang.String value)
Sets node's value. |
Method Summary | |
void |
appendChild(Node newChild)
Throws a RuntimeException, since text nodes cannot have children. |
int |
getNodeType()
Returns code (Node.TEXT) signifying this node's type. |
Methods inherited from class cscie259.project1.mf.Node |
getChildNodes, getNodeName, getNodeValue, getParentNode, setNodeName, setNodeValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Text(java.lang.String value)
value
- value for new text nodeMethod Detail |
public void appendChild(Node newChild)
appendChild
in class Node
newChild
- node to be added as a child of this nodepublic int getNodeType()
getNodeType
in class Node
|
Project 1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |