|
Project 1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcscie259.project1.mf.Node
public abstract class Node
A simplified version of org.w3c.dom.Node. You MAY NOT modify this file.
Field Summary | |
---|---|
static int |
ATTRIBUTE_NODE
Short code identifying the type of a Attr node. |
static int |
DOCUMENT_NODE
Short code identifying the type of a Document node. |
static int |
ELEMENT_NODE
Short code identifying the type of an Element node. |
static int |
TEXT_NODE
Short code identifying the type of a Text node. |
Constructor Summary | |
---|---|
Node()
|
Method Summary | |
---|---|
void |
appendChild(Node newChild)
Appends new child to node. |
java.util.List |
getChildNodes()
Gets node's children. |
java.lang.String |
getNodeName()
Gets node's name. |
abstract int |
getNodeType()
Returns code signifying this node's type. |
java.lang.String |
getNodeValue()
Gets node's value. |
Node |
getParentNode()
Returns node's parent. |
void |
setNodeName(java.lang.String name)
Sets node's name. |
void |
setNodeValue(java.lang.String value)
Sets node's name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ATTRIBUTE_NODE
public static final int DOCUMENT_NODE
public static final int ELEMENT_NODE
public static final int TEXT_NODE
Constructor Detail |
---|
public Node()
Method Detail |
---|
public void appendChild(Node newChild)
newChild
- child to be addedpublic java.util.List getChildNodes()
public java.lang.String getNodeName()
public abstract int getNodeType()
public java.lang.String getNodeValue()
public Node getParentNode()
public void setNodeName(java.lang.String name)
name
- node's namepublic void setNodeValue(java.lang.String value)
value
- node's value
|
Project 1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |