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