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<Node> values) Add the values for the variables.voidaddValueVar(Var var, Collection<Node> nodes) Add a variable to the value statement.voidbuild()Called by the build process for this handler to perform any adjustments to the query before the build completes.voidclear()booleanisEmpty()voidSet 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: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
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
-