Class CastXSD

    • 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