Module org.apache.jena.querybuilder
Class ValuesHandler
java.lang.Object
org.apache.jena.arq.querybuilder.handlers.ValuesHandler
- All Implemented Interfaces:
Handler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAll(ValuesHandler handler) Add the ValuesHandler values to this values Handler.voidaddValueRow(Collection<org.apache.jena.graph.Node> values) Add the values for the variables.voidaddValueVar(org.apache.jena.sparql.core.Var var, Collection<org.apache.jena.graph.Node> nodes) Add a variable to the value statement.org.apache.jena.sparql.syntax.ElementDatavoidbuild()Called by the build process for this handler to perform any adjustments to the query before the build completes.voidclear()List<org.apache.jena.sparql.core.Var>booleanisEmpty()voidSet the values for variables managed by the handler implementation.
-
Constructor Details
-
ValuesHandler
public ValuesHandler()Constructor. -
ValuesHandler
public ValuesHandler(org.apache.jena.query.Query query)
-
-
Method Details
-
asElement
public org.apache.jena.sparql.syntax.ElementData asElement() -
isEmpty
public boolean isEmpty() -
setVars
Description copied from interface:HandlerSet the values for variables managed by the handler implementation. This method is called by the builder to set values handled by this Handler implementation. -
build
public void build()Description copied from interface:HandlerCalled 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. -
addValueVar
public void addValueVar(org.apache.jena.sparql.core.Var var, Collection<org.apache.jena.graph.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.- Parameters:
var- The variable to add.
-
addValueRow
Add the values for the variables. There must be one value for each value var.- Parameters:
values- the collection of values to add.
-
addAll
Add the ValuesHandler values to this values Handler.- Parameters:
handler- the handler that has the values to add.
-
clear
public void clear() -
getValuesVars
-
getValuesMap
-