## Uses of Class
org.eclipse.rdf4j.model.util.ModelException

- Packages that use ModelException
  Package | Description
  --- | ---
  org.eclipse.rdf4j.model.util | Helper classes for working with RDF models.

- - ### Uses of ModelException in org.eclipse.rdf4j.model.util

    Methods in org.eclipse.rdf4j.model.util that return types with arguments of type ModelException
    Modifier and Type | Method and Description
    --- | ---
    `static java.util.function.Supplier<ModelException>` | Models.`modelException(String message)` Creates a `Supplier` of `ModelException` objects that be passed to `Optional.orElseThrow(Supplier)` to generate exceptions as necessary.

    Methods in org.eclipse.rdf4j.model.util that throw ModelException
    Modifier and Type | Method and Description
    --- | ---
    `static <C extends Collection<Value>> C` | RDFCollections.`asValues(Model m, Resource head, C collection, Resource... contexts)` Converts an RDF Collection to a Java `Collection` of `Value` objects.
    `static void` | RDFCollections.`consumeValues(Model m, Resource head, java.util.function.Consumer<Value> consumer, Resource... contexts)` Reads an RDF Collection starting with the supplied list head from the supplied `Model` and sends each collection member `Value` to the supplied `Consumer` function.
    `static void` | RDFContainers.`consumeValues(Model m, Resource container, IRI containerType, java.util.function.Consumer<Value> consumer, Resource... contexts)` Reads an RDF Container starting with the supplied containter head from the supplied `Model` and sends each collection member `Value` to the supplied `Consumer` function.
    `static <C extends Collection<Value>> C` | RDFContainers.`toValues(IRI containerType, Model m, Resource container, C collection, Resource... contexts)` Converts an RDF Containter to a Java `Collection` of `Value` objects.

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