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

public abstract class ValueImpl extends Object implements Value
Abstract Jackson implementation of Value.
Author:
Fredo Erxleben, Markus Kroetzsch
  • Field Details

    • JSON_VALUE_TYPE_STRING

      public static final String JSON_VALUE_TYPE_STRING
      String used to denote the string value type in JSON.
      See Also:
    • JSON_VALUE_TYPE_TIME

      public static final String JSON_VALUE_TYPE_TIME
      String used to denote the time value type in JSON.
      See Also:
    • JSON_VALUE_TYPE_GLOBE_COORDINATES

      public static final String JSON_VALUE_TYPE_GLOBE_COORDINATES
      String used to denote the globe coordinates value type in JSON.
      See Also:
    • JSON_VALUE_TYPE_ENTITY_ID

      public static final String JSON_VALUE_TYPE_ENTITY_ID
      String used to denote the entity id value type in JSON.
      See Also:
    • JSON_VALUE_TYPE_QUANTITY

      public static final String JSON_VALUE_TYPE_QUANTITY
      String used to denote the quantity value type in JSON.
      See Also:
    • JSON_VALUE_TYPE_MONOLINGUAL_TEXT

      public static final String JSON_VALUE_TYPE_MONOLINGUAL_TEXT
      String used to denote the monolingual text value type in JSON.
      See Also:
  • Constructor Details

    • ValueImpl

      public ValueImpl(String type)
      Constructor. Creates a value object with the given JSON type.
      Parameters:
      type - JSON type constant
  • Method Details

    • getType

      public String getType()
      Returns the JSON type string of this value. Only for use by Jackson during serialization.
      Returns:
      the JSON type string