T - Defines a subtype of item to be checkedItemMappingFunction<T,T>public class ItemTypeCheckingFunction<T extends Item> extends java.lang.Object implements ItemMappingFunction<T,T>
ItemMappingIterator that checks that
all the items in a sequence are instances of a given item type| Constructor | Description |
|---|---|
ItemTypeCheckingFunction(ItemType requiredItemType,
RoleLocator role,
javax.xml.transform.SourceLocator locator,
XPathContext context) |
Create the type-checking function
|
| Modifier and Type | Method | Description |
|---|---|---|
T |
mapItem(T item) |
Map one item to another item.
|
public ItemTypeCheckingFunction(ItemType requiredItemType, RoleLocator role, javax.xml.transform.SourceLocator locator, XPathContext context)
requiredItemType - the item type that all items in the sequence must conform torole - information for error messagescontext - the external evaluation contextpublic 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