Module org.apache.jena.querybuilder
Class ValuesHandler
java.lang.Object
org.apache.jena.arq.querybuilder.handlers.ValuesHandler
- All Implemented Interfaces:
Handler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAll
(ValuesHandler handler) Add the ValuesHandler values to this values Handler.void
addValueRow
(Collection<org.apache.jena.graph.Node> values) Add the values for the variables.void
addValueVar
(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.ElementData
void
build()
Called by the build process for this handler to perform any adjustments to the query before the build completes.void
clear()
List<org.apache.jena.sparql.core.Var>
boolean
isEmpty()
void
Set 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: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. -
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. -
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
-