SnakJacksonNoValueSnak, JacksonSomeValueSnak, JacksonValueSnakpublic abstract class JacksonSnak extends java.lang.Object implements Snak
Snak.| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
JSON_SNAK_TYPE_NOVALUE |
Type string used to denote novalue snaks in JSON.
|
static java.lang.String |
JSON_SNAK_TYPE_SOMEVALUE |
Type string used to denote somevalue snaks in JSON.
|
static java.lang.String |
JSON_SNAK_TYPE_VALUE |
Type string used to denote value snaks in JSON.
|
| Modifier | Constructor | Description |
|---|---|---|
protected |
JacksonSnak() |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getProperty() |
Returns the property id string.
|
PropertyIdValue |
getPropertyId() |
Get the id of the property that this snak refers to.
|
Value |
getValue() |
Get the
Value of this Snak, or null if the snak has no specified
value. |
void |
setProperty(java.lang.String property) |
Sets the property id string to the given value.
|
public static final java.lang.String JSON_SNAK_TYPE_VALUE
public static final java.lang.String JSON_SNAK_TYPE_SOMEVALUE
public static final java.lang.String JSON_SNAK_TYPE_NOVALUE
protected JacksonSnak()
public java.lang.String getProperty()
public void setProperty(java.lang.String property)
property - new valuepublic PropertyIdValue getPropertyId()
SnakgetPropertyId in interface SnakCopyright © 2014–2017 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage