public static Object toData(TypedLiteral lit) {
    if (lit == null) throw new IllegalArgumentException("Can't convert null literal");
    Conversion<?> c = uriConversions.get(lit.getDataType());
    if (c == null) throw new IllegalArgumentException("Don't know how to convert literal of type " + lit.getDataType());
    return c.data(lit.getLexical());
  }
public static Object toData ( TypedLiteral lit ) { if ( lit == null ) throw new IllegalArgumentException ( "Can't convert null literal" ) ; Conversion < ? > c = uriConversions . get ( lit . getDataType ( ) ) ; if ( c == null ) throw new IllegalArgumentException ( "Don't know how to convert literal of type " + lit . getDataType ( ) ) ; return c . data ( lit . getLexical ( ) ) ; }
Convert from RDF typed literal to native Java object.
@param lit RDF typed literal
@return Java object converted from the lexical value based on the mappings specified by the literal datatype URI.