Class JenaAdapter

java.lang.Object
cz.cvut.kbss.ontodriver.jena.JenaAdapter
All Implemented Interfaces:
Wrapper

public class JenaAdapter extends Object implements Wrapper
Transformations between OntoDriver API-based values and Jena-based ones.

Implementation notes:

  • Method Details

    • simpleListHandler

      public SimpleListHandler simpleListHandler()
    • referencedListHandler

      public ReferencedListHandler referencedListHandler()
    • containerHandler

      public ContainerHandler containerHandler()
    • unwrap

      public <T> T unwrap(Class<T> cls) throws OntoDriverException
      Description copied from interface: Wrapper
      Returns an object that implements the given interface to allow access to non-standard methods, or standard methods not exposed by the proxy. If the receiver implements the interface then the result is the receiver or a proxy for the receiver. If the receiver is a wrapper and the wrapped object implements the interface then the result is the wrapped object or a proxy for the wrapped object. Otherwise return the the result of calling unwrap recursively on the wrapped object or a proxy for that result. If the receiver is not a wrapper and does not implement the interface, then an OntoDriverException is thrown.
      Specified by:
      unwrap in interface Wrapper
      Type Parameters:
      T - The type of the class modeled by this Class object
      Parameters:
      cls - The type of the required result
      Returns:
      An object implementing the interface
      Throws:
      OntoDriverException - If no matching object is found