org.appfuse.model
Class Address
java.lang.Object
org.appfuse.model.BaseObject
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"
address
protected String address
city
protected String city
province
protected String province
country
protected String country
postalCode
protected String postalCode
Address
public Address()
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