Package google.registry.model.eppcommon
Class Address
- java.lang.Object
-
- google.registry.model.ImmutableObject
-
- google.registry.model.eppcommon.Address
-
- All Implemented Interfaces:
Jsonifiable
,java.lang.Cloneable
- Direct Known Subclasses:
ContactAddress
,MarkAddress
,RegistrarAddress
@Embeddable @MappedSuperclass public class Address extends ImmutableObject implements Jsonifiable
Container for generic street address.This is the "addrType" type from RFC5733. It also matches the "addrType" type from Mark and Signed Mark Objects Mapping.
- See Also:
ContactAddress
,MarkAddress
,RegistrarAddress
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Address.Builder<T extends Address>
A builder for constructingAddress
.-
Nested classes/interfaces inherited from class google.registry.model.ImmutableObject
ImmutableObject.DoNotCompare, ImmutableObject.DoNotHydrate, ImmutableObject.EmptySetToNull, ImmutableObject.IgnoredInDiffableMap, ImmutableObject.Insignificant
-
-
Field Summary
-
Fields inherited from class google.registry.model.ImmutableObject
hashCode
-
-
Constructor Summary
Constructors Constructor Description Address()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Address.Builder<? extends Address>
asBuilder()
java.lang.String
getCity()
java.lang.String
getCountryCode()
java.lang.String
getState()
com.google.common.collect.ImmutableList<java.lang.String>
getStreet()
java.lang.String
getZip()
java.util.Map<java.lang.String,java.lang.Object>
toJsonMap()
Returns a JSON representation of this object.-
Methods inherited from class google.registry.model.ImmutableObject
clone, cloneEmptyToNull, equals, getSignificantFields, hashCode, toDiffableFieldMap, toHydratedString, toString, toStringHelper
-
-
-
-
Method Detail
-
getStreet
public com.google.common.collect.ImmutableList<java.lang.String> getStreet()
-
getCity
public java.lang.String getCity()
-
getState
public java.lang.String getState()
-
getZip
public java.lang.String getZip()
-
getCountryCode
public java.lang.String getCountryCode()
-
toJsonMap
public java.util.Map<java.lang.String,java.lang.Object> toJsonMap()
Description copied from interface:Jsonifiable
Returns a JSON representation of this object.The returned value must not return sensitive fields, so that it may be safe to return to the client via an API response.
- Specified by:
toJsonMap
in interfaceJsonifiable
-
asBuilder
public Address.Builder<? extends Address> asBuilder()
-
-