public class ItemMapper extends java.lang.Object implements ItemMappingFunction
ItemMappingFunction
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 an ItemMapper
as a wrapper.
Modifier and Type | Class and Description |
---|---|
static interface |
ItemMapper.Lambda |
Modifier and Type | Method and Description |
---|---|
Item |
mapItem(Item item)
Map one item to another item.
|
static ItemMapper |
of(ItemMapper.Lambda lambda) |
public static ItemMapper of(ItemMapper.Lambda lambda)
public Item mapItem(Item item) throws XPathException
mapItem
in interface ItemMappingFunction
item
- The input item to be mapped.XPathException
- if a dynamic error occursCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.