Package net.sf.saxon.expr
Class SequenceMapper
- java.lang.Object
-
- net.sf.saxon.expr.SequenceMapper
-
- All Implemented Interfaces:
MappingFunction
public class SequenceMapper extends java.lang.Object implements MappingFunction
SequenceMapper is an implementation ofMappingFunction
that wraps a function typically supplied as a lambda expression.NOTE: Java allows a lambda expression to be used wherever a
MappingFunction
is needed, but C# does not (it's not possible in C# to have a class implementing a delegate). So if a lambda expression is wanted, use anSequenceMapper
as a wrapper.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
SequenceMapper.Lambda
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SequenceIterator
map(Item item)
Map one item to a sequencestatic SequenceMapper
of(SequenceMapper.Lambda lambda)
-
-
-
Method Detail
-
of
public static SequenceMapper of(SequenceMapper.Lambda lambda)
-
map
public SequenceIterator map(Item item) throws XPathException
Map one item to a sequence- Specified by:
map
in interfaceMappingFunction
- Parameters:
item
- The input item to be mapped.- Returns:
- the output sequence.
- Throws:
XPathException
- if a dynamic error occurs
-
-