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 of QueryElements 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
  • Constructor Details

    • 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)
    • StandardQueryElementCollection

      protected StandardQueryElementCollection(String operatorName, String delimiter, Function<String,String> wrapperMethod, Collection<T> collection)
  • Method Details

    • setOperatorName

      protected void setOperatorName(String operatorName)
    • setOperatorName

      protected void setOperatorName(String operatorName, boolean pad)
    • setWrapperMethod

      protected void setWrapperMethod(Function<String,String> wrapperMethod)
    • resetWrapperMethod

      protected void resetWrapperMethod()
    • printBodyIfEmpty

      protected void printBodyIfEmpty(boolean printBodyIfEmpty)
    • printNameIfEmpty

      protected void printNameIfEmpty(boolean printNameIfEmpty)
    • getQueryString

      public String getQueryString()
      Specified by:
      getQueryString in interface QueryElement
      Overrides:
      getQueryString in class QueryElementCollection<T extends QueryElement>
      Returns:
      the String representing the SPARQL syntax of this element