Package net.sf.saxon.expr
Class ForExpression.MappingAction
- java.lang.Object
-
- net.sf.saxon.expr.ForExpression.MappingAction
-
- All Implemented Interfaces:
ItemMappingFunction,MappingFunction
- Enclosing class:
- ForExpression
public static class ForExpression.MappingAction extends java.lang.Object implements MappingFunction, ItemMappingFunction
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 Modifier and Type Field Description protected XPathContextcontext
-
Constructor Summary
Constructors Constructor Description MappingAction(XPathContext context, int slotNumber, Expression action)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SequenceIteratormap(Item item)Map one item to a sequence.ItemmapItem(Item item)Map one item to another item.
-
-
-
Field Detail
-
context
protected XPathContext context
-
-
Constructor Detail
-
MappingAction
public MappingAction(XPathContext context, int slotNumber, Expression action)
-
-
Method Detail
-
map
public SequenceIterator map(Item item) throws XPathException
Description copied from interface:MappingFunctionMap one item to a sequence.- Specified by:
mapin interfaceMappingFunction- 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
public Item mapItem(Item item) throws XPathException
Description copied from interface:ItemMappingFunctionMap one item to another item.- Specified by:
mapItemin interfaceItemMappingFunction- Parameters:
item- The input item to be mapped.- Returns:
- either the output item, or null.
- Throws:
XPathException- if a dynamic error occurs
-
-