Class RestrictedPositionScrutinizer


public class RestrictedPositionScrutinizer extends StatementScrutinizer
  • Field Details

    • scopeConstraintQid

      public String scopeConstraintQid
    • scopeConstraintPid

      public String scopeConstraintPid
    • scopeConstraintValueQid

      public String scopeConstraintValueQid
    • scopeConstraintQualifierQid

      public String scopeConstraintQualifierQid
    • scopeConstraintReferenceQid

      public String scopeConstraintReferenceQid
  • Constructor Details

    • RestrictedPositionScrutinizer

      public RestrictedPositionScrutinizer()
  • Method Details

    • prepareDependencies

      public boolean prepareDependencies()
      Description copied from class: EditScrutinizer
      Prepare the dependencies(i.e. constraint-related pids and qids) needed by the scrutinizer. Called before EditScrutinizer.batchIsBeginning().
      Specified by:
      prepareDependencies in class EditScrutinizer
      Returns:
      false if any necessary dependency is missing, true otherwise.
    • 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, RestrictedPositionScrutinizer.SnakPosition position, boolean added)
    • scrutinize

      public void scrutinize(org.wikidata.wdtk.datamodel.interfaces.Snak snak, org.wikidata.wdtk.datamodel.interfaces.EntityIdValue entityId, RestrictedPositionScrutinizer.SnakPosition position, boolean added)
    • positionAllowed

      public boolean positionAllowed(org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue pid, RestrictedPositionScrutinizer.SnakPosition position)