| net.sf.saxon.expr.MappingFunction
All known Subclasses: net.sf.saxon.expr.PathExpression, net.sf.saxon.instruct.ForEach, net.sf.saxon.expr.UntypedAtomicConverter, net.sf.saxon.expr.AtomicSequenceConverter, net.sf.saxon.expr.SimpleMappingExpression, net.sf.saxon.instruct.CopyOf, net.sf.saxon.functions.StandardCollectionURIResolver, net.sf.saxon.functions.NumberFn, net.sf.saxon.instruct.ForEachGroup, net.sf.saxon.sort.TupleSorter, net.sf.saxon.expr.NumericPromoter,
MappingFunction | public interface MappingFunction (Code) | | MappingFunction is an interface that must be satisfied by an object passed to a
MappingIterator. It represents an object which, given an Item, can return a
SequenceIterator that delivers a sequence of zero or more Items.
|
Method Summary | |
public Object | map(Item item, XPathContext context) Map one item to a sequence.
Parameters: item - The item to be mapped.If context is supplied, this must be the same as context.currentItem(). Parameters: context - The processing context. |
map | public Object map(Item item, XPathContext context) throws XPathException(Code) | | Map one item to a sequence.
Parameters: item - The item to be mapped.If context is supplied, this must be the same as context.currentItem(). Parameters: context - The processing context. Some mapping functions use this because they requirecontext information. Some mapping functions modify the context by maintaining the context itemand position. In other cases, the context may be null. either (a) a SequenceIterator over the sequence of items that the supplied inputitem maps to, or (b) an Item if it maps to a single item, or (c) null if it maps to an emptysequence. |
|
|