public abstract class JacksonSnak extends Object implements Snak
Snak.| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_SNAK_TYPE_NOVALUE
Type string used to denote novalue snaks in JSON.
|
static String |
JSON_SNAK_TYPE_SOMEVALUE
Type string used to denote somevalue snaks in JSON.
|
static String |
JSON_SNAK_TYPE_VALUE
Type string used to denote value snaks in JSON.
|
| Modifier | Constructor and Description |
|---|---|
protected |
JacksonSnak()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getProperty()
Returns the property id string.
|
PropertyIdValue |
getPropertyId()
Get the id of the property that this snak refers to.
|
void |
setProperty(String property)
Sets the property id string to the given value.
|
public static final String JSON_SNAK_TYPE_VALUE
public static final String JSON_SNAK_TYPE_SOMEVALUE
public static final String JSON_SNAK_TYPE_NOVALUE
protected JacksonSnak()
public String getProperty()
public void setProperty(String property)
property - new valuepublic PropertyIdValue getPropertyId()
SnakgetPropertyId in interface 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