Examples of toNodeSet()


Examples of org.exist.xquery.value.Sequence.toNodeSet()

                //We might not be sure of the return type at this level
        Type.subTypeOf(whereExpr.returnsType(), Type.ITEM)) {
      final Sequence seq = whereExpr.eval(contextSequence);
      //But *now*, we are ;-)
      if (Type.subTypeOf(whereExpr.returnsType(), Type.NODE)) {
        final NodeSet nodes = seq.toNodeSet();
        // if the where expression returns a node set, check the context
        // node of each node in the set          
        final NodeSet contextSet = contextSequence.toNodeSet();
        final boolean contextIsVirtual = contextSet instanceof VirtualNodeSet;           
        final NodeSet result = new ExtArrayNodeSet();
View Full Code Here

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

     * @see org.exist.xquery.value.Sequence#toNodeSet()
     */
    public NodeSet toNodeSet() throws XPathException {
        final ValueSequence seq = new ValueSequence();
        seq.add( this );
        return( seq.toNodeSet() );
    }

    public MemoryNodeSet toMemNodeSet() throws XPathException {
        return( new ValueSequence( this ).toMemNodeSet() );
    }
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.