public class GeoLocationDetails extends Object implements Serializable, Cloneable
A complex type that contains information about a GeoLocation
.
Constructor and Description |
---|
GeoLocationDetails() |
Modifier and Type | Method and Description |
---|---|
GeoLocationDetails |
clone() |
boolean |
equals(Object obj) |
String |
getContinentCode()
The code for a continent geo location.
|
String |
getContinentName()
The name of the continent.
|
String |
getCountryCode()
The code for a country geo location.
|
String |
getCountryName()
The name of the country.
|
String |
getSubdivisionCode()
The code for a country's subdivision (e.g., a province of Canada).
|
String |
getSubdivisionName()
The name of the subdivision.
|
int |
hashCode() |
void |
setContinentCode(String continentCode)
The code for a continent geo location.
|
void |
setContinentName(String continentName)
The name of the continent.
|
void |
setCountryCode(String countryCode)
The code for a country geo location.
|
void |
setCountryName(String countryName)
The name of the country.
|
void |
setSubdivisionCode(String subdivisionCode)
The code for a country's subdivision (e.g., a province of Canada).
|
void |
setSubdivisionName(String subdivisionName)
The name of the subdivision.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GeoLocationDetails |
withContinentCode(String continentCode)
The code for a continent geo location.
|
GeoLocationDetails |
withContinentName(String continentName)
The name of the continent.
|
GeoLocationDetails |
withCountryCode(String countryCode)
The code for a country geo location.
|
GeoLocationDetails |
withCountryName(String countryName)
The name of the country.
|
GeoLocationDetails |
withSubdivisionCode(String subdivisionCode)
The code for a country's subdivision (e.g., a province of Canada).
|
GeoLocationDetails |
withSubdivisionName(String subdivisionName)
The name of the subdivision.
|
public void setContinentCode(String continentCode)
The code for a continent geo location. Note: only continent locations have a continent code.
continentCode
- The code for a continent geo location. Note: only continent
locations have a continent code.public String getContinentCode()
The code for a continent geo location. Note: only continent locations have a continent code.
public GeoLocationDetails withContinentCode(String continentCode)
The code for a continent geo location. Note: only continent locations have a continent code.
continentCode
- The code for a continent geo location. Note: only continent
locations have a continent code.public void setContinentName(String continentName)
The name of the continent. This element is only present if
ContinentCode
is also present.
continentName
- The name of the continent. This element is only present if
ContinentCode
is also present.public String getContinentName()
The name of the continent. This element is only present if
ContinentCode
is also present.
ContinentCode
is also present.public GeoLocationDetails withContinentName(String continentName)
The name of the continent. This element is only present if
ContinentCode
is also present.
continentName
- The name of the continent. This element is only present if
ContinentCode
is also present.public void setCountryCode(String countryCode)
The code for a country geo location. The default location uses '*' for the country code and will match all locations that are not matched by a geo location.
The default geo location uses a *
for the country code. All
other country codes follow the ISO 3166 two-character code.
countryCode
- The code for a country geo location. The default location uses '*'
for the country code and will match all locations that are not
matched by a geo location.
The default geo location uses a *
for the country
code. All other country codes follow the ISO 3166 two-character
code.
public String getCountryCode()
The code for a country geo location. The default location uses '*' for the country code and will match all locations that are not matched by a geo location.
The default geo location uses a *
for the country code. All
other country codes follow the ISO 3166 two-character code.
The default geo location uses a *
for the country
code. All other country codes follow the ISO 3166 two-character
code.
public GeoLocationDetails withCountryCode(String countryCode)
The code for a country geo location. The default location uses '*' for the country code and will match all locations that are not matched by a geo location.
The default geo location uses a *
for the country code. All
other country codes follow the ISO 3166 two-character code.
countryCode
- The code for a country geo location. The default location uses '*'
for the country code and will match all locations that are not
matched by a geo location.
The default geo location uses a *
for the country
code. All other country codes follow the ISO 3166 two-character
code.
public void setCountryName(String countryName)
The name of the country. This element is only present if
CountryCode
is also present.
countryName
- The name of the country. This element is only present if
CountryCode
is also present.public String getCountryName()
The name of the country. This element is only present if
CountryCode
is also present.
CountryCode
is also present.public GeoLocationDetails withCountryName(String countryName)
The name of the country. This element is only present if
CountryCode
is also present.
countryName
- The name of the country. This element is only present if
CountryCode
is also present.public void setSubdivisionCode(String subdivisionCode)
The code for a country's subdivision (e.g., a province of Canada). A subdivision code is only valid with the appropriate country code.
subdivisionCode
- The code for a country's subdivision (e.g., a province of Canada).
A subdivision code is only valid with the appropriate country
code.public String getSubdivisionCode()
The code for a country's subdivision (e.g., a province of Canada). A subdivision code is only valid with the appropriate country code.
public GeoLocationDetails withSubdivisionCode(String subdivisionCode)
The code for a country's subdivision (e.g., a province of Canada). A subdivision code is only valid with the appropriate country code.
subdivisionCode
- The code for a country's subdivision (e.g., a province of Canada).
A subdivision code is only valid with the appropriate country
code.public void setSubdivisionName(String subdivisionName)
The name of the subdivision. This element is only present if
SubdivisionCode
is also present.
subdivisionName
- The name of the subdivision. This element is only present if
SubdivisionCode
is also present.public String getSubdivisionName()
The name of the subdivision. This element is only present if
SubdivisionCode
is also present.
SubdivisionCode
is also present.public GeoLocationDetails withSubdivisionName(String subdivisionName)
The name of the subdivision. This element is only present if
SubdivisionCode
is also present.
subdivisionName
- The name of the subdivision. This element is only present if
SubdivisionCode
is also present.public String toString()
toString
in class Object
Object.toString()
public GeoLocationDetails clone()
Copyright © 2018. All rights reserved.