Package net.sf.saxon.value

Examples of net.sf.saxon.value.SequenceExtent


    public DocumentOrderIterator(SequenceIterator base, NodeOrderComparer comparer) throws XPathException {

        this.comparer = comparer;

        sequence = new SequenceExtent(base);
        //System.err.println("sort into document order: sequence length = " + sequence.getLength());
        if (sequence.getLength()>1) {
            //QuickSort.sort(this, 0, sequence.getLength()-1);
            GenericSorter.quickSort(0, sequence.getLength(), this);
            //GenericSorter.mergeSort(0, sequence.getLength(), this);
View Full Code Here


    public XdmValue(Iterable<XdmItem> items) {
        List values = new ArrayList();
        for (XdmItem item : items) {
            values.add(item.getUnderlyingValue());
        }
        value = new SequenceExtent(values);
    }
View Full Code Here

            values.add(item.getUnderlyingValue());
        }
        for (XdmItem item : otherValue) {
            values.add(item.getUnderlyingValue());
        }
        return new XdmValue(new SequenceExtent(values));
    }
View Full Code Here

     */

    public NodeList getChildNodes() {
        try {
            return new DOMNodeList(
                    new SequenceExtent(iterateAxis(Axis.CHILD)));
        } catch (XPathException err) {
            return null;
            // can't happen
        }
    }
View Full Code Here

                if (tagname.equals("*") || tagname.equals(next.getDisplayName())) {
                    nodes.add(next);
                }
            }
        }
        return new DOMNodeList(new SequenceExtent(nodes));
    }
View Full Code Here

                    (localName.equals("*") || localName.equals(next.getLocalPart()))) {
                    nodes.add(next);
                }
            }
        }
        return new DOMNodeList(new SequenceExtent(nodes));
    }
View Full Code Here

                    if (!forwards) {
                        if (children instanceof ReversibleIterator) {
                            children = (AxisIterator)((ReversibleIterator)children).getReverseIterator();
                        } else {
                            try {
                                children = new SequenceExtent(start.iterateAxis(Axis.CHILD)).reverseIterate();
                            } catch (XPathException e) {
                                throw new AssertionError(
                                        "Internal error in Navigator#descendantEnumeration: " + e.getMessage());
                                // shouldn't happen.
                            }
View Full Code Here

                return EmptySequence.getInstance();
            case 1:
                Item item = (Item)list.get(0);
                return Value.asValue(item);
            default:
                return new SequenceExtent(list);
        }
    }
View Full Code Here

        if (binding==null) {
            throw new IllegalStateException("saxon:assign binding has not been fixed up");
        }
        Value value = getSelectValue(context);
        if (value instanceof Closure) {
            value = new SequenceExtent(value.iterate(null));
        }
        if (binding.isGlobal()) {
            context.getController().getBindery().assignGlobalVariable((GlobalVariable)binding, value);
        } else {
            context.setLocalVariable(binding.getSlotNumber(), value);
View Full Code Here

                    max = x;
                    highest.clear();
                    highest.add(it);
                }
            }
            return new SequenceExtent(highest);
        } catch (NumberFormatException e) {
            return EmptySequence.getInstance();
        }
    }
View Full Code Here

TOP

Related Classes of net.sf.saxon.value.SequenceExtent

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.