|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.pow2.user.Address
User Address class.
This class encapsulates the basic user address informations; if you'd like
to have a more specialized Address entity, extend this class and provide
your own implementation.
Field Summary | |
protected static org.apache.log4j.Category |
cat
Log4J category. |
protected String |
city
user city |
protected String |
country
user country; i.e.: USA | Italy |
protected String |
state
user state (use only if country == USA) |
protected String |
street
user street |
protected User |
user
its user |
protected String |
zipCode
user ZIP code |
Constructor Summary | |
Address(User newUser)
Constructor. |
Method Summary | |
String |
getCity()
Gets the city attribute of the Address object |
String |
getCountry()
Gets the country attribute of the Address object |
String |
getState()
Gets the state attribute of the Address object |
String |
getStreet()
Gets the street attribute of the Address object |
User |
getUser()
Gets the user attribute of the Address object |
String |
getZipCode()
Gets the zipCode attribute of the Address object |
void |
setCity(String newCity)
Sets the city attribute of the Address object |
void |
setCountry(String newCountry)
Sets the country attribute of the Address object |
void |
setState(String newState)
Sets the state attribute of the Address object |
void |
setStreet(String newStreet)
Sets the street attribute of the Address object |
void |
setUser(User newUser)
Sets the user attribute of the Address object |
void |
setZipCode(String newZipCode)
Sets the zipCode attribute of the Address object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.apache.log4j.Category cat
protected User user
protected String country
protected String state
protected String city
protected String zipCode
protected String street
Constructor Detail |
public Address(User newUser)
Method Detail |
public void setUser(User newUser)
newUser
- The new user valuepublic void setCountry(String newCountry)
newCountry
- The new country valuepublic void setState(String newState)
newState
- The new state valuepublic void setCity(String newCity)
newCity
- The new city valuepublic void setZipCode(String newZipCode)
newZipCode
- The new zipCode valuepublic void setStreet(String newStreet)
newStreet
- The new street valuepublic User getUser()
public String getCountry()
public String getState()
public String getCity()
public String getZipCode()
public String getStreet()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |