public class JacksonValueSnak extends JacksonSnak implements ValueSnak
ValueSnak.JSON_SNAK_TYPE_NOVALUE, JSON_SNAK_TYPE_SOMEVALUE, JSON_SNAK_TYPE_VALUE| Constructor and Description |
|---|
JacksonValueSnak()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
accept(SnakVisitor<T> snakVisitor)
Accept a SnakVisitor and return its output.
|
boolean |
equals(Object obj) |
String |
getDatatype()
Returns the JSON datatype string.
|
JacksonValue |
getDatavalue()
Returns the snak value.
|
Value |
getValue()
Get the
Value of this Snak. |
int |
hashCode() |
void |
setDatatype(String datatype)
Sets the JSON datatype string to the given value.
|
void |
setDatavalue(JacksonValue datavalue)
Sets the snak value to the given value.
|
String |
toString() |
getProperty, getPropertyId, setPropertyclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetPropertyIdpublic JacksonValueSnak()
public Value getValue()
ValueSnakValue of this Snak.public String getDatatype()
public void setDatatype(String datatype)
datatype - new valuepublic void setDatavalue(JacksonValue datavalue)
datavalue - new valuepublic JacksonValue getDatavalue()
public <T> T accept(SnakVisitor<T> snakVisitor)
SnakCopyright © 2014–2015 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage