Package net.sf.saxon.expr
Class ForExpression.MappingAction
java.lang.Object
net.sf.saxon.expr.ForExpression.MappingAction
- All Implemented Interfaces:
ItemMappingFunction<Item<?>,,Item<?>> MappingFunction<Item<?>,Item<?>>
- Enclosing class:
- ForExpression
public static class ForExpression.MappingAction
extends Object
implements MappingFunction<Item<?>,Item<?>>, ItemMappingFunction<Item<?>,Item<?>>
The MappingAction represents the action to be taken for each item in the
source sequence. It acts as the MappingFunction for the mapping iterator.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
context
-
-
Constructor Details
-
MappingAction
-
-
Method Details
-
map
Description copied from interface:MappingFunctionMap one item to a sequence.- Specified by:
mapin interfaceMappingFunction<Item<?>,Item<?>> - Parameters:
item- The item to be mapped.- Returns:
- one of the following: (a) a SequenceIterator over the sequence of items that the supplied input item maps to, or (b) null if it maps to an empty sequence.
- Throws:
XPathException- if a dynamic error occurs
-
mapItem
Description copied from interface:ItemMappingFunctionMap one item to another item.- Specified by:
mapItemin interfaceItemMappingFunction<Item<?>,Item<?>> - Parameters:
item- The input item to be mapped.- Returns:
- either the output item, or null.
- Throws:
XPathException- if a dynamic error occurs
-