|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rakeshv.xml.addressbook.Address
public class Address
A bean that represents a postal address. Multiple
postal addresses may be available for a person in the address book.
Copyright 2003 Rakesh Vidyadharan
| Field Summary | |
|---|---|
private java.lang.String |
city
The city to which the address belongs. |
private java.lang.String |
country
The country to which the address belongs. |
private java.lang.String |
postalCode
The postal code of the address. |
private java.lang.String |
state
The state to which the address belongs. |
private java.lang.String |
street1
The street address of the person. |
private java.lang.String |
street2
The secondary street address of the person. |
private java.lang.String |
street3
The tertiary street address of the person. |
| Constructor Summary | |
|---|---|
Address()
Default constructor. |
|
Address(java.lang.String street1,
java.lang.String city,
java.lang.String state,
java.lang.String postalCode,
java.lang.String country)
Construct an new address with most of the common fields populated. |
|
Address(java.lang.String street1,
java.lang.String street2,
java.lang.String street3,
java.lang.String city,
java.lang.String state,
java.lang.String postalCode,
java.lang.String country)
Construct an new address with all the fields populated. |
|
| Method Summary | |
|---|---|
java.lang.String |
getCity()
Return the value/reference of the city. |
java.lang.String |
getCountry()
Return the value/reference of the country. |
java.lang.String |
getPostalCode()
Return the value/reference of the postalCode. |
java.lang.String |
getState()
Return the value/reference of the state. |
java.lang.String |
getStreet1()
Return the value/reference of the street1. |
java.lang.String |
getStreet2()
Return the value/reference of the street2. |
java.lang.String |
getStreet3()
Return the value/reference of the street3. |
void |
setCity(java.lang.String city)
Set the value of city. |
void |
setCountry(java.lang.String country)
Set the value of country. |
void |
setPostalCode(java.lang.String postalCode)
Set the value of postalCode. |
void |
setState(java.lang.String state)
Set the value of state. |
void |
setStreet1(java.lang.String street1)
Set the value of street1. |
void |
setStreet2(java.lang.String street2)
Set the value of street2. |
void |
setStreet3(java.lang.String street3)
Set the value of street3. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String street1
street1 element.
private java.lang.String street2
street2 element.
private java.lang.String street3
street3 element.
private java.lang.String city
city element.
private java.lang.String state
state element.
private java.lang.String postalCode
postalCode element.
private java.lang.String country
country element.
| Constructor Detail |
|---|
public Address()
public Address(java.lang.String street1,
java.lang.String city,
java.lang.String state,
java.lang.String postalCode,
java.lang.String country)
Address( String, String, String, String,
String, String, String ) with null values for
street2 and street3.
street1 - - The first line of the street address.city - - The city of the address.state - - The state of the address.postalCode - - The postalCode of the address.country - - The country of the address.
public Address(java.lang.String street1,
java.lang.String street2,
java.lang.String street3,
java.lang.String city,
java.lang.String state,
java.lang.String postalCode,
java.lang.String country)
street1 - - The first line of the street address.street2 - - The second line of the street address.street3 - - The third line of the street address.city - - The city of the address.state - - The state of the address.postalCode - - The postalCode of the address.country - - The country of the address.| Method Detail |
|---|
public final java.lang.String getStreet1()
street1.
public final void setStreet1(java.lang.String street1)
street1.
street1 - - The value to set.public final java.lang.String getStreet2()
street2.
public final void setStreet2(java.lang.String street2)
street2.
street2 - - The value to set.public final java.lang.String getStreet3()
street3.
public final void setStreet3(java.lang.String street3)
street3.
street3 - - The value to set.public final java.lang.String getCity()
city.
public final void setCity(java.lang.String city)
city.
city - - The value to set.public final java.lang.String getState()
state.
public final void setState(java.lang.String state)
state.
state - - The value to set.public final java.lang.String getPostalCode()
postalCode.
public final void setPostalCode(java.lang.String postalCode)
postalCode.
postalCode - - The value to set.public final java.lang.String getCountry()
country.
public final void setCountry(java.lang.String country)
country.
country - - The value to set.
|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||