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_TIMEFields 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
ConstructorsConstructorDescriptionGlobeCoordinatesValueImpl(double latitude, double longitude, double precision, String globe) Constructor. -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(ValueVisitor<T> valueVisitor) Accept a ValueVisitor and return its output.booleangetGlobe()Get the IRI of the globe that these coordinates refer to.Get theItemIdValueof the globe that these coordinates refer to.doubleGet the latitude of this value in degrees.doubleGet the longitude of this value in degrees.doubleGet the precision of the value in degrees.org.wikidata.wdtk.datamodel.implementation.GlobeCoordinatesValueImpl.JacksonInnerGlobeCoordinatesgetValue()Returns the inner value helper object.inthashCode()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:GlobeCoordinatesValueGet 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:
getLatitudein interfaceGlobeCoordinatesValue- Returns:
- latitude in degrees
-
getLongitude
public double getLongitude()Description copied from interface:GlobeCoordinatesValueGet 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:
getLongitudein interfaceGlobeCoordinatesValue- Returns:
- longitude in degrees
-
getPrecision
public double getPrecision()Description copied from interface:GlobeCoordinatesValueGet 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:
getPrecisionin interfaceGlobeCoordinatesValue- Returns:
- precision in degrees
-
getGlobe
Description copied from interface:GlobeCoordinatesValueGet the IRI of the globe that these coordinates refer to. In most cases this isGlobeCoordinatesValue.GLOBE_EARTH.- Specified by:
getGlobein interfaceGlobeCoordinatesValue- Returns:
- IRI of a globe.
-
getGlobeItemId
Description copied from interface:GlobeCoordinatesValueGet theItemIdValueof the globe that these coordinates refer to.- Specified by:
getGlobeItemIdin interfaceGlobeCoordinatesValue
-
accept
Description copied from interface:ValueAccept a ValueVisitor and return its output. -
hashCode
public int hashCode() -
equals
-
toString
-