public class JacksonDatatypeId extends Object implements DatatypeIdValue
DatatypeIdValue. This is not actually
present in JSON but needed to satisfy the interface.| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_DT_COMMONS_MEDIA
String used to refer to the property datatype
DatatypeIdValue.DT_COMMONS_MEDIA in JSON. |
static String |
JSON_DT_GLOBE_COORDINATES
String used to refer to the property datatype
DatatypeIdValue.DT_GLOBE_COORDINATES in JSON. |
static String |
JSON_DT_ITEM
String used to refer to the property datatype
DatatypeIdValue.DT_ITEM in JSON. |
static String |
JSON_DT_MONOLINGUAL_TEXT
String used to refer to the property datatype
DatatypeIdValue.DT_MONOLINGUAL_TEXT in JSON. |
static String |
JSON_DT_QUANTITY
String used to refer to the property datatype
DatatypeIdValue.DT_QUANTITY in JSON. |
static String |
JSON_DT_STRING
String used to refer to the property datatype
DatatypeIdValue.DT_STRING in JSON. |
static String |
JSON_DT_TIME
String used to refer to the property datatype
DatatypeIdValue.DT_TIME in JSON. |
static String |
JSON_DT_URL
String used to refer to the property datatype
DatatypeIdValue.DT_ITEM in JSON. |
DT_COMMONS_MEDIA, DT_GLOBE_COORDINATES, DT_ITEM, DT_MONOLINGUAL_TEXT, DT_QUANTITY, DT_STRING, DT_TIME, DT_URL| Constructor and Description |
|---|
JacksonDatatypeId(String jsonDatatype)
Constructs an object representing the datatype id from a string denoting
the datatype.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
accept(ValueVisitor<T> valueVisitor)
Accept a ValueVisitor and return its output.
|
boolean |
equals(Object o) |
static String |
getDatatypeIriFromJsonDatatype(String jsonDatatype)
Returns the WDTK datatype IRI for the property datatype as represented by
the given JSON datatype string.
|
String |
getIri()
Get the IRI of this entity.
|
int |
hashCode() |
String |
toString() |
public static final String JSON_DT_ITEM
DatatypeIdValue.DT_ITEM in JSON.public static final String JSON_DT_GLOBE_COORDINATES
DatatypeIdValue.DT_GLOBE_COORDINATES in JSON.public static final String JSON_DT_URL
DatatypeIdValue.DT_ITEM in JSON.public static final String JSON_DT_COMMONS_MEDIA
DatatypeIdValue.DT_COMMONS_MEDIA in JSON.public static final String JSON_DT_TIME
DatatypeIdValue.DT_TIME in JSON.public static final String JSON_DT_QUANTITY
DatatypeIdValue.DT_QUANTITY in JSON.public static final String JSON_DT_STRING
DatatypeIdValue.DT_STRING in JSON.public static final String JSON_DT_MONOLINGUAL_TEXT
DatatypeIdValue.DT_MONOLINGUAL_TEXT in JSON.public JacksonDatatypeId(String jsonDatatype) throws IllegalArgumentException
TODO Review the utility of this constructor.
jsonDatatype - denotes the datatype which to represent; case-sensitiveIllegalArgumentException - if the given datatype string could not be matched to a known
datatype or was nullpublic static String getDatatypeIriFromJsonDatatype(String jsonDatatype)
jsonDatatype - the JSON datatype string; case-sensitiveIllegalArgumentException - if the given datatype string is not knownpublic String getIri()
IriIdentifiedValuegetIri in interface IriIdentifiedValuepublic <T> T accept(ValueVisitor<T> valueVisitor)
ValueCopyright © 2014 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage