Class QueryElementCollection<T extends QueryElement>

Type Parameters:
T - the type of QueryElements in the collection
All Implemented Interfaces:
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 Details

  • Constructor Details

    • QueryElementCollection

      protected QueryElementCollection()
    • QueryElementCollection

      protected QueryElementCollection(String delimiter)
    • QueryElementCollection

      protected QueryElementCollection(String delimiter, Collection<T> elements)
  • Method Details

    • isEmpty

      public boolean isEmpty()
      if this collection is empty
    • addElements

      protected void addElements(T... queryElements)
    • addElements

      protected <O> void addElements(Function<? super O,? extends T> mapper, O... os)
    • getQueryString

      public String getQueryString()
      Specified by:
      getQueryString in interface QueryElement
      the String representing the SPARQL syntax of this element