public abstract class SnakImpl 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 |
---|---|
|
SnakImpl(PropertyIdValue property)
Constructor.
|
protected |
SnakImpl(String id,
String siteIri)
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.
|
abstract String |
getSnakType() |
public static final String JSON_SNAK_TYPE_VALUE
public static final String JSON_SNAK_TYPE_SOMEVALUE
public static final String JSON_SNAK_TYPE_NOVALUE
public SnakImpl(PropertyIdValue property)
public String getProperty()
public PropertyIdValue getPropertyId()
Snak
getPropertyId
in interface Snak
public abstract String getSnakType()
Copyright © 2014–2024 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage