info.informatica.text.mapper
Class RegexpReplaceMapper

java.lang.Object
  extended by info.informatica.text.mapper.SingleTextMapper
      extended by info.informatica.text.mapper.RegexpReplaceMapper
All Implemented Interfaces:
TextMapper

public class RegexpReplaceMapper
extends SingleTextMapper
implements TextMapper

Version:
1.02
Author:
amengual at informatica dot info

Constructor Summary
RegexpReplaceMapper()
           
 
Method Summary
 void init(String s)
          Initialize the mapper
 String map(String canon, String unmatch)
          Maps arg to another String and returns it.
 
Methods inherited from class info.informatica.text.mapper.SingleTextMapper
addMapping, init, map, map
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface info.informatica.text.mapper.TextMapper
addMapping, init, map, map
 

Constructor Detail

RegexpReplaceMapper

public RegexpReplaceMapper()
Method Detail

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 mapped
unmatch - 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.