Package com.authlete.common.dto
Class Address
- java.lang.Object
-
- com.authlete.common.dto.Address
-
- All Implemented Interfaces:
Serializable
public class Address extends Object implements Serializable
Address claim that represents a physical mailing address.- Since:
- 1.24
- Author:
- Takahiko Kawasaki
- See Also:
- OpenID Connect Core 1.0, 5.1.1. Address Claim, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Address()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCountry()Get the country name component.StringgetFormatted()Get the full mailing address, formatted for display or use on a mailing label.StringgetLocality()Get the city or locality component.StringgetPostalCode()Get the zip code or postal code component.StringgetRegion()Get the state, province, prefecture, or region component.StringgetStreetAddress()Get the full street address component, which MAY include house number, street name, Post Office Box, and multi-line extended street address information.AddresssetCountry(String country)Set the country name component.AddresssetFormatted(String formatted)Set the full mailing address, formatted for display or use on a mailing label.AddresssetLocality(String locality)Set the city or locality component.AddresssetPostalCode(String postalCode)Set the zip code or postal code component.AddresssetRegion(String region)Set the state, province, prefecture, or region component.AddresssetStreetAddress(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.
-
-
-
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:
thisobject.
-
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:
thisobject.
-
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:
thisobject.
-
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:
thisobject.
-
getPostalCode
public String getPostalCode()
Get the zip code or postal code component.- Returns:
- The zip code or postal code.
-
setPostalCode
public Address setPostalCode(String postalCode)
Set the zip code or postal code component.- Parameters:
postalCode- The zip code or postal code.- Returns:
thisobject.
-
getCountry
public String getCountry()
Get the country name component.- Returns:
- The country name.
-
-