Package client.net.sf.saxon.ce.value

Examples of client.net.sf.saxon.ce.value.IntegerValue


    public Item next() {
        if (++currentValue > limit) {
            return null;
        }
        return new IntegerValue(currentValue);
    }
View Full Code Here


    public Item current() {
        if (currentValue > limit) {
            return null;
        } else {
            return new IntegerValue(currentValue);
        }
    }
View Full Code Here

        return found;
    }
   

    public TailCall processLeavingTail(final XPathContext context) throws XPathException {
        IntegerValue time = (IntegerValue)wait.evaluateItem(context);
        final CallTemplate.CallTemplatePackage pack = (CallTemplate.CallTemplatePackage)call.processLeavingTail(context);
        Timer t = new Timer() {
            public void run() {
                //Window.setTitle("Timer fired " + serial++);
              boolean success = false;
                logger.fine("processing ixsl:schedule-action");
              if (LogConfiguration.loggingIsEnabled() && LogController.traceIsEnabled()) {
                LogController.openTraceListener();
              }
                try {
                    TailCall tc = pack.processLeavingTail();
                    while (tc != null) {
                        tc = tc.processLeavingTail();
                    }
                    context.getController().getPendingUpdateList().apply(context);
                    success = true;
                } catch (Exception err) {
                  logger.log(Level.SEVERE, "In delayed event: " + err.getMessage());
                  if (SaxonceApi.doThrowJsExceptions()) {
                    throw new RuntimeException(err.getMessage());
                  }
                }
              if (LogConfiguration.loggingIsEnabled() && LogController.traceIsEnabled()) {
                LogController.closeTraceListener(success);
              }
            }
        };
        //Window.setTitle("Timer started " + serial + " (time " + time + "ms)");
        t.schedule(time.getIntValue());
        return null;
    }
View Full Code Here

            return EmptyIterator.getInstance();
        }
        int[] chars = ((StringValue)item).expand();
        IntegerValue[] codes = new IntegerValue[chars.length];
        for (int i=0; i<chars.length; i++) {
            codes[i] = new IntegerValue(chars[i]);
        }
        return new ArrayIterator(codes);
    }
View Full Code Here

            if (o instanceof Long) {
                long nr = ((Long)o).longValue();
                RegularGroupFormatter rgf = new RegularGroupFormatter(groupSize, groupSeparator);
                s = numberer.format(nr, (String)formatTokens.get(tok), rgf, letterValue, ordinal);
            } else if (o instanceof BigDecimal) {
                s = new IntegerValue((BigDecimal)o).getStringValue();
            } else {
                s = o.toString();
            }
            sb.append(s);
            tok++;
View Full Code Here

TOP

Related Classes of client.net.sf.saxon.ce.value.IntegerValue

Copyright © 2018 www.massapicom. 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.