org.eclipse.rdf4j.sparqlbuilder.core

## Class PrefixDeclarations

- java.lang.Object
- - org.eclipse.rdf4j.sparqlbuilder.core.QueryElementCollection<T>
  - - org.eclipse.rdf4j.sparqlbuilder.core.StandardQueryElementCollection<Prefix>
    - - org.eclipse.rdf4j.sparqlbuilder.core.PrefixDeclarations

- All Implemented Interfaces:
    QueryElement

      public class PrefixDeclarations
      extends StandardQueryElementCollection<Prefix>

  A collection of SPARQL Prefix declarations
  See Also:
    SPARQL Prefix

- - ### Field Summary

    - ### Fields inherited from class org.eclipse.rdf4j.sparqlbuilder.core.QueryElementCollection

      `elements`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `PrefixDeclarations()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `PrefixDeclarations` | `addPrefix(Prefix... prefixes)` Add prefix declarations to this collection

    - ### Methods inherited from class org.eclipse.rdf4j.sparqlbuilder.core.StandardQueryElementCollection

      `getQueryString, printBodyIfEmpty, printNameIfEmpty, resetWrapperMethod, setOperatorName, setOperatorName, setWrapperMethod`

    - ### Methods inherited from class org.eclipse.rdf4j.sparqlbuilder.core.QueryElementCollection

      `addElements, addElements, isEmpty`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### PrefixDeclarations

          public PrefixDeclarations()

  - ### Method Detail

    - #### addPrefix

          public PrefixDeclarations addPrefix(Prefix... prefixes)

      Add prefix declarations to this collection
      Parameters:
        `prefixes` -
      Returns:
        this

Copyright © 2015-2021 Eclipse Foundation. All Rights Reserved.