Class ValueImpl
java.lang.Object
org.wikidata.wdtk.datamodel.implementation.ValueImpl
- All Implemented Interfaces:
Value
- Direct Known Subclasses:
EntityIdValueImpl
,FormIdValueImpl
,GlobeCoordinatesValueImpl
,MonolingualTextValueImpl
,QuantityValueImpl
,SenseIdValueImpl
,StringValueImpl
,TimeValueImpl
,UnsupportedEntityIdValueImpl
,UnsupportedValueImpl
Abstract Jackson implementation of
Value
.- Author:
- Fredo Erxleben, Markus Kroetzsch
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
String used to denote the entity id value type in JSON.static final String
String used to denote the globe coordinates value type in JSON.static final String
String used to denote the monolingual text value type in JSON.static final String
String used to denote the quantity value type in JSON.static final String
String used to denote the string value type in JSON.static final String
String used to denote the time value type in JSON. -
Constructor Summary
-
Method Summary
-
Field Details
-
JSON_VALUE_TYPE_STRING
String used to denote the string value type in JSON.- See Also:
-
JSON_VALUE_TYPE_TIME
String used to denote the time value type in JSON.- See Also:
-
JSON_VALUE_TYPE_GLOBE_COORDINATES
String used to denote the globe coordinates value type in JSON.- See Also:
-
JSON_VALUE_TYPE_ENTITY_ID
String used to denote the entity id value type in JSON.- See Also:
-
JSON_VALUE_TYPE_QUANTITY
String used to denote the quantity value type in JSON.- See Also:
-
JSON_VALUE_TYPE_MONOLINGUAL_TEXT
String used to denote the monolingual text value type in JSON.- See Also:
-
-
Constructor Details
-
ValueImpl
Constructor. Creates a value object with the given JSON type.- Parameters:
type
- JSON type constant
-
-
Method Details
-
getType
Returns the JSON type string of this value. Only for use by Jackson during serialization.- Returns:
- the JSON type string
-