Project 1

cscie259.project1.mf
Class Element

java.lang.Object
  extended by cscie259.project1.mf.Node
      extended by cscie259.project1.mf.Element

public class Element
extends Node

A simplified, non-interface version of org.w3c.dom.Element. You MAY modify this file, provided you do not change the declarations or definitions of the constructor and getNodeType.

Version:
7.0
Author:
Computer Science E-259, YOUR NAME GOES HERE

Field Summary
 
Fields inherited from class cscie259.project1.mf.Node
ATTRIBUTE_NODE, DOCUMENT_NODE, ELEMENT_NODE, TEXT_NODE
 
Constructor Summary
Element(java.lang.String name)
          Sets node's name.
 
Method Summary
 int getNodeType()
          Returns code (Node.ELEMENT_NODE) signifying this node's type.
 
Methods inherited from class cscie259.project1.mf.Node
appendChild, 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

Element

public Element(java.lang.String name)
Sets node's name.

Parameters:
name - name for new element
Method Detail

getNodeType

public int getNodeType()
Returns code (Node.ELEMENT_NODE) signifying this node's type.

Specified by:
getNodeType in class Node
Returns:
Node.ELEMENT_NODE

Project 1