info.informatica.text.mapper
Class RegexpMapper
java.lang.Object
info.informatica.text.mapper.SingleTextMapper
info.informatica.text.mapper.RegexpMapper
- All Implemented Interfaces:
- TextMapper
public class RegexpMapper
- extends SingleTextMapper
- implements TextMapper
- Version:
- 1.00, julio 1999
- Author:
- amengual at informatica dot info
RegexpMapper
public RegexpMapper()
init
public void init(String s)
throws IOException,
MapperException
- Description copied from class:
SingleTextMapper
- Initialize the mapper
- Specified by:
init in interface TextMapper- Overrides:
init in class SingleTextMapper
- Parameters:
s - the String used to initialize the map
- Throws:
IOException
MapperException
map
public String map(String canon,
String unmatch)
- Description copied from interface:
TextMapper
- Maps
arg to another String and returns it.
- Specified by:
map in interface TextMapper- Specified by:
map in class SingleTextMapper
- Parameters:
canon - the String to be mappedunmatch - the String to be returned if the argument does not match any
mapping.
- Returns:
- the String in the "Range Set" resulting from the map, or
unmatch if arg was not contained in
the Domain Set, and the mapper therefore did not know how to map.