edu.pdx.cs399J.xml
Class Resident
java.lang.Object
edu.pdx.cs399J.xml.PhoneBookEntry
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.
|
Constructor Summary |
Resident(Element root)
Create a new Resident from a Element in
a DOM tree. |
firstName
protected String firstName
middleInitial
protected String middleInitial
lastName
protected String lastName
unlisted
protected boolean unlisted
Resident
public Resident(Element root)
- Create a new
Resident from a Element in
a DOM tree.
toString
public String toString()
- Overrides:
toString in class PhoneBookEntry
Copyright © 2000-2009 Portland State University. All Rights Reserved.