Interface Snak

All Known Subinterfaces:
NoValueSnak, SomeValueSnak, ValueSnak
All Known Implementing Classes:
NoValueSnakImpl, SnakImpl, SomeValueSnakImpl, ValueSnakImpl

public interface Snak
Snaks are the basic information structures used to describe Entities in Wikibase. They are an integral part of each Statement (which can be viewed as collection of Snaks about an Entity, together with a list of references).

The most basic (and most common) form of Snaks are property-value pairs, but other forms exist.

Author:
Markus Kroetzsch
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    accept(SnakVisitor<T> snakVisitor)
    Accept a SnakVisitor and return its output.
    Get the id of the property that this snak refers to.
  • Method Details

    • getPropertyId

      PropertyIdValue getPropertyId()
      Get the id of the property that this snak refers to.
      Returns:
      PropertyId of this Snak
    • accept

      <T> T accept(SnakVisitor<T> snakVisitor)
      Accept a SnakVisitor and return its output.
      Parameters:
      snakVisitor - the SnakVisitor
      Returns:
      output of the visitor