|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface modeling an address based on the types and information of the vCard Mime directory profile standard specification.
For reference see RFC 2426:
3.2.1 ADR Type Definition
3.2.2 LABEL Type Definition
The ADR type is based on semantics of the
X.520 geographical and postal addressing attributes.
Note that for a standard conformant implementation
you have to observe the following:
Field Summary | |
static int |
TYPE_DOMESTIC
Type that indicates a domestic delivery address. |
static int |
TYPE_HOME
Type that indicates an address associated with a residence. |
static int |
TYPE_INTERNATIONAL
Type that indicates an international delivery address. |
static int |
TYPE_PARCEL
Type that indicates a parcel delivery address. |
static int |
TYPE_POSTAL
Type that indicates a postal delivery address. |
static int |
TYPE_WORK
Type that indicates an address associated with a work place. |
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. |
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 |
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 interface net.wimpi.pim.util.Identifiable |
getUID |
Field Detail |
public static final int TYPE_WORK
public static final int TYPE_HOME
public static final int TYPE_DOMESTIC
public static final int TYPE_INTERNATIONAL
public static final int TYPE_POSTAL
public static final int TYPE_PARCEL
Method Detail |
public java.lang.String getPostBox()
public void setPostBox(java.lang.String pobox)
pobox
- the post office box as String.public java.lang.String getExtended()
public void setExtended(java.lang.String extended)
extended
- the extended part as String.public java.lang.String getStreet()
public void setStreet(java.lang.String street)
street
- the street as String.public java.lang.String getCity()
public void setCity(java.lang.String city)
city
- the city as String.public java.lang.String getRegion()
public void setRegion(java.lang.String region)
region
- the region as String.public java.lang.String getPostalCode()
public void setPostalCode(java.lang.String postalcode)
postalcode
- the postal code as String.public java.lang.String getCountry()
public void setCountry(java.lang.String country)
country
- as String.public java.lang.String getLabel()
public void setLabel(java.lang.String label)
label
- the label as String.public boolean isDomestic()
public void setDomestic(boolean b)
b
- true if for domestic delivery,
false otherwise.public boolean isInternational()
public void setInternational(boolean b)
b
- true if for international delivery,
false otherwise.public boolean isParcel()
public void setParcel(boolean b)
b
- true if for parcel delivery,
false otherwise.public boolean isPostal()
public void setPostal(boolean b)
b
- true if for postal delivery,
false otherwise.public boolean isHome()
public void setHome(boolean b)
b
- true if representing a residence,
false otherwise.public boolean isWork()
public void setWork(boolean b)
b
- true if representing a place of work,
false otherwise.public boolean isType(int TYPE)
TYPE
- a type as int.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |