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 ofQueryElements 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
ConstructorsModifierConstructorDescriptionprotectedprotectedStandardQueryElementCollection(String delimeter) protectedStandardQueryElementCollection(String operatorName, String delimeter) protectedStandardQueryElementCollection(String operatorName, String delimiter, Collection<T> collection) protectedStandardQueryElementCollection(String operatorName, String delimiter, Function<String, String> wrapperMethod, Collection<T> collection) protectedStandardQueryElementCollection(String delimeter, Collection<T> collection) protectedStandardQueryElementCollection(String operatorName, Function<String, String> wrapperMethod) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprintBodyIfEmpty(boolean printBodyIfEmpty) protected voidprintNameIfEmpty(boolean printNameIfEmpty) protected voidprotected voidsetOperatorName(String operatorName) protected voidsetOperatorName(String operatorName, boolean pad) protected voidsetWrapperMethod(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:
getQueryStringin interfaceQueryElement- Overrides:
getQueryStringin classQueryElementCollection<T extends QueryElement>- Returns:
- the String representing the SPARQL syntax of this element
-