Package org.eclipse.rdf4j.sparqlbuilder.constraint.propertypath

## Class ZeroOrOnePath

- java.lang.Object
- - org.eclipse.rdf4j.sparqlbuilder.constraint.propertypath.ZeroOrOnePath

- All Implemented Interfaces:
    `PropertyPath`, `QueryElement`, `RdfPredicate`

      public class ZeroOrOnePath
      extends Object
      implements PropertyPath

  Since:
    4.0.0
  Author:
    Florian Kleedorfer

- - ### Field Summary

    - ### Fields inherited from interface org.eclipse.rdf4j.sparqlbuilder.rdf.RdfPredicate

      `a`

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `ZeroOrOnePath​(PropertyPath path)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `String` | `getQueryString()` |

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

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

- - ### Constructor Detail

    - #### ZeroOrOnePath

          public ZeroOrOnePath​(PropertyPath path)

  - ### Method Detail

    - #### getQueryString

          public String getQueryString()

      Specified by:
        `getQueryString` in interface `QueryElement`
      Returns:
        the String representing the SPARQL syntax of this element