Search in sources :

Example 1 with Sequence

use of org.expath.tools.model.Sequence in project exist by eXist-db.

the class EXistSequence method next.

@Override
public Sequence next() throws ToolsException {
    try {
        final Item item = sequenceIterator.nextItem();
        final org.exist.xquery.value.Sequence singleton = (org.exist.xquery.value.Sequence) item;
        return new EXistSequence(singleton, context);
    } catch (final XPathException xpe) {
        throw new ToolsException(xpe.getMessage(), xpe);
    }
}
Also used : Item(org.exist.xquery.value.Item) ToolsException(org.expath.tools.ToolsException) XPathException(org.exist.xquery.XPathException) Sequence(org.expath.tools.model.Sequence)

Aggregations

XPathException (org.exist.xquery.XPathException)1 Item (org.exist.xquery.value.Item)1 ToolsException (org.expath.tools.ToolsException)1 Sequence (org.expath.tools.model.Sequence)1