Class SnakScrutinizer

    • Constructor Detail

      • SnakScrutinizer

        public SnakScrutinizer()
    • Method Detail

      • scrutinize

        public abstract void scrutinize​(org.wikidata.wdtk.datamodel.interfaces.Snak snak,
                                        org.wikidata.wdtk.datamodel.interfaces.EntityIdValue entityId,
                                        boolean added)
        This is the method that subclasses should override to implement their checks.
        Parameters:
        snak - : the snak to inspect
        entityId - : the entity on which it is going to (dis)appear
        added - : whether this snak is going to be added or deleted
      • scrutinize

        public void scrutinize​(org.wikidata.wdtk.datamodel.interfaces.Statement statement,
                               org.wikidata.wdtk.datamodel.interfaces.EntityIdValue entityId,
                               boolean added)
        Description copied from class: StatementScrutinizer
        The method that should be overridden by subclasses, implementing the checks on one statement
        Specified by:
        scrutinize in class StatementScrutinizer
        Parameters:
        statement - : the statement to scrutinize
        entityId - : the id of the entity on which this statement is made or removed
        added - : whether this statement was added or deleted
      • scrutinizeSnakSet

        protected void scrutinizeSnakSet​(Iterator<org.wikidata.wdtk.datamodel.interfaces.Snak> snaks,
                                         org.wikidata.wdtk.datamodel.interfaces.EntityIdValue entityId,
                                         boolean added)