Class FullyPropertySerializingValueSnak

  • All Implemented Interfaces:
    org.wikidata.wdtk.datamodel.interfaces.Snak, org.wikidata.wdtk.datamodel.interfaces.ValueSnak

    public class FullyPropertySerializingValueSnak
    extends org.wikidata.wdtk.datamodel.implementation.ValueSnakImpl
    A tweaked version of SnakImpl that serializes the full property (not just its PID), so that we can also get the label for that property and display it in the UI without having to query the remote server.
    Author:
    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

      Constructors 
      Constructor Description
      FullyPropertySerializingValueSnak​(org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue property, org.wikidata.wdtk.datamodel.interfaces.Value value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue getFullPropertyId()  
      • Methods inherited from class org.wikidata.wdtk.datamodel.implementation.ValueSnakImpl

        accept, equals, getDatatype, getDatavalue, getJsonPropertyTypeForValueType, getSnakType, getValue, hashCode, toString
      • Methods inherited from class org.wikidata.wdtk.datamodel.implementation.SnakImpl

        getProperty, getPropertyId
      • Methods inherited from interface org.wikidata.wdtk.datamodel.interfaces.Snak

        getPropertyId
    • Constructor Detail

      • FullyPropertySerializingValueSnak

        public FullyPropertySerializingValueSnak​(org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue property,
                                                 org.wikidata.wdtk.datamodel.interfaces.Value value)
    • Method Detail

      • getFullPropertyId

        public org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue getFullPropertyId()