edu.pdx.cs399J.xml
Class Resident

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

public class Resident
extends PhoneBookEntry

This class represents a resident (person) whose first and last name, as well as whose middle initial, is listing in a phone book. A Resident is constructed from an XML DOM tree. If we were doing this for real, we'd want a way of constructing an empty Resident and filling in its fields.


Field Summary
protected  String firstName
           
protected  String lastName
           
protected  String middleInitial
           
protected  boolean unlisted
           
 
Fields inherited from class edu.pdx.cs399J.xml.PhoneBookEntry
apt, city, phone, state, streetLines, zip
 
Constructor Summary
Resident(Element root)
          Create a new Resident from a 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

firstName

protected String firstName

middleInitial

protected String middleInitial

lastName

protected String lastName

unlisted

protected boolean unlisted
Constructor Detail

Resident

public Resident(Element root)
Create a new Resident from a 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.