Package net.sf.saxon.expr
Class ItemMapper
- java.lang.Object
-
- net.sf.saxon.expr.ItemMapper
-
- All Implemented Interfaces:
ItemMappingFunction
public class ItemMapper extends java.lang.Object implements ItemMappingFunction
ItemMapper is an implementation ofItemMappingFunction
that wraps a function typically supplied as a lambda expression.NOTE: Java allows a lambda expression to be used wherever an
ItemMappingFunction
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 anItemMapper
as a wrapper.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ItemMapper.Lambda
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Item
mapItem(Item item)
Map one item to another item.static ItemMapper
of(ItemMapper.Lambda lambda)
-
-
-
Method Detail
-
of
public static ItemMapper of(ItemMapper.Lambda lambda)
-
mapItem
public Item mapItem(Item item) throws XPathException
Map one item to another item.- Specified by:
mapItem
in interfaceItemMappingFunction
- Parameters:
item
- The input item to be mapped.- Returns:
- either the output item, or null.
- Throws:
XPathException
- if a dynamic error occurs
-
-