edu.pdx.cs399J.xml
Class PhoneBookEntry
java.lang.Object
edu.pdx.cs399J.xml.PhoneBookEntry
- Direct Known Subclasses:
- Business, Resident
public abstract class PhoneBookEntry
- extends Object
This class represents an entry in a phone book. It is used to
demonstrate how XML DOM trees can be turned into Java objects.
streetLines
protected List streetLines
apt
protected String apt
city
protected String city
state
protected String state
zip
protected String zip
phone
protected String phone
PhoneBookEntry
public PhoneBookEntry()
fillInAddress
protected void fillInAddress(Element root)
- Helper method to fill in address data from a chunk of an XML DOM
tree.
fillInPhone
protected void fillInPhone(Element phone)
- Helper method to fill in phone data from a chunk of an XML DOM
tree.
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2000-2009 Portland State University. All Rights Reserved.