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 StringgetCity()Gets the city.StringgetCountry()Gets the country.StringgetExtendedAddress()Gets the extended address.StringgetPostalCode()Gets the postal code.StringgetPostOfficeBox()Gets the post office box.StringgetRegion()Gets the region.StringgetStreet()Gets the street.voidsetCity(String city)Sets the city.voidsetCountry(String country)Sets the country.voidsetExtendedAddress(String extendedAddress)Sets the extended address.voidsetPostalCode(String postalCode)Sets the postal code.voidsetPostOfficeBox(String postOfficeBox)Sets the post office box.voidsetRegion(String region)Sets the region.voidsetStreet(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()
-
-