Class HandlerBlock

java.lang.Object
org.apache.jena.arq.querybuilder.handlers.HandlerBlock

public class HandlerBlock extends Object
A class to handle all the handlers of a query builder and keep them in sync as needed.
  • Constructor Details

    • HandlerBlock

      public HandlerBlock(Query query)
      Constructor.
      Parameters:
      query - The query we are working with.
  • Method Details

    • getAggregationHandler

      public AggregationHandler getAggregationHandler()
      Get the aggregation handler.
      Returns:
      the aggregation handler.
    • getConstructHandler

      public ConstructHandler getConstructHandler()
      Get the construct handler.
      Returns:
      the construct handler or null.
    • getDatasetHandler

      public DatasetHandler getDatasetHandler()
      Get the dataset handler.
      Returns:
      the dataset handler.
    • getPrologHandler

      public PrologHandler getPrologHandler()
      Get the prolog handler.
      Returns:
      the prolog handler.
    • getSelectHandler

      public SelectHandler getSelectHandler()
      Get the select handler.
      Returns:
      the select handler or null.
    • getModifierHandler

      public SolutionModifierHandler getModifierHandler()
      Get the solution modifier handler.
      Returns:
      the solution modifier handler.
    • getWhereHandler

      public WhereHandler getWhereHandler()
      Get the where handler.
      Returns:
      the where handler.
    • getValueHandler

      public ValuesHandler getValueHandler()
      Get the value handler.
      Returns:
      the value handler.
    • addAll

      public void addAll(PrologHandler handler)
      Add the prolog handler contents to this prolog handler.
      Parameters:
      handler - The prolog handler to add to this one.
    • addAll

      public void addAll(AggregationHandler handler)
      Add the aggregation handler contents to this prolog handler.
      Parameters:
      handler - The aggregation handler to add to this one.
    • addAll

      public void addAll(ConstructHandler handler)
      Add the construct handler contents to this prolog handler. If this construct handler is null or the handler argument is null this method does nothing.
      Parameters:
      handler - The construct handler to add to this one.
    • addAll

      public void addAll(DatasetHandler handler)
      Add the dataset handler contents to this prolog handler.
      Parameters:
      handler - The dataset handler to add to this one.
    • addAll

      public void addAll(SolutionModifierHandler handler)
      Add the solution modifier handler contents to this prolog handler.
      Parameters:
      handler - The solution modifier handler to add to this one.
    • addAll

      public void addAll(SelectHandler handler)
      Add the select handler contents to this prolog handler. If this select handler is null or the handler argument is null this method does nothing.
      Parameters:
      handler - The construct handler to add to this one.
    • addAll

      public void addAll(WhereHandler handler)
      Add the where handler contents to this prolog handler.
      Parameters:
      handler - The where handler to add to this one.
    • addAll

      public void addAll(ValuesHandler handler)
      Add the values handler contents to this prolog handler.
      Parameters:
      handler - The values handler to add to this one.
    • addAll

      public void addAll(HandlerBlock handler)
      Add all of the handlers in the handler block to this one. Any handler that is null or is null in the handler argument are properly skipped.
      Parameters:
      handler - The handler block to add to this one.
    • setVars

      public void setVars(Map<Var,Node> values)
      Set the variables in all the enclosed handlers in the proper order.
      Parameters:
      values - The map of values to set.
    • build

      public void build()
      Build all the enclosed handlers in the proper order.