Class VCard.Address

  • Enclosing class:
    VCard

    public static final class VCard.Address
    extends Object
    Represents structured address data.
    • 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.
      • Address

        public Address​(String street,
                       String city,
                       String postalCode,
                       String country)
        Creates a postal home address (marked as preferred).
        Parameters:
        street - The street.
        city - The city.
        postalCode - The postal code.
        country - The country.
    • Method Detail

      • setPostOfficeBox

        public void setPostOfficeBox​(String postOfficeBox)
        Sets the post office box.
        Parameters:
        postOfficeBox - The post office box.
        See Also:
        getPostOfficeBox()
      • setExtendedAddress

        public void setExtendedAddress​(String extendedAddress)
        Sets the extended address.
        Parameters:
        extendedAddress - The extended address.
        See Also:
        getExtendedAddress()
      • setStreet

        public void setStreet​(String street)
        Sets the street.
        Parameters:
        street - The street.
        See Also:
        getStreet()
      • setCity

        public void setCity​(String city)
        Sets the city.
        Parameters:
        city - The city.
        See Also:
        getCity()
      • setRegion

        public void setRegion​(String region)
        Sets the region.
        Parameters:
        region - The region.
        See Also:
        getRegion()
      • setPostalCode

        public void setPostalCode​(String postalCode)
        Sets the postal code.
        Parameters:
        postalCode - The postal code.
        See Also:
        getPostalCode()
      • setCountry

        public void setCountry​(String country)
        Sets the country.
        Parameters:
        country - The country.
        See Also:
        getCountry()