Package org.apache.jena.sparql.function
Class CastXSD
- java.lang.Object
-
- org.apache.jena.sparql.function.CastXSD
-
public class CastXSD extends java.lang.ObjectCode for all casting between XSD datatypes. From XPath and XQuery Functions and Operators v3.1- See Also:
FunctionCastXSD
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NodeValuecast(NodeValue nv, XSDDatatype castType)Cast a NodeValue to an XSD datatype.
-
-
-
Method Detail
-
cast
public static NodeValue cast(NodeValue nv, 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
-
-