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
ConstructorsModifierConstructorDescriptionprotectedSomeValueSnakImpl(String property, String siteIri) Constructor for deserialization from JSON with Jackson.SomeValueSnakImpl(PropertyIdValue property) Constructor. -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(SnakVisitor<T> snakVisitor) Accept a SnakVisitor and return its output.booleaninthashCode()toString()Methods inherited from class org.wikidata.wdtk.datamodel.implementation.SnakImpl
getProperty, getPropertyIdMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
getSnakTypein classSnakImpl
-
accept
Description copied from interface:SnakAccept a SnakVisitor and return its output. -
hashCode
public int hashCode() -
equals
-
toString
-