Class GlobeCoordinatesValueImpl
java.lang.Object
org.wikidata.wdtk.datamodel.implementation.ValueImpl
org.wikidata.wdtk.datamodel.implementation.GlobeCoordinatesValueImpl
- All Implemented Interfaces:
GlobeCoordinatesValue
,Value
Jackson implementation of
GlobeCoordinatesValue
.- Author:
- Fredo Erxleben, Antonin Delpeuch, Markus Kroetzsch
-
Field Summary
Fields inherited from class org.wikidata.wdtk.datamodel.implementation.ValueImpl
JSON_VALUE_TYPE_ENTITY_ID, JSON_VALUE_TYPE_GLOBE_COORDINATES, JSON_VALUE_TYPE_MONOLINGUAL_TEXT, JSON_VALUE_TYPE_QUANTITY, JSON_VALUE_TYPE_STRING, JSON_VALUE_TYPE_TIME
Fields inherited from interface org.wikidata.wdtk.datamodel.interfaces.GlobeCoordinatesValue
GLOBE_EARTH, GLOBE_MOON, PREC_ARCMINUTE, PREC_ARCSECOND, PREC_CENTI_ARCSECOND, PREC_CENTI_DEGREE, PREC_DECI_ARCSECOND, PREC_DECI_DEGREE, PREC_DEGREE, PREC_HUNDRED_MICRO_DEGREE, PREC_MICRO_DEGREE, PREC_MILLI_ARCSECOND, PREC_MILLI_DEGREE, PREC_TEN_DEGREE, PREC_TEN_MICRO_DEGREE
-
Constructor Summary
ConstructorDescriptionGlobeCoordinatesValueImpl
(double latitude, double longitude, double precision, String globe) Constructor. -
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(ValueVisitor<T> valueVisitor) Accept a ValueVisitor and return its output.boolean
getGlobe()
Get the IRI of the globe that these coordinates refer to.Get theItemIdValue
of the globe that these coordinates refer to.double
Get the latitude of this value in degrees.double
Get the longitude of this value in degrees.double
Get the precision of the value in degrees.org.wikidata.wdtk.datamodel.implementation.GlobeCoordinatesValueImpl.JacksonInnerGlobeCoordinates
getValue()
Returns the inner value helper object.int
hashCode()
toString()
-
Constructor Details
-
GlobeCoordinatesValueImpl
Constructor.- Parameters:
latitude
- the latitude of the coordinates in degreeslongitude
- the longitude of the coordinates in degreesprecision
- the precision of the coordinates in degreesglobe
- IRI specifying the celestial objects of the coordinates
-
-
Method Details
-
getValue
public org.wikidata.wdtk.datamodel.implementation.GlobeCoordinatesValueImpl.JacksonInnerGlobeCoordinates getValue()Returns the inner value helper object. Only for use by Jackson during serialization.- Returns:
- the inner globe coordinates value
-
getLatitude
public double getLatitude()Description copied from interface:GlobeCoordinatesValue
Get the latitude of this value in degrees. For Earth, the latitude value is generally the geographic latitude (as opposed to the geocentric latitude etc.). For other celestial bodies, the meaning of the latitude can vary. It is part of the semantics of the property to specify which coordinate system should be assumed for each globe (possibly depending on further information, such as qualifiers).- Specified by:
getLatitude
in interfaceGlobeCoordinatesValue
- Returns:
- latitude in degrees
-
getLongitude
public double getLongitude()Description copied from interface:GlobeCoordinatesValue
Get the longitude of this value in degrees. For celestial bodies other than Earth, the meaning of the longitude can vary. It is part of the semantics of the property to specify which coordinate system should be assumed for each globe (possibly depending on further information, such as qualifiers).- Specified by:
getLongitude
in interfaceGlobeCoordinatesValue
- Returns:
- longitude in degrees
-
getPrecision
public double getPrecision()Description copied from interface:GlobeCoordinatesValue
Get the precision of the value in degrees. This value indicates that both latitude and longitude might be off by that precision. Obviously, since the absolute distance of one degree may vary depending on the coordinates, this leads to a non-uniform notion of precision. For example, precision of one whole degree at coordinates 80N, 145E is a much smaller distance from the spot than the same precision at 10N, 145E.- Specified by:
getPrecision
in interfaceGlobeCoordinatesValue
- Returns:
- precision in degrees
-
getGlobe
Description copied from interface:GlobeCoordinatesValue
Get the IRI of the globe that these coordinates refer to. In most cases this isGlobeCoordinatesValue.GLOBE_EARTH
.- Specified by:
getGlobe
in interfaceGlobeCoordinatesValue
- Returns:
- IRI of a globe.
-
getGlobeItemId
Description copied from interface:GlobeCoordinatesValue
Get theItemIdValue
of the globe that these coordinates refer to.- Specified by:
getGlobeItemId
in interfaceGlobeCoordinatesValue
-
accept
Description copied from interface:Value
Accept a ValueVisitor and return its output. -
hashCode
public int hashCode() -
equals
-
toString
-