edu.pdx.cs399J.xml
Class PhoneBook
java.lang.Object
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()
|
PhoneBook
public PhoneBook(Element root)
- Creates a
PhoneBook from an XML DOM tree.
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.