Class ConstructHandler

java.lang.Object
org.apache.jena.arq.querybuilder.handlers.ConstructHandler
All Implemented Interfaces:
Handler

public class ConstructHandler extends Object implements Handler
The handler for construct clauses.
  • Constructor Summary

    Constructors
    Constructor
    Description
    The constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Add all the construct handlers from the handler argument to this construct.
    void
    Add a triple to the construct statement.
    void
    Called by the build process for this handler to perform any adjustments to the query before the build completes.
    void
    setVars(Map<Var,Node> values)
    Set the values for variables managed by the handler implementation.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ConstructHandler

      public ConstructHandler(Query query)
      The constructor
      Parameters:
      query - The query that this handler will be modifying.
  • Method Details

    • addConstruct

      public void addConstruct(Triple t)
      Add a triple to the construct statement.
      Parameters:
      t - The triple to add.
    • addAll

      public void addAll(ConstructHandler handler)
      Add all the construct handlers from the handler argument to this construct.
      Parameters:
      handler - The construct handler to copy from.
    • setVars

      public void setVars(Map<Var,Node> values)
      Description copied from interface: Handler
      Set the values for variables managed by the handler implementation. This method is called by the builder to set values handled by this Handler implementation.
      Specified by:
      setVars in interface Handler
      Parameters:
      values - The map of variable to node value.
    • build

      public void build()
      Description copied from interface: Handler
      Called by the build process for this handler to perform any adjustments to the query before the build completes. The adjustments are made after setVars() has been called.
      Specified by:
      build in interface Handler