Class ItemTypeCheckingFunction

  • All Implemented Interfaces:
    ItemMappingFunction

    public class ItemTypeCheckingFunction
    extends java.lang.Object
    implements 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 Detail

      • ItemTypeCheckingFunction

        public ItemTypeCheckingFunction​(ItemType requiredItemType,
                                        RoleDiagnostic role,
                                        Expression failingExpression,
                                        Configuration config)
        Create the type-checking function
        Parameters:
        requiredItemType - the item type that all items in the sequence must conform to
        role - information for error messages
        failingExpression - the location of the expression for error messages
        config - the Saxon configuration