Package net.sf.saxon.s9api.streams
This package provides methods to manipulate XDM values using Java 8 streams. It provides an alternative to XPath navigation of XDM trees, avoiding the high parsing cost and poor compile-time diagnostics of XPath expressions, while being a much higher-level interface than DOM-style navigation from node to node.
-
Class Summary Class Description Predicates This non-instantiable class provides a number of useful implementations of thePredicate
interface, designed for use when navigating streams of XDM items.Step<T extends XdmItem> AStep
is a function that can be applied to an item to return a stream of items.Steps This non-instantiable class provides a number of useful implementations of theStep
interface, used to navigate XDM trees, typically as an argument toXdmValue.select(net.sf.saxon.s9api.streams.Step<T>)
.XdmCollectors This class contains a number of static methods that deliver implementations of theCollector
interface suitable for use with streams processing XDM nodes and other items.XdmStream<T extends XdmItem> XdmStream
extends the capabilities of the standard JDKStream
class. -
Exception Summary Exception Description XdmCollectors.MultipleItemException Unchecked exception that occurs when a collector method such asXdmCollectors.asAtomic()
orXdmCollectors.asOptionalNode()
is called, and the sequence contains more than one item.