ValueJacksonValueEntityId, JacksonValueGlobeCoordinates, JacksonValueMonolingualText, JacksonValueQuantity, JacksonValueString, JacksonValueTimepublic abstract class JacksonValue extends java.lang.Object implements Value
Value.| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
JSON_VALUE_TYPE_ENTITY_ID |
String used to denote the entity id value type in JSON.
|
static java.lang.String |
JSON_VALUE_TYPE_GLOBE_COORDINATES |
String used to denote the globe coordinates value type in JSON.
|
static java.lang.String |
JSON_VALUE_TYPE_MONOLINGUAL_TEXT |
String used to denote the monolingual text value type in JSON.
|
static java.lang.String |
JSON_VALUE_TYPE_QUANTITY |
String used to denote the quantity value type in JSON.
|
static java.lang.String |
JSON_VALUE_TYPE_STRING |
String used to denote the string value type in JSON.
|
static java.lang.String |
JSON_VALUE_TYPE_TIME |
String used to denote the time value type in JSON.
|
| Constructor | Description |
|---|---|
JacksonValue() |
Constructor.
|
JacksonValue(java.lang.String type) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getType() |
Returns the JSON type string of this value.
|
void |
setType(java.lang.String type) |
Sets the JSON type string to the given value.
|
public static final java.lang.String JSON_VALUE_TYPE_STRING
public static final java.lang.String JSON_VALUE_TYPE_TIME
public static final java.lang.String JSON_VALUE_TYPE_GLOBE_COORDINATES
public static final java.lang.String JSON_VALUE_TYPE_ENTITY_ID
public static final java.lang.String JSON_VALUE_TYPE_QUANTITY
public static final java.lang.String JSON_VALUE_TYPE_MONOLINGUAL_TEXT
public JacksonValue()
public JacksonValue(java.lang.String type)
type - JSON type constantpublic void setType(java.lang.String type)
type - new valuepublic java.lang.String getType()
Copyright © 2014–2017 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage