com.xmlcalabash.runtime
Class XSelect
java.lang.Object
com.xmlcalabash.runtime.XSelect
- All Implemented Interfaces:
- ReadablePipe
public class XSelect
- extends java.lang.Object
- implements ReadablePipe
Select.java
Copyright 2008 Mark Logic Corporation.
Portions Copyright 2007 Sun Microsystems, Inc.
All rights reserved.
The contents of this file are subject to the terms of either the GNU
General Public License Version 2 only ("GPL") or the Common
Development and Distribution License("CDDL") (collectively, the
"License"). You may not use this file except in compliance with the
License. You can obtain a copy of the License at
https://runtime.dev.java.net/public/CDDL+GPL.html or
docs/CDDL+GPL.txt in the distribution. See the License for the
specific language governing permissions and limitations under the
License. When distributing the software, include this License Header
Notice in each file and include the License file at docs/CDDL+GPL.txt.
Ideally, I'd like this code to perform the selections in a lazy fashion, but that's
hard because it has to be possible to answer questions about how many documents
will be returned. So for now, I'm just doing it all up front.
Created by IntelliJ IDEA.
User: ndw
Date: Oct 10, 2008
Time: 10:13:58 PM
To change this template use File | Settings | File Templates.
Constructor Summary |
XSelect(XProcRuntime runtime,
XStep forStep,
ReadablePipe readFrom,
java.lang.String xpathExpr,
net.sf.saxon.s9api.XdmNode context)
Creates a new instance of Select |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
XSelect
public XSelect(XProcRuntime runtime,
XStep forStep,
ReadablePipe readFrom,
java.lang.String xpathExpr,
net.sf.saxon.s9api.XdmNode context)
- Creates a new instance of Select
canReadSequence
public void canReadSequence(boolean sequence)
- Specified by:
canReadSequence
in interface ReadablePipe
readSequence
public boolean readSequence()
- Specified by:
readSequence
in interface ReadablePipe
resetReader
public void resetReader()
- Specified by:
resetReader
in interface ReadablePipe
moreDocuments
public boolean moreDocuments()
- Specified by:
moreDocuments
in interface ReadablePipe
closed
public boolean closed()
- Specified by:
closed
in interface ReadablePipe
documentCount
public int documentCount()
- Specified by:
documentCount
in interface ReadablePipe
documents
public DocumentSequence documents()
- Specified by:
documents
in interface ReadablePipe
setReader
public void setReader(Step step)
- Specified by:
setReader
in interface ReadablePipe
read
public net.sf.saxon.s9api.XdmNode read()
throws net.sf.saxon.s9api.SaxonApiException
- Specified by:
read
in interface ReadablePipe
- Throws:
net.sf.saxon.s9api.SaxonApiException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object