Package org.exist.xquery.value

Examples of org.exist.xquery.value.IntegerValue.toJavaObject()


                }
            } else {
                if(fnName.equals(QN_GET_RESOURCE_BY_ABSOLUTE_ID)) {
                   
                    final IntegerValue absoluteIdParam = (IntegerValue)args[0].itemAt(0);
                    BigInteger absoluteId = (BigInteger)absoluteIdParam.toJavaObject(BigInteger.class);
                   
                    final byte resourceType = absoluteId.testBit(0) ? DocumentImpl.BINARY_FILE : DocumentImpl.XML_FILE;
                    absoluteId = absoluteId.shiftRight(1);
                    final int documentId = absoluteId.and(BigInteger.valueOf(0xFFFFFFFF)).intValue();
                    absoluteId = absoluteId.shiftRight(32);
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.