Class SomeValueSnakImpl
java.lang.Object
org.wikidata.wdtk.datamodel.implementation.SnakImpl
org.wikidata.wdtk.datamodel.implementation.SomeValueSnakImpl
- All Implemented Interfaces:
Snak
,SomeValueSnak
Jackson implementation of
SomeValueSnak
.- Author:
- Fredo Erxleben
-
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
SomeValueSnakImpl
(String property, String siteIri) Constructor for deserialization from JSON with Jackson.SomeValueSnakImpl
(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
-
SomeValueSnakImpl
Constructor.- Parameters:
property
- the id of the property used for this some value snak
-
SomeValueSnakImpl
Constructor for deserialization from JSON with Jackson.
-
-
Method Details
-
getSnakType
- Specified by:
getSnakType
in classSnakImpl
-
accept
Description copied from interface:Snak
Accept a SnakVisitor and return its output. -
hashCode
public int hashCode() -
equals
-
toString
-