Interface ItemMappingFunction<F extends Item,T extends Item>

All Known Implementing Classes:
AtomicSequenceConverter.AtomicSequenceMappingFunction, AtomicSequenceConverter.ToStringMappingFunction, EmptyTextNodeRemover, ForExpression.MappingAction, ItemTypeCheckingFunction, KeyFn.SubtreeFilter

public interface ItemMappingFunction<F extends Item,T extends Item>
ItemMappingFunction is an interface that must be satisfied by an object passed to a ItemMappingIterator. It represents an object which, given an Item, can return either another Item, or null.

The interface is generic, paramterized by F (from) the input item type, and T (to), the output item type

  • Method Summary

    Modifier and Type
    Method
    Description
    mapItem(F item)
    Map one item to another item.
  • Method Details

    • mapItem

      T mapItem(F item) throws XPathException
      Map one item to another item.
      Parameters:
      item - The input item to be mapped.
      Returns:
      either the output item, or null.
      Throws:
      XPathException - if a dynamic error occurs