Class PhoneBook

java.lang.Object
edu.pdx.cs410J.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 Details

    • PhoneBook

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

    • 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