Package net.sf.saxon.expr
Interface ItemMappingFunction
- All Known Implementing Classes:
AtomicSequenceConverter.AtomicSequenceMappingFunction
,AtomicSequenceConverter.ToStringMappingFunction
,EmptyTextNodeRemover
,ForExpression.MappingAction
,FunctionSequenceCoercer.Coercer
,IntegratedFunctionCall.ConfigurationCheckingFunction
,ItemFilter
,ItemMapper
,ItemTypeCheckingFunction
,WherePopulated
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
ItemMappingFunction is an interface that must be satisfied by an object passed to a
ItemMappingIterator. It represents an object which, given an Item, can return either
another Item, or null.
NOTE: Java allows a lambda expression to be used where an ItemMappingFunction
is needed, but C# does not (it's not possible in C# to have a class implementing
a delegate). So if a delegate is wanted, use ItemMapper
, to ensure that
it works in both languages.
-
Method Summary
-
Method Details
-
mapItem
Map one item to another item.- Parameters:
item
- The input item to be mapped.- Returns:
- either the output item, or null.
- Throws:
XPathException
- if a dynamic error occurs
-