Class ValuesServiceQueryResolver.VisitorToCheckServiceVariables

java.lang.Object
org.apache.jena.sparql.syntax.ElementVisitorBase
se.liu.ida.hefquin.engine.ValuesServiceQueryResolver.VisitorToCheckServiceVariables
All Implemented Interfaces:
org.apache.jena.sparql.syntax.ElementVisitor
Enclosing class:
ValuesServiceQueryResolver

protected static class ValuesServiceQueryResolver.VisitorToCheckServiceVariables extends org.apache.jena.sparql.syntax.ElementVisitorBase
Checks for each visited SERVICE clause that has a service variable whether that variable is in a given list of permitted variables. If it comes across a service variable that is not in the list, then it remembers this variable, to be accessed via getDiscoveredVar().
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.apache.jena.sparql.core.Var
     
    protected final List<org.apache.jena.sparql.core.Var>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    VisitorToCheckServiceVariables(List<org.apache.jena.sparql.core.Var> permittedVars)
    Creates the visitor with the list of variables that are permitted as service variables.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.jena.sparql.core.Var
    The result may be null, indicating that all service variables that the visitor came across have been permitted ones.
    void
    visit(org.apache.jena.sparql.syntax.ElementService e)
     

    Methods inherited from class org.apache.jena.sparql.syntax.ElementVisitorBase

    visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • permittedVars

      protected final List<org.apache.jena.sparql.core.Var> permittedVars
    • discoveredVar

      protected org.apache.jena.sparql.core.Var discoveredVar
  • Constructor Details

    • VisitorToCheckServiceVariables

      public VisitorToCheckServiceVariables(List<org.apache.jena.sparql.core.Var> permittedVars)
      Creates the visitor with the list of variables that are permitted as service variables.
  • Method Details

    • visit

      public void visit(org.apache.jena.sparql.syntax.ElementService e)
      Specified by:
      visit in interface org.apache.jena.sparql.syntax.ElementVisitor
      Overrides:
      visit in class org.apache.jena.sparql.syntax.ElementVisitorBase
    • getDiscoveredVar

      public org.apache.jena.sparql.core.Var getDiscoveredVar()
      The result may be null, indicating that all service variables that the visitor came across have been permitted ones.