Module org.apache.jena.querybuilder
Class HandlerBlock
java.lang.Object
org.apache.jena.arq.querybuilder.handlers.HandlerBlock
A class to handle all the handlers of a query builder and keep them in sync
as needed.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAll
(AggregationHandler handler) Add the aggregation handler contents to this prolog handler.void
addAll
(ConstructHandler handler) Add the construct handler contents to this prolog handler.void
addAll
(DatasetHandler handler) Add the dataset handler contents to this prolog handler.void
addAll
(HandlerBlock handler) Add all of the handlers in the handler block to this one.void
addAll
(PrologHandler handler) Add the prolog handler contents to this prolog handler.void
addAll
(SelectHandler handler) Add the select handler contents to this prolog handler.void
addAll
(SolutionModifierHandler handler) Add the solution modifier handler contents to this prolog handler.void
addAll
(ValuesHandler handler) Add the values handler contents to this prolog handler.void
addAll
(WhereHandler handler) Add the where handler contents to this prolog handler.void
build()
Build all the enclosed handlers in the proper order.Get the aggregation handler.Get the construct handler.Get the dataset handler.Get the solution modifier handler.Get the prolog handler.Get the select handler.Get the value handler.Get the where handler.void
Set the variables in all the enclosed handlers in the proper order.
-
Constructor Details
-
HandlerBlock
public HandlerBlock(org.apache.jena.query.Query query) Constructor.- Parameters:
query
- The query we are working with.
-
-
Method Details
-
getAggregationHandler
Get the aggregation handler.- Returns:
- the aggregation handler.
-
getConstructHandler
Get the construct handler.- Returns:
- the construct handler or null.
-
getDatasetHandler
Get the dataset handler.- Returns:
- the dataset handler.
-
getPrologHandler
Get the prolog handler.- Returns:
- the prolog handler.
-
getSelectHandler
Get the select handler.- Returns:
- the select handler or null.
-
getModifierHandler
Get the solution modifier handler.- Returns:
- the solution modifier handler.
-
getWhereHandler
Get the where handler.- Returns:
- the where handler.
-
getValueHandler
Get the value handler.- Returns:
- the value handler.
-
addAll
Add the prolog handler contents to this prolog handler.- Parameters:
handler
- The prolog handler to add to this one.
-
addAll
Add the aggregation handler contents to this prolog handler.- Parameters:
handler
- The aggregation handler to add to this one.
-
addAll
Add the construct handler contents to this prolog handler. If this construct handler is null or the handler argument is null this method does nothing.- Parameters:
handler
- The construct handler to add to this one.
-
addAll
Add the dataset handler contents to this prolog handler.- Parameters:
handler
- The dataset handler to add to this one.
-
addAll
Add the solution modifier handler contents to this prolog handler.- Parameters:
handler
- The solution modifier handler to add to this one.
-
addAll
Add the select handler contents to this prolog handler. If this select handler is null or the handler argument is null this method does nothing.- Parameters:
handler
- The construct handler to add to this one.
-
addAll
Add the where handler contents to this prolog handler.- Parameters:
handler
- The where handler to add to this one.
-
addAll
Add the values handler contents to this prolog handler.- Parameters:
handler
- The values handler to add to this one.
-
addAll
Add all of the handlers in the handler block to this one. Any handler that is null or is null in the handler argument are properly skipped.- Parameters:
handler
- The handler block to add to this one.
-
setVars
Set the variables in all the enclosed handlers in the proper order.- Parameters:
values
- The map of values to set.
-
build
public void build()Build all the enclosed handlers in the proper order.
-