Class StandardQueryElementCollection<T extends QueryElement>
java.lang.Object
org.eclipse.rdf4j.sparqlbuilder.core.QueryElementCollection<T>
org.eclipse.rdf4j.sparqlbuilder.core.StandardQueryElementCollection<T>
- Type Parameters:
T
- the type ofQueryElement
s in the collection
- All Implemented Interfaces:
QueryElement
- Direct Known Subclasses:
Dataset
,Expression
,GroupBy
,Having
,OrderBy
,PrefixDeclarations
,RdfPredicateObjectList
,TriplesTemplate
public abstract class StandardQueryElementCollection<T extends QueryElement>
extends QueryElementCollection<T>
A
QueryElementCollection
that follows a more standard way of converting to a query string-
Field Summary
Fields inherited from class org.eclipse.rdf4j.sparqlbuilder.core.QueryElementCollection
elements
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
protected
StandardQueryElementCollection(String delimeter)
protected
StandardQueryElementCollection(String operatorName, String delimeter)
protected
StandardQueryElementCollection(String operatorName, String delimiter, Collection<T> collection)
protected
StandardQueryElementCollection(String operatorName, String delimiter, Function<String,String> wrapperMethod, Collection<T> collection)
protected
StandardQueryElementCollection(String delimeter, Collection<T> collection)
protected
StandardQueryElementCollection(String operatorName, Function<String,String> wrapperMethod)
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
printBodyIfEmpty(boolean printBodyIfEmpty)
protected void
printNameIfEmpty(boolean printNameIfEmpty)
protected void
protected void
setOperatorName(String operatorName)
protected void
setOperatorName(String operatorName, boolean pad)
protected void
setWrapperMethod(Function<String,String> wrapperMethod)
Methods inherited from class org.eclipse.rdf4j.sparqlbuilder.core.QueryElementCollection
addElements, addElements, isEmpty
-
Constructor Details
-
StandardQueryElementCollection
protected StandardQueryElementCollection() -
StandardQueryElementCollection
-
StandardQueryElementCollection
-
StandardQueryElementCollection
-
StandardQueryElementCollection
-
StandardQueryElementCollection
protected StandardQueryElementCollection(String operatorName, String delimiter, Collection<T> collection) -
StandardQueryElementCollection
-
-
Method Details
-
setOperatorName
-
setOperatorName
-
setWrapperMethod
-
resetWrapperMethod
protected void resetWrapperMethod() -
printBodyIfEmpty
protected void printBodyIfEmpty(boolean printBodyIfEmpty) -
printNameIfEmpty
protected void printNameIfEmpty(boolean printNameIfEmpty) -
getQueryString
- Specified by:
getQueryString
in interfaceQueryElement
- Overrides:
getQueryString
in classQueryElementCollection<T extends QueryElement>
- Returns:
- the String representing the SPARQL syntax of this element
-