| 1 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 2 | // Copyright (c) 2018 Saxonica Limited. |
| 3 | // This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. |
| 4 | // If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. |
| 5 | // This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. |
| 6 | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 7 | |
| 8 | package net.sf.saxon.tree.iter; |
| 9 | |
| 10 | import net.sf.saxon.value.AtomicValue; |
| 11 | |
| 12 | |
| 13 | /** |
| 14 | * A SequenceIterator is used to iterate over a sequence. An AtomicIterator |
| 15 | * is a SequenceIterator that returns atomic values and throws no checked exceptions. |
| 16 | */ |
| 17 | |
| 18 | public interface AtomicIterator extends UnfailingIterator<AtomicValue> { |
| 19 | |
| 20 | /** |
| 21 | * Get the next atomic value in the sequence. <BR> |
| 22 | * |
| 23 | * @return the next Item. If there are no more items, return null. |
| 24 | */ |
| 25 | |
| 26 | AtomicValue next(); |
| 27 | |
| 28 | |
| 29 | } |
| 30 |