Class ValuesHandler
java.lang.Object
org.apache.jena.arq.querybuilder.handlers.ValuesHandler
- All Implemented Interfaces:
Handler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAll
(ValuesHandler handler) Add the ValuesHandler values to this values Handler.void
addValueRow
(Collection<Node> values) Add the values for the variables.void
addValueVar
(Var var, Collection<Node> nodes) Add a variable to the value statement.void
build()
Called by the build process for this handler to perform any adjustments to the query before the build completes.void
clear()
boolean
isEmpty()
void
Set the values for variables managed by the handler implementation.
-
Constructor Details
-
ValuesHandler
public ValuesHandler()Constructor. -
ValuesHandler
-
-
Method Details
-
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
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
-