Package io.goobi.viewer.model.misc
Class GeoLocationInfo
java.lang.Object
io.goobi.viewer.model.misc.GeoLocationInfo
GeoLocationInfo class.
- Author:
- Florian Alpers
-
Constructor Summary
ConstructorDescriptionConstructor for GeoLocationInfo.GeoLocationInfo
(org.json.JSONObject json) Constructor for GeoLocationInfo. -
Method Summary
Modifier and TypeMethodDescriptionorg.json.JSONObject
getAsJson.Getter for the fieldcenterLocation
.Getter for the fieldlocationList
.void
setCenterLocation
(GeoLocation centerLocation) Setter for the fieldcenterLocation
.void
setLocationList
(List<GeoLocation> locationList) Setter for the fieldlocationList
.
-
Constructor Details
-
GeoLocationInfo
public GeoLocationInfo()Constructor for GeoLocationInfo.
-
GeoLocationInfo
public GeoLocationInfo(org.json.JSONObject json) throws org.json.JSONException Constructor for GeoLocationInfo.
- Parameters:
json
- aJSONObject
object.- Throws:
org.json.JSONException
- if any.
-
-
Method Details
-
getAsJson
public org.json.JSONObject getAsJson()getAsJson.
- Returns:
- a
JSONObject
object.
-
getCenterLocation
Getter for the field
centerLocation
.- Returns:
- the centerLocation
-
setCenterLocation
Setter for the field
centerLocation
.- Parameters:
centerLocation
- the centerLocation to set
-
getLocationList
Getter for the field
locationList
.- Returns:
- the locationList
-
setLocationList
Setter for the field
locationList
.- Parameters:
locationList
- the locationList to set
-