org.appfuse.model
Class Address

java.lang.Object
  extended by org.appfuse.model.BaseObject
      extended by org.appfuse.model.Address
All Implemented Interfaces:
Serializable

public class Address
extends BaseObject
implements Serializable

This class is used to represent an address.

View Source

Author:
Matt Raible
See Also:
Serialized Form
Form Name:
include-all="true" extends="BaseForm"

Field Summary
protected  String address
           
protected  String city
           
protected  String country
           
protected  String postalCode
           
protected  String province
           
 
Constructor Summary
Address()
           
 
Method Summary
 boolean equals(Object o)
           
 String getAddress()
           
 String getCity()
           
 String getCountry()
           
 String getPostalCode()
           
 String getProvince()
           
 int hashCode()
           
 void setAddress(String address)
           
 void setCity(String city)
           
 void setCountry(String country)
           
 void setPostalCode(String postalCode)
           
 void setProvince(String province)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

address

protected String address

city

protected String city

province

protected String province

country

protected String country

postalCode

protected String postalCode
Constructor Detail

Address

public Address()
Method Detail

getAddress

public String getAddress()
Property:
column="address" not-null="false" length="150"

getCity

public String getCity()
Property:
column="city" not-null="true" length="50"
Validator:
type="required"

getProvince

public String getProvince()
Property:
column="province" length="100"
Validator:
type="required"

getCountry

public String getCountry()
Property:
column="country" length="100"
Validator:
type="required"

getPostalCode

public String getPostalCode()
Property:
column="postal_code" not-null="true" length="15"
Validator:
type="required", type="mask" msgkey="errors.zip"
Validator Var:
name="mask" value="${zip}"

setAddress

public void setAddress(String address)

setCity

public void setCity(String city)

setCountry

public void setCountry(String country)

setPostalCode

public void setPostalCode(String postalCode)

setProvince

public void setProvince(String province)

equals

public boolean equals(Object o)
Specified by:
equals in class BaseObject

hashCode

public int hashCode()
Specified by:
hashCode in class BaseObject

toString

public String toString()
Specified by:
toString in class BaseObject


Copyright � 2002-2006