Class QueryElementCollection<T extends QueryElement>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String delimiter  
      protected java.util.Collection<T> elements  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected <O> void addElements​(java.util.function.Function<? super O,​? extends T> mapper, O... os)  
      protected void addElements​(T... queryElements)  
      java.lang.String getQueryString()  
      boolean isEmpty()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • elements

        protected java.util.Collection<T extends QueryElement> elements
      • delimiter

        private java.lang.String delimiter
    • Constructor Detail

      • QueryElementCollection

        protected QueryElementCollection()
      • QueryElementCollection

        protected QueryElementCollection​(java.lang.String delimiter)
      • QueryElementCollection

        protected QueryElementCollection​(java.lang.String delimiter,
                                         java.util.Collection<T> elements)
    • Method Detail

      • isEmpty

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

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

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

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