Interface TypeConverter

All Known Implementing Classes:
TypeConverterBase

public interface TypeConverter
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    org.apache.jena.sparql.expr.Expr
    toJava(org.apache.jena.sparql.expr.Expr expr)
    Convert an expression in such a way that the resulting expression has a simple mapping to a Java type.
    org.apache.jena.graph.Node
    Convert a Java object, assumed to be an instance of (a subclass of) javaClass, to a node having a datatype assignable to datatypeURI
  • Method Details

    • getDatatypeURI

      String getDatatypeURI()
    • getJavaClass

      Class<?> getJavaClass()
    • toJava

      org.apache.jena.sparql.expr.Expr toJava(org.apache.jena.sparql.expr.Expr expr)
      Convert an expression in such a way that the resulting expression has a simple mapping to a Java type. E.g. xsd:gYear -> Integer: (e) -> new E_DateTimeYear(e)
      Parameters:
      expr -
      Returns:
    • toRdf

      org.apache.jena.graph.Node toRdf(Object o)
      Convert a Java object, assumed to be an instance of (a subclass of) javaClass, to a node having a datatype assignable to datatypeURI
      Parameters:
      o -
      Returns: