Class ItemTypeCheckingFunction<T extends Item>

java.lang.Object
net.sf.saxon.expr.ItemTypeCheckingFunction<T>
Type Parameters:
T - Defines a subtype of item to be checked
All Implemented Interfaces:
ItemMappingFunction<T,T>

public class ItemTypeCheckingFunction<T extends Item> extends Object implements ItemMappingFunction<T,T>
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 Details

    • ItemTypeCheckingFunction

      public ItemTypeCheckingFunction(ItemType requiredItemType, RoleLocator role, SourceLocator locator, XPathContext context)
      Create the type-checking function
      Parameters:
      requiredItemType - the item type that all items in the sequence must conform to
      role - information for error messages
      context - the external evaluation context
  • Method Details