|
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.Attr
public class Attr
A simplified, non-interface version of org.w3c.dom.Attr. You MAY modify this file to whatever extent you see fit, provided you retain the current declarations and definitions of, at least, getNodeType and appendChild.
Field Summary |
---|
Fields inherited from class cscie259.project1.mf.Node |
---|
ATTRIBUTE_NODE, DOCUMENT_NODE, ELEMENT_NODE, TEXT_NODE |
Method Summary | |
---|---|
void |
appendChild(Node newChild)
Throws a RuntimeException, since attributes cannot have children. |
int |
getNodeType()
Returns code (Node.ATTRIBUTE_NODE) 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 |
Method 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 |