Class CastXSD

java.lang.Object
org.apache.jena.sparql.function.CastXSD

public class CastXSD extends Object
Code for all casting between XSD datatypes. From XPath and XQuery Functions and Operators v3.1
See Also:
  • Method Details

    • cast

      public static NodeValue cast(NodeValue nv, org.apache.jena.datatypes.xsd.XSDDatatype castType)
      Cast a NodeValue to an XSD datatype. This includes "by value" so 1e0 (an xsd:double) casts to 1 (an xsd:integer)
      Parameters:
      nv -
      castType -
      Returns:
      NodeValue
      Throws:
      ExprEvalException