F.4 FirstMatchMapper

This mapper supports an arbitrary number of nested mappers and returns the results of the first mapper that matches. This is different from composite mapper which collects the results of all matching children.

F.4.1 Examples

<mapper type="firstmatch">
                <mapper type="glob" from="*.txt" to="*.bak"/>
                <mapper type="glob" from="*.php" to="*.php"/>

Applying the mapper, you will get the following results from the following filenames:

Table F.4: Result of mapping