Class NoValueSnakImpl
java.lang.Object
org.wikidata.wdtk.datamodel.implementation.SnakImpl
org.wikidata.wdtk.datamodel.implementation.NoValueSnakImpl
- All Implemented Interfaces:
NoValueSnak
,Snak
Jackson implementation of
NoValueSnak
.- Author:
- Fredo Erxleben, Antonin Delpeuch
-
Field Summary
Fields inherited from class org.wikidata.wdtk.datamodel.implementation.SnakImpl
JSON_SNAK_TYPE_NOVALUE, JSON_SNAK_TYPE_SOMEVALUE, JSON_SNAK_TYPE_VALUE
-
Constructor Summary
ModifierConstructorDescriptionprotected
NoValueSnakImpl
(String property, String siteIri) Constructor for deserialization from JSON with Jackson.NoValueSnakImpl
(PropertyIdValue property) Constructor. -
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(SnakVisitor<T> snakVisitor) Accept a SnakVisitor and return its output.boolean
int
hashCode()
toString()
Methods inherited from class org.wikidata.wdtk.datamodel.implementation.SnakImpl
getProperty, getPropertyId
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.wikidata.wdtk.datamodel.interfaces.Snak
getPropertyId
-
Constructor Details
-
NoValueSnakImpl
Constructor.- Parameters:
property
- the property id used by this no value snak
-
NoValueSnakImpl
Constructor for deserialization from JSON with Jackson.
-
-
Method Details
-
accept
Description copied from interface:Snak
Accept a SnakVisitor and return its output. -
hashCode
public int hashCode() -
equals
-
toString
-
getSnakType
- Specified by:
getSnakType
in classSnakImpl
-