edu.pdx.cs399J.xml
Class Business

java.lang.Object
  extended by edu.pdx.cs399J.xml.PhoneBookEntry
      extended by edu.pdx.cs399J.xml.Business

public class Business
extends PhoneBookEntry

This class represents a business whose name, address and phone number are listed in a phone book. A Business is constructed from an XML DOM tree. If we were doing this for real, we'd want a way of constructing an empty Business and filling in its fields.


Field Summary
protected  String name
           
 
Fields inherited from class edu.pdx.cs399J.xml.PhoneBookEntry
apt, city, phone, state, streetLines, zip
 
Constructor Summary
Business(Element root)
          Create a new Business from an Element in a DOM tree.
 
Method Summary
 String toString()
           
 
Methods inherited from class edu.pdx.cs399J.xml.PhoneBookEntry
fillInAddress, fillInPhone
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected String name
Constructor Detail

Business

public Business(Element root)
Create a new Business from an Element in a DOM tree.

Method Detail

toString

public String toString()
Overrides:
toString in class PhoneBookEntry


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