FileDocCategorySizeDatePackage
Address.javaAPI DocJBoss 4.2.13082Fri Jul 13 20:55:36 BST 2007xpetstore.domain

Address

public class Address extends Object implements Serializable
author
Herve Tchepannou

Fields Summary
private String
_city
private String
_country
private String
_state
private String
_street1
private String
_street2
private String
_zipcode
Constructors Summary
public Address()


    //~ Constructors -----------------------------------------------------------

       
    
        super(  );
    
public Address(Address addr)

        set( addr );
    
Methods Summary
public java.lang.StringgetCity()

return
String
hibernate.property
length="25"

        return _city;
    
public java.lang.StringgetCountry()

return
String
hibernate.property
length="3"

        return _country;
    
public java.lang.StringgetState()

return
String
hibernate.property
length="3"

        return _state;
    
public java.lang.StringgetStreet1()

return
String
hibernate.property
length="50"

        return _street1;
    
public java.lang.StringgetStreet2()

return
String
hibernate.property
length="50"

        return _street2;
    
public java.lang.StringgetZipcode()

return
String
hibernate.property
length="10"

        return _zipcode;
    
public voidset(xpetstore.domain.Address address)

        _street1 = address.getStreet1(  );
        _street2 = address.getStreet2(  );
        _city    = address.getCity(  );
        _state   = address.getState(  );
        _country = address.getCountry(  );
        _zipcode = address.getZipcode(  );
    
public voidsetCity(java.lang.String city)
Sets the city.

param
city The city to set

        _city = city;
    
public voidsetCountry(java.lang.String country)
Sets the country.

param
country The country to set

        _country = country;
    
public voidsetState(java.lang.String state)
Sets the state.

param
state The state to set

        _state = state;
    
public voidsetStreet1(java.lang.String street1)
Sets the street1.

param
street1 The street1 to set

        _street1 = street1;
    
public voidsetStreet2(java.lang.String street2)
Sets the street2.

param
street2 The street2 to set

        _street2 = street2;
    
public voidsetZipcode(java.lang.String zipcode)
Sets the zipcode.

param
zipcode The zipcode to set

        _zipcode = zipcode;