public class ItemTypeCheckingFunction extends java.lang.Object implements ItemMappingFunction
ItemMappingIterator that checks that
all the items in a sequence are instances of a given item type| Constructor and Description |
|---|
ItemTypeCheckingFunction(ItemType requiredItemType,
RoleDiagnostic role,
Location locator,
Configuration config)
Create the type-checking function
|
| Modifier and Type | Method and Description |
|---|---|
Item |
mapItem(Item item)
Map one item to another item.
|
public ItemTypeCheckingFunction(ItemType requiredItemType, RoleDiagnostic role, Location locator, Configuration config)
requiredItemType - the item type that all items in the sequence must conform torole - information for error messageslocator - the location of the expression for error messagesconfig - the Saxon configurationpublic Item mapItem(Item item) throws XPathException
ItemMappingFunctionmapItem in interface ItemMappingFunctionitem - The input item to be mapped.XPathException - if a dynamic error occursCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.