|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.wimpi.pim.util.AbstractIdentifiable | +--net.wimpi.pim.contact.basicimpl.AddressImpl
A basic and simple implementation of an Address
.
Field Summary | |
protected java.lang.String |
m_City
|
protected java.lang.String |
m_Country
|
protected boolean |
m_Domestic
|
protected java.lang.String |
m_Extended
|
protected boolean |
m_Home
|
protected int |
m_Index
|
protected boolean |
m_International
|
protected java.lang.String |
m_Label
|
protected boolean |
m_Parcel
|
protected boolean |
m_Postal
|
protected java.lang.String |
m_PostalCode
|
protected java.lang.String |
m_PostBox
|
protected java.lang.String |
m_Region
|
protected java.lang.String |
m_Street
|
protected boolean |
m_Work
|
Fields inherited from interface net.wimpi.pim.contact.model.Address |
TYPE_DOMESTIC, TYPE_HOME, TYPE_INTERNATIONAL, TYPE_PARCEL, TYPE_POSTAL, TYPE_WORK |
Constructor Summary | |
AddressImpl()
|
Method Summary | |
java.lang.String |
getCity()
Returns the city of this Address. |
java.lang.String |
getCountry()
Returns the country of this Address. |
java.lang.String |
getExtended()
Returns the extended part of this Address. |
int |
getIndex()
|
java.lang.String |
getLabel()
Returns the label of this Address. |
java.lang.String |
getPostalCode()
Returns the postal code of this Address. |
java.lang.String |
getPostBox()
Returns the post office box of this Address. |
java.lang.String |
getRegion()
Returns the region of this Address. |
java.lang.String |
getStreet()
Returns the street of this Address. |
boolean |
isDomestic()
Tests if this Address is a domestic delivery address. |
boolean |
isHome()
Tests if this Address represents a residence. |
boolean |
isInternational()
Tests if this Address is international delivery address. |
boolean |
isParcel()
Tests if this Address is a parcel delivery address. |
boolean |
isPostal()
Tests if this Address is a postal delivery address. |
boolean |
isType(int TYPE)
Tests if this Address is of a specific type. |
boolean |
isWork()
Tests if this Address represents a place of work. |
void |
setCity(java.lang.String city)
Sets the city of this Address. |
void |
setCountry(java.lang.String country)
Sets the country of this Address. |
void |
setDomestic(boolean b)
Sets or resets the domestic flag of this Address. |
void |
setExtended(java.lang.String extended)
Sets the extended part of this Address. |
void |
setHome(boolean b)
Sets or resets the home flag of this Address. |
void |
setIndex(int index)
|
void |
setInternational(boolean b)
Sets or resets the international flag of this Address. |
void |
setLabel(java.lang.String label)
Sets the label of this Address. |
void |
setParcel(boolean b)
Sets or resets the parcel flag of this Address. |
void |
setPostal(boolean b)
Sets or resets the postal flag of this Address. |
void |
setPostalCode(java.lang.String postalcode)
Sets the postal code of this Address. |
void |
setPostBox(java.lang.String pobox)
Sets the post office box of this Address. |
void |
setRegion(java.lang.String region)
Sets the region of this Address. |
void |
setStreet(java.lang.String street)
Sets the street of this Address. |
void |
setWork(boolean b)
Sets or resets the work flag of this Address. |
Methods inherited from class net.wimpi.pim.util.AbstractIdentifiable |
equals, getUID, setUID |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.wimpi.pim.util.Identifiable |
getUID |
Field Detail |
protected java.lang.String m_PostBox
protected java.lang.String m_Extended
protected java.lang.String m_Street
protected java.lang.String m_City
protected java.lang.String m_Region
protected java.lang.String m_PostalCode
protected java.lang.String m_Country
protected java.lang.String m_Label
protected boolean m_Domestic
protected boolean m_International
protected boolean m_Work
protected boolean m_Home
protected boolean m_Postal
protected boolean m_Parcel
protected int m_Index
Constructor Detail |
public AddressImpl()
Method Detail |
public int getIndex()
public void setIndex(int index)
public java.lang.String getPostBox()
Address
getPostBox
in interface Address
public void setPostBox(java.lang.String pobox)
Address
setPostBox
in interface Address
pobox
- the post office box as String.public java.lang.String getExtended()
Address
getExtended
in interface Address
public void setExtended(java.lang.String extended)
Address
setExtended
in interface Address
extended
- the extended part as String.public java.lang.String getStreet()
Address
getStreet
in interface Address
public void setStreet(java.lang.String street)
Address
setStreet
in interface Address
street
- the street as String.public java.lang.String getCity()
Address
getCity
in interface Address
public void setCity(java.lang.String city)
Address
setCity
in interface Address
city
- the city as String.public java.lang.String getRegion()
Address
getRegion
in interface Address
public void setRegion(java.lang.String region)
Address
setRegion
in interface Address
region
- the region as String.public java.lang.String getPostalCode()
Address
getPostalCode
in interface Address
public void setPostalCode(java.lang.String postalcode)
Address
setPostalCode
in interface Address
postalcode
- the postal code as String.public java.lang.String getCountry()
Address
getCountry
in interface Address
public void setCountry(java.lang.String country)
Address
setCountry
in interface Address
country
- as String.public java.lang.String getLabel()
Address
getLabel
in interface Address
public void setLabel(java.lang.String label)
Address
setLabel
in interface Address
label
- the label as String.public boolean isDomestic()
Address
isDomestic
in interface Address
public boolean isInternational()
Address
isInternational
in interface Address
public void setDomestic(boolean b)
Address
setDomestic
in interface Address
b
- true if for domestic delivery,
false otherwise.public void setInternational(boolean b)
Address
setInternational
in interface Address
b
- true if for international delivery,
false otherwise.public boolean isParcel()
Address
isParcel
in interface Address
public void setParcel(boolean b)
Address
setParcel
in interface Address
b
- true if for parcel delivery,
false otherwise.public boolean isPostal()
Address
isPostal
in interface Address
public void setPostal(boolean b)
Address
setPostal
in interface Address
b
- true if for postal delivery,
false otherwise.public boolean isHome()
Address
isHome
in interface Address
public boolean isWork()
Address
isWork
in interface Address
public void setHome(boolean b)
Address
setHome
in interface Address
b
- true if representing a residence,
false otherwise.public void setWork(boolean b)
Address
setWork
in interface Address
b
- true if representing a place of work,
false otherwise.public boolean isType(int TYPE)
Address
isType
in interface Address
TYPE
- a type as int.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |