/** * Get the mapping function used to implement this item check. This mapping function is applied * to each item in the input sequence. * * @param context The dynamic context used to evaluate the mapping function * @return the mapping function. This will be an identity mapping: the output sequence is the same * as the input sequence, unless the dynamic type checking reveals an error. */ public ItemMappingFunction<Item<?>, Item<?>> getMappingFunction(XPathContext context) { return new ItemTypeCheckingFunction(requiredItemType, role, getBaseExpression(), context.getConfiguration()); }
/** * Get the mapping function used to implement this item check. This mapping function is applied * to each item in the input sequence. * * @param context The dynamic context used to evaluate the mapping function * @return the mapping function. This will be an identity mapping: the output sequence is the same * as the input sequence, unless the dynamic type checking reveals an error. */ public ItemMappingFunction<Item<?>, Item<?>> getMappingFunction(XPathContext context) { return new ItemTypeCheckingFunction(requiredItemType, role, getBaseExpression(), context.getConfiguration()); }
RoleDiagnostic.VARIABLE, getVariableBinding(WindowClause.WINDOW_VAR).getVariableQName().getDisplayName(), 0); itemTypeChecker = new ItemTypeCheckingFunction<>( required, role, getLocation(), config); break;
RoleDiagnostic.VARIABLE, getVariableBinding(WindowClause.WINDOW_VAR).getVariableQName().getDisplayName(), 0); itemTypeChecker = new ItemTypeCheckingFunction<>( required, role, getLocation(), config); break;
new ItemTypeCheckingFunction<>(requiredItemType, role, locator, config); iterator = new ItemMappingIterator<>(iterator, itemChecker, true);
new ItemTypeCheckingFunction<>(requiredItemType, role, locator, config); iterator = new ItemMappingIterator<>(iterator, itemChecker, true);