01: package net.sf.saxon.om;
02:
03: import net.sf.saxon.trans.XPathException;
04: import net.sf.saxon.value.Value;
05:
06: /**
07: * This interface is an extension to the SequenceIterator interface; it represents
08: * a SequenceIterator that is based on an in-memory representation of a sequence,
09: * and that is therefore capable of returned a SequenceValue containing all the items
10: * in the sequence.
11: */
12:
13: public interface GroundedIterator extends SequenceIterator {
14:
15: /**
16: * Return a Value containing all the items in the sequence returned by this
17: * SequenceIterator. This should be an "in-memory" value, not a Closure.
18: * @return the corresponding Value
19: */
20:
21: public Value materialize() throws XPathException;
22: }
23:
24: //
25: // The contents of this file are subject to the Mozilla Public License Version 1.0 (the "License");
26: // you may not use this file except in compliance with the License. You may obtain a copy of the
27: // License at http://www.mozilla.org/MPL/
28: //
29: // Software distributed under the License is distributed on an "AS IS" basis,
30: // WITHOUT WARRANTY OF ANY KIND, either express or implied.
31: // See the License for the specific language governing rights and limitations under the License.
32: //
33: // The Original Code is: all this file.
34: //
35: // The Initial Developer of the Original Code is Michael H. Kay.
36: //
37: // Portions created by (your name) are Copyright (C) (your legal entity). All Rights Reserved.
38: //
39: // Contributor(s): none.
40: //
|