Package io.goobi.viewer.model.misc
Class GeoLocation
java.lang.Object
io.goobi.viewer.model.misc.GeoLocation
GeoLocation class.
- Author:
- Florian Alpers
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for GeoLocation.GeoLocation(Double latitude, Double longitude) Constructor for GeoLocation.GeoLocation(org.json.JSONObject json) Constructor for GeoLocation. -
Method Summary
Modifier and TypeMethodDescriptionorg.json.JSONObjectgetAsJson.getInfo()Getter for the fieldinfo.Getter for the fieldlatitude.getLink()Getter for the fieldlink.Getter for the fieldlongitude.booleanisEmpty()isEmpty.voidSetter for the fieldinfo.voidsetLatitude(Double latitude) Setter for the fieldlatitude.voidSetter for the fieldlink.voidsetLongitude(Double longitude) Setter for the fieldlongitude.
-
Constructor Details
-
GeoLocation
public GeoLocation()Constructor for GeoLocation.
-
GeoLocation
Constructor for GeoLocation.
-
GeoLocation
public GeoLocation(org.json.JSONObject json) throws org.json.JSONException Constructor for GeoLocation.
- Parameters:
json- aJSONObjectobject.- Throws:
org.json.JSONException- if any.
-
-
Method Details
-
getLatitude
Getter for the field
latitude.- Returns:
- the langitude
-
setLatitude
Setter for the field
latitude.- Parameters:
latitude- aDoubleobject.
-
getLongitude
Getter for the field
longitude.- Returns:
- the longitude
-
setLongitude
Setter for the field
longitude.- Parameters:
longitude- the longitude to set
-
getAsJson
public org.json.JSONObject getAsJson()getAsJson.
- Returns:
- a
JSONObjectobject.
-
isEmpty
public boolean isEmpty()isEmpty.
- Returns:
- true if either latitude or longitude is not set or set to NULL
-
getInfo
Getter for the field
info.- Returns:
- the info
-
setInfo
Setter for the field
info.- Parameters:
info- the info to set
-
getLink
Getter for the field
link.- Returns:
- the link
-
setLink
Setter for the field
link.- Parameters:
link- the link to set
-