net.sf.saxon.expr
Class UserFunctionCall.Flattener

java.lang.Object
  extended bynet.sf.saxon.expr.UserFunctionCall.Flattener
All Implemented Interfaces:
MappingFunction
Enclosing class:
UserFunctionCall

public static class UserFunctionCall.Flattener
extends java.lang.Object
implements MappingFunction

Mapping function that converts a sequence possibly containing embedded FunctionCallPackage items into one in which any such items are fully expanded


Constructor Summary
UserFunctionCall.Flattener()
           
 
Method Summary
 java.lang.Object map(Item item, XPathContext context)
          Map one item to a sequence.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserFunctionCall.Flattener

public UserFunctionCall.Flattener()
Method Detail

map

public java.lang.Object map(Item item,
                            XPathContext context)
                     throws XPathException
Map one item to a sequence.

Specified by:
map in interface MappingFunction
Parameters:
item - The item to be mapped. If context is supplied, this must be the same as context.currentItem().
context - The processing context. Some mapping functions use this because they require context information. Some mapping functions modify the context by maintaining the context item and position. In other cases, the context may be null.
Returns:
either (a) a SequenceIterator over the sequence of items that the supplied input item maps to, or (b) an Item if it maps to a single item, or (c) null if it maps to an empty sequence.
Throws:
XPathException