Project 1

cscie259.project1.mf
Class Document

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

public class Document
extends Node

A simplified, non-interface version of org.w3c.dom.Document. An object of this class represents a DOM's topmost node. You MAY NOT modify this file.

Version:
7.0
Author:
Computer Science E-259

Field Summary
 
Fields inherited from class cscie259.project1.mf.Node
ATTRIBUTE_NODE, DOCUMENT_NODE, ELEMENT_NODE, TEXT_NODE
 
Constructor Summary
Document()
           
 
Method Summary
 Element getDocumentElement()
          Returns child node that is the root element of the document.
 int getNodeType()
          Returns code (Node.DOCUMENT_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

Document

public Document()
Method Detail

getDocumentElement

public Element getDocumentElement()
Returns child node that is the root element of the document.

Returns:
child node that is the root element of the document

getNodeType

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

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

Project 1