org.eclipse.rdf4j

## Class OpenRDFUtil

- java.lang.Object
- - org.eclipse.rdf4j.OpenRDFUtil

-     public class OpenRDFUtil
      extends Object

  General utility methods for OpenRDF/Sesame modules.
  Author:
    Arjohn Kampman

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `OpenRDFUtil()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `verifyContextNotNull(Resource... contexts)` Verifies that the supplied contexts parameter is not `null`, throwing an `IllegalArgumentException` if it is.

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

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

- - ### Constructor Detail

    - #### OpenRDFUtil

          public OpenRDFUtil()

  - ### Method Detail

    - #### verifyContextNotNull

          public static void verifyContextNotNull(Resource... contexts)

      Verifies that the supplied contexts parameter is not `null`, throwing an `IllegalArgumentException` if it is.

      The semantics of supplying `null` as the value of the `contexts` vararg is not completely clear; it can either be equivalent to supplying an empty array (i.e.: matching all statements disregarding context), or to supplying a `null`-Resource value (e.g.: matching all statements with no associated context). As we so far haven't been able to prefer one over the other, methods operating on contexts currently throw `IllegalArgumentException`s.

      Parameters:
        `contexts` - The parameter to check.
      Throws:
        `IllegalArgumentException` - If the supplied contexts parameter is `null`.

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