edu.pdx.cs399J.xml
Class PhoneBookEntry

java.lang.Object
  extended by 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.


Field Summary
protected  String apt
           
protected  String city
           
protected  String phone
           
protected  String state
           
protected  List streetLines
           
protected  String zip
           
 
Constructor Summary
PhoneBookEntry()
           
 
Method Summary
protected  void fillInAddress(Element root)
          Helper method to fill in address data from a chunk of an XML DOM tree.
protected  void fillInPhone(Element phone)
          Helper method to fill in phone data from a chunk of an XML DOM tree.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

streetLines

protected List streetLines

apt

protected String apt

city

protected String city

state

protected String state

zip

protected String zip

phone

protected String phone
Constructor Detail

PhoneBookEntry

public PhoneBookEntry()
Method Detail

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.