public class ItemTypeCheckingFunction<T extends Item<?>> extends Object implements ItemMappingFunction<T,T>
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,
Expression failingExpression,
Configuration config)
Create the type-checking function
|
ItemTypeCheckingFunction(ItemType requiredItemType,
RoleDiagnostic role,
Location locator,
Configuration config) |
public ItemTypeCheckingFunction(ItemType requiredItemType, RoleDiagnostic role, Expression failingExpression, Configuration config)
requiredItemType - the item type that all items in the sequence must conform torole - information for error messagesfailingExpression - the location of the expression for error messagesconfig - the Saxon configurationpublic ItemTypeCheckingFunction(ItemType requiredItemType, RoleDiagnostic role, Location locator, Configuration config)
public T mapItem(T item) throws XPathException
ItemMappingFunctionmapItem in interface ItemMappingFunction<T extends Item<?>,T extends Item<?>>item - The input item to be mapped.XPathException - if a dynamic error occurs