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