Package org.exist.xquery.value

Examples of org.exist.xquery.value.NumericValue.convertTo()


//        for(long i = ((IntegerValue)valueStart.convertTo(Type.INTEGER)).getLong();
//          i <= ((IntegerValue)valueEnd.convertTo(Type.INTEGER)).getLong(); i++) {
//          result.add(new IntegerValue(i));
//        }
        result = new RangeSequence((IntegerValue)valueStart.convertTo(Type.INTEGER),
              (IntegerValue)valueEnd.convertTo(Type.INTEGER));
          } else {
            //Quite unusual test : we accept integers but no other *typed* type
            if (!Type.subTypeOf(startSeq.itemAt(0).atomize().getType(), Type.INTEGER) &&
              !Type.subTypeOf(startSeq.itemAt(0).atomize().getType(), Type.UNTYPED_ATOMIC))
          {throw new XPathException(this, ErrorCodes.FORG0006, "Required type is " +
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.