Class QueryElementCollection<T extends QueryElement>
java.lang.Object
org.eclipse.rdf4j.sparqlbuilder.core.QueryElementCollection<T>
- Type Parameters:
T- the type ofQueryElements in the collection
- All Implemented Interfaces:
QueryElement
- Direct Known Subclasses:
Projection,RdfPredicateObjectListCollection,StandardQueryElementCollection
public abstract class QueryElementCollection<T extends QueryElement>
extends Object
implements QueryElement
A logical collection of query elements. Provides common functionality for elements which are collections of other
elements, especially in printing. Would have loved to have avoided making this public.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedQueryElementCollection(String delimiter) protectedQueryElementCollection(String delimiter, Collection<T> elements) -
Method Summary
Modifier and TypeMethodDescriptionprotected <O> voidaddElements(Function<? super O, ? extends T> mapper, O... os) protected voidaddElements(T... queryElements) booleanisEmpty()
-
Field Details
-
elements
-
-
Constructor Details
-
QueryElementCollection
protected QueryElementCollection() -
QueryElementCollection
-
QueryElementCollection
-
-
Method Details
-
isEmpty
public boolean isEmpty()- Returns:
- if this collection is empty
-
addElements
-
addElements
-
getQueryString
- Specified by:
getQueryStringin interfaceQueryElement- Returns:
- the String representing the SPARQL syntax of this element
-