Class VCard.Address
- java.lang.Object
-
- rocks.xmpp.extensions.vcard.temp.model.VCard.Address
-
-
Constructor Summary
Constructors Constructor Description Address()
Address(boolean preferred, boolean home, boolean work, boolean postal, boolean parcel, boolean international, String postOfficeBox, String extendedAddress, String street, String city, String region, String postalCode, String country)
Creates a address with all possible values.Address(String street, String city, String postalCode, String country)
Creates a postal home address (marked as preferred).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCity()
Gets the city.String
getCountry()
Gets the country.String
getExtendedAddress()
Gets the extended address.String
getPostalCode()
Gets the postal code.String
getPostOfficeBox()
Gets the post office box.String
getRegion()
Gets the region.String
getStreet()
Gets the street.void
setCity(String city)
Sets the city.void
setCountry(String country)
Sets the country.void
setExtendedAddress(String extendedAddress)
Sets the extended address.void
setPostalCode(String postalCode)
Sets the postal code.void
setPostOfficeBox(String postOfficeBox)
Sets the post office box.void
setRegion(String region)
Sets the region.void
setStreet(String street)
Sets the street.
-
-
-
Constructor Detail
-
Address
public Address()
-
Address
public Address(boolean preferred, boolean home, boolean work, boolean postal, boolean parcel, boolean international, String postOfficeBox, String extendedAddress, String street, String city, String region, String postalCode, String country)
Creates a address with all possible values.- Parameters:
preferred
- True, if this is the preferred address.home
- If this is a home address.work
- If it is a work address.postal
- If it is a postal address.parcel
- If it is a parcel address.international
- If it is a international address.postOfficeBox
- The post office box.extendedAddress
- The extended address.street
- The street.city
- The city.region
- The region.postalCode
- The postal code.country
- The country.
-
-
Method Detail
-
getPostOfficeBox
public String getPostOfficeBox()
Gets the post office box.- Returns:
- The post office box.
- See Also:
setPostOfficeBox(String)
-
setPostOfficeBox
public void setPostOfficeBox(String postOfficeBox)
Sets the post office box.- Parameters:
postOfficeBox
- The post office box.- See Also:
getPostOfficeBox()
-
getExtendedAddress
public String getExtendedAddress()
Gets the extended address.- Returns:
- The extended address.
- See Also:
setExtendedAddress(String)
-
setExtendedAddress
public void setExtendedAddress(String extendedAddress)
Sets the extended address.- Parameters:
extendedAddress
- The extended address.- See Also:
getExtendedAddress()
-
getStreet
public String getStreet()
Gets the street.- Returns:
- The street.
- See Also:
setStreet(String)
-
setStreet
public void setStreet(String street)
Sets the street.- Parameters:
street
- The street.- See Also:
getStreet()
-
getCity
public String getCity()
Gets the city.- Returns:
- The city.
- See Also:
setCity(String)
-
setCity
public void setCity(String city)
Sets the city.- Parameters:
city
- The city.- See Also:
getCity()
-
getRegion
public String getRegion()
Gets the region.- Returns:
- The region.
- See Also:
setRegion(String)
-
setRegion
public void setRegion(String region)
Sets the region.- Parameters:
region
- The region.- See Also:
getRegion()
-
getPostalCode
public String getPostalCode()
Gets the postal code.- Returns:
- The postal code.
- See Also:
setPostalCode(String)
-
setPostalCode
public void setPostalCode(String postalCode)
Sets the postal code.- Parameters:
postalCode
- The postal code.- See Also:
getPostalCode()
-
getCountry
public String getCountry()
Gets the country.- Returns:
- The country.
- See Also:
setCountry(String)
-
setCountry
public void setCountry(String country)
Sets the country.- Parameters:
country
- The country.- See Also:
getCountry()
-
-