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);
}
}
Aggregations