Package net.sf.saxon.expr
Class SequenceMapper
java.lang.Object
net.sf.saxon.expr.SequenceMapper
- All Implemented Interfaces:
MappingFunction
SequenceMapper is an implementation of
MappingFunction
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 an SequenceMapper
as a wrapper.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionMap one item to a sequencestatic SequenceMapper
of
(SequenceMapper.Lambda lambda)
-
Method Details
-
of
-
map
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
-