com.pow2.user
Class Address

java.lang.Object
  extended bycom.pow2.user.Address

public class Address
extends Object

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.

Author:
Luca Fossato

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

cat

protected static org.apache.log4j.Category cat
Log4J category.


user

protected User user
its user


country

protected String country
user country; i.e.: USA | Italy


state

protected String state
user state (use only if country == USA)


city

protected String city
user city


zipCode

protected String zipCode
user ZIP code


street

protected String street
user street

Constructor Detail

Address

public Address(User newUser)
Constructor.
Set the user for this address.

Method Detail

setUser

public void setUser(User newUser)
Sets the user attribute of the Address object

Parameters:
newUser - The new user value

setCountry

public void setCountry(String newCountry)
Sets the country attribute of the Address object

Parameters:
newCountry - The new country value

setState

public void setState(String newState)
Sets the state attribute of the Address object

Parameters:
newState - The new state value

setCity

public void setCity(String newCity)
Sets the city attribute of the Address object

Parameters:
newCity - The new city value

setZipCode

public void setZipCode(String newZipCode)
Sets the zipCode attribute of the Address object

Parameters:
newZipCode - The new zipCode value

setStreet

public void setStreet(String newStreet)
Sets the street attribute of the Address object

Parameters:
newStreet - The new street value

getUser

public User getUser()
Gets the user attribute of the Address object

Returns:
The user value

getCountry

public String getCountry()
Gets the country attribute of the Address object

Returns:
The country value

getState

public String getState()
Gets the state attribute of the Address object

Returns:
The state value

getCity

public String getCity()
Gets the city attribute of the Address object

Returns:
The city value

getZipCode

public String getZipCode()
Gets the zipCode attribute of the Address object

Returns:
The zipCode value

getStreet

public String getStreet()
Gets the street attribute of the Address object

Returns:
The street value


Copyright © 2002-2004 Power Of Two S.R.L. All Rights Reserved.