Class ConstructHandler

  • All Implemented Interfaces:
    Handler

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

      Constructors 
      Constructor Description
      ConstructHandler​(Query query)
      The constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addAll​(ConstructHandler handler)
      Add all the construct handlers from the handler argument to this construct.
      void addConstruct​(Triple t)
      Add a triple to the construct statement.
      void build()
      Called by the build process for this handler to perform any adjustments to the query before the build completes.
      void setVars​(java.util.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 Detail

      • ConstructHandler

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

      • 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​(java.util.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