Class Address

java.lang.Object
  |
  +--Address

public class Address
extends java.lang.Object

This class represents an address with three lines of information. E.g.,
1234 Broadway
Suite 98
New York, NY 10012
The address lines are maintained as Strings with no structure. I.e., structured fields such as city name, postal code, etc., are just part of the String, and are not identified individually. There is no requirement that an Address instance should have all lines filled, or even that it have any lines filled.


Constructor Summary
Address()
          Create an Address instance with empty lines.
 
Method Summary
 java.lang.String getLine1()
          Return the first address line.
 java.lang.String getLine2()
          Return the second address line.
 java.lang.String getLine3()
          Return the third address line.
 void setLine1(java.lang.String aString)
          Set the first address line.
 void setLine2(java.lang.String aString)
          Set the second address line.
 void setLine3(java.lang.String aString)
          Set the third address line.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Address

public Address()
Create an Address instance with empty lines.
Method Detail

getLine1

public java.lang.String getLine1()
Return the first address line.

getLine2

public java.lang.String getLine2()
Return the second address line.

getLine3

public java.lang.String getLine3()
Return the third address line.

setLine1

public void setLine1(java.lang.String aString)
Set the first address line.

setLine2

public void setLine2(java.lang.String aString)
Set the second address line.

setLine3

public void setLine3(java.lang.String aString)
Set the third address line.