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>
AQueryElementCollectionthat 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
Constructors Modifier Constructor Description protectedStandardQueryElementCollection()protectedStandardQueryElementCollection(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetQueryString()protected voidprintBodyIfEmpty(boolean printBodyIfEmpty)protected voidprintNameIfEmpty(boolean printNameIfEmpty)protected voidresetWrapperMethod()protected 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 Detail
-
StandardQueryElementCollection
protected StandardQueryElementCollection()
-
StandardQueryElementCollection
protected StandardQueryElementCollection(String delimeter)
-
StandardQueryElementCollection
protected StandardQueryElementCollection(String operatorName, String delimeter)
-
StandardQueryElementCollection
protected StandardQueryElementCollection(String delimeter, Collection<T> collection)
-
StandardQueryElementCollection
protected StandardQueryElementCollection(String operatorName, Function<String,String> wrapperMethod)
-
StandardQueryElementCollection
protected StandardQueryElementCollection(String operatorName, String delimiter, Collection<T> collection)
-
-
Method Detail
-
setOperatorName
protected void setOperatorName(String operatorName)
-
setOperatorName
protected void setOperatorName(String operatorName, boolean pad)
-
resetWrapperMethod
protected void resetWrapperMethod()
-
printBodyIfEmpty
protected void printBodyIfEmpty(boolean printBodyIfEmpty)
-
printNameIfEmpty
protected void printNameIfEmpty(boolean printNameIfEmpty)
-
getQueryString
public String getQueryString()
- Specified by:
getQueryStringin interfaceQueryElement- Overrides:
getQueryStringin classQueryElementCollection<T extends QueryElement>- Returns:
- the String representing the SPARQL syntax of this element
-
-