Class ValuesHandler

All Implemented Interfaces:

public class ValuesHandler extends Object implements Handler
  • Constructor Details

    • ValuesHandler

      public ValuesHandler()
    • ValuesHandler

      public ValuesHandler(Query query)
  • Method Details

    • asElement

      public ElementData asElement()
    • isEmpty

      public boolean isEmpty()
    • 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
      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
    • addValueVar

      public void addValueVar(Var var, Collection<Node> nodes)
      Add a variable to the value statement. A variable may only be added once. Attempting to add the same variable multiple times will be silently ignored.
      var - The variable to add.
    • addValueRow

      public void addValueRow(Collection<Node> values)
      Add the values for the variables. There must be one value for each value var.
      values - the collection of values to add.
    • addAll

      public void addAll(ValuesHandler handler)
      Add the ValuesHandler values to this values Handler.
      handler - the handler that has the values to add.
    • clear

      public void clear()
    • getValuesVars

      public List<Var> getValuesVars()
    • getValuesMap

      public Map<Var,List<Node>> getValuesMap()