Class Address

    • Constructor Detail

      • Address

        public Address()
    • Method Detail

      • getFormatted

        public String getFormatted()
        Get the full mailing address, formatted for display or use on a mailing label.
        Returns:
        The full mailing address.
      • setFormatted

        public Address setFormatted​(String formatted)
        Set the full mailing address, formatted for display or use on a mailing label.
        Parameters:
        formatted - The full mailing address.
        Returns:
        this object.
      • getStreetAddress

        public String getStreetAddress()
        Get the full street address component, which MAY include house number, street name, Post Office Box, and multi-line extended street address information.
        Returns:
        The full street address.
      • setStreetAddress

        public Address setStreetAddress​(String streetAddress)
        Set the full street address component, which MAY include house number, street name, Post Office Box, and multi-line extended street address information.
        Parameters:
        streetAddress - The full street address.
        Returns:
        this object.
      • getLocality

        public String getLocality()
        Get the city or locality component.
        Returns:
        The city or locality.
      • setLocality

        public Address setLocality​(String locality)
        Set the city or locality component.
        Parameters:
        locality - The city or locality.
        Returns:
        this object.
      • getRegion

        public String getRegion()
        Get the state, province, prefecture, or region component.
        Returns:
        The state, province, prefecture, or region.
      • setRegion

        public Address setRegion​(String region)
        Set the state, province, prefecture, or region component.
        Parameters:
        region - The state, province, prefecture, or region.
        Returns:
        this object.
      • getPostalCode

        public String getPostalCode()
        Get the zip code or postal code component.
        Returns:
        The zip code or postal code.
      • setPostaCode

        public Address setPostaCode​(String postalCode)
        Set the zip code or postal code component.
        Parameters:
        postalCode - The zip code or postal code.
        Returns:
        this object.
      • getCountry

        public String getCountry()
        Get the country name component.
        Returns:
        The country name.
      • setCountry

        public Address setCountry​(String country)
        Set the country name component.
        Parameters:
        country - The country name.
        Returns:
        this object.