Class QSValuePrinter

  • All Implemented Interfaces:
    org.wikidata.wdtk.datamodel.interfaces.ValueVisitor<String>

    public class QSValuePrinter
    extends Object
    implements org.wikidata.wdtk.datamodel.interfaces.ValueVisitor<String>
    Prints a Wikibase value as a string as required by QuickStatements. Format documentation: https://www.wikidata.org/wiki/Help:QuickStatements Any new entity id will be assumed to be the last one created, represented with "LAST". It is fine to do this assumption because we are working on edit batches previously scheduled by QuickStatementsUpdateScheduler.
    Author:
    Antonin Delpeuch
    • Constructor Detail

      • QSValuePrinter

        public QSValuePrinter()
    • Method Detail

      • visit

        public String visit​(org.wikidata.wdtk.datamodel.interfaces.EntityIdValue value)
        Specified by:
        visit in interface org.wikidata.wdtk.datamodel.interfaces.ValueVisitor<String>
      • visit

        public String visit​(org.wikidata.wdtk.datamodel.interfaces.GlobeCoordinatesValue value)
        Specified by:
        visit in interface org.wikidata.wdtk.datamodel.interfaces.ValueVisitor<String>
      • visit

        public String visit​(org.wikidata.wdtk.datamodel.interfaces.MonolingualTextValue value)
        Specified by:
        visit in interface org.wikidata.wdtk.datamodel.interfaces.ValueVisitor<String>
      • visit

        public String visit​(org.wikidata.wdtk.datamodel.interfaces.QuantityValue value)
        Specified by:
        visit in interface org.wikidata.wdtk.datamodel.interfaces.ValueVisitor<String>
      • visit

        public String visit​(org.wikidata.wdtk.datamodel.interfaces.StringValue value)
        Specified by:
        visit in interface org.wikidata.wdtk.datamodel.interfaces.ValueVisitor<String>
      • visit

        public String visit​(org.wikidata.wdtk.datamodel.interfaces.TimeValue value)
        Specified by:
        visit in interface org.wikidata.wdtk.datamodel.interfaces.ValueVisitor<String>
      • visit

        public String visit​(org.wikidata.wdtk.datamodel.interfaces.UnsupportedValue value)
        Specified by:
        visit in interface org.wikidata.wdtk.datamodel.interfaces.ValueVisitor<String>