Class Address2Line

java.lang.Object
  |
  +--Address
        |
        +--Address2Line

public class Address2Line
extends Address
implements java.io.Serializable

A subclass of the Address class to add a second line of address data.

This is a simple subclass to illustrate using a Java subclass as an SQL datatype.

See Also:
Serialized Form

Field Summary
 java.lang.String line2
          The second line of street data for the address.
 
Fields inherited from class Address
street, zip
 
Constructor Summary
Address2Line()
          A default constructor.
Address2Line(java.lang.String S, java.lang.String L2, java.lang.String Z)
          A constructor with parameters.
 
Method Summary
 java.lang.String Display()
          A method to return a display of the address data.
 void removeLeadingBlanks()
          A void method to remove leading blanks.
 
Methods inherited from class Address
display
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

line2

public java.lang.String line2
The second line of street data for the address.
Constructor Detail

Address2Line

public Address2Line()
A default constructor.

Address2Line

public Address2Line(java.lang.String S,
                    java.lang.String L2,
                    java.lang.String Z)
A constructor with parameters.
Parameters:
S - a string with the street info
L2 - a string with the second line of address data
Z - a string with the zipcode info
Method Detail

Display

public java.lang.String Display()
A method to return a display of the address data.

removeLeadingBlanks

public void removeLeadingBlanks()
A void method to remove leading blanks. This method uses the static method Misc.stripLeadingBlanks.
Overrides:
removeLeadingBlanks in class Address