Examples of keepUnOrdered()


Examples of org.exist.xquery.value.ValueSequence.keepUnOrdered()

                compiled.getContext().updateContext(innerContext);
            }

            Sequence sequence = xqueryService.execute(compiled, exprContext, false);
            ValueSequence newSeq = new ValueSequence();
            newSeq.keepUnOrdered(unordered);
            boolean hasSupplements = false;
            for (int i = 0;  i < sequence.getItemCount(); i++) {
                //if (sequence.itemAt(i) instanceof StringValue) {
                if (Type.subTypeOf(sequence.itemAt(i).getType(),Type.STRING)) {
                    newSeq.add(new StringValue(((StringValue) sequence.itemAt(i)).getStringValue(true)));
View Full Code Here

Examples of org.exist.xquery.value.ValueSequence.keepUnOrdered()

            if (contextItem != null)
                {context.getProfiler().message(this, Profiler.START_SEQUENCES,
                    "CONTEXT ITEM", contextItem.toSequence());}
        }
        final ValueSequence result = new ValueSequence();
        result.keepUnOrdered(unordered);
        for(final Expression step : steps) {
            context.pushDocumentContext();
            try {
                final Sequence temp = step.eval(contextSequence, contextItem);
                if(temp != null && !temp.isEmpty()) {
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.