edu.pdx.cs399J.xml
Class PhoneBook

java.lang.Object
  extended by edu.pdx.cs399J.xml.PhoneBook

public class PhoneBook
extends Object

This class represents a phone book that contains entries for businesses and residents. It is constructed from an XML DOM tree. If we doing this for real, we'd want to be able to construct an empty PhoneBook and add entries. But, come on, this is just an example.


Constructor Summary
PhoneBook(Element root)
          Creates a PhoneBook from an XML DOM tree.
 
Method Summary
static void main(String[] args)
          Test program that takes the name of a XML file from the command line and attempts to make a PhoneBook out of it.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PhoneBook

public PhoneBook(Element root)
Creates a PhoneBook from an XML DOM tree.

Method Detail

main

public static void main(String[] args)
Test program that takes the name of a XML file from the command line and attempts to make a PhoneBook out of it.


toString

public String toString()
Overrides:
toString in class Object


Copyright © 2000-2009 Portland State University. All Rights Reserved.