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