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. |
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 java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
line2
public java.lang.String line2
- The second line of street data for the address.
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 infoL2
- a string with the second line of address dataZ
- a string with the zipcode info
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