Package net.sf.saxon.expr
Class ItemTypeCheckingFunction
java.lang.Object
net.sf.saxon.expr.ItemTypeCheckingFunction
- All Implemented Interfaces:
ItemMappingFunction
A mapping function for use in conjunction with an
ItemMappingIterator
that checks that
all the items in a sequence are instances of a given item type-
Constructor Summary
ConstructorsConstructorDescriptionItemTypeCheckingFunction
(ItemType requiredItemType, Supplier<RoleDiagnostic> roleSupplier, Location locator, Configuration config) Create the type-checking function -
Method Summary
-
Constructor Details
-
ItemTypeCheckingFunction
public ItemTypeCheckingFunction(ItemType requiredItemType, Supplier<RoleDiagnostic> roleSupplier, Location locator, Configuration config) Create the type-checking function- Parameters:
requiredItemType
- the item type that all items in the sequence must conform toroleSupplier
- information for error messageslocator
- the location of the expression for error messagesconfig
- the Saxon configuration
-
-
Method Details
-
mapItem
Description copied from interface:ItemMappingFunction
Map one item to another item.- Specified by:
mapItem
in interfaceItemMappingFunction
- Parameters:
item
- The input item to be mapped.- Returns:
- either the output item, or null.
- Throws:
XPathException
- if a dynamic error occurs
-