|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.informatica.text.mapper.SingleTextMapper
public abstract class SingleTextMapper
Abstract base class for most text mappers
| Constructor Summary | |
|---|---|
SingleTextMapper()
|
|
| Method Summary | |
|---|---|
void |
addMapping(String a,
String b)
Adds a mapping rule between a and b |
void |
init(Reader re)
Initialize the mapper |
void |
init(String initString)
Deprecated. |
String |
map(String canon)
Maps arg to another String and returns it. |
abstract String |
map(String canon,
String unmatch)
Maps arg to another String and returns it. |
String |
map(String canon,
String unmatch,
String def)
Maps arg to another String and returns it. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SingleTextMapper()
| Method Detail |
|---|
public void init(String initString)
throws IOException,
MapperException
init in interface TextMapperinitString - the String used to initialize the map
IOException
MapperException
public void init(Reader re)
throws IOException,
MapperException
init in interface TextMapperre - the stream reader used to initialize the map
IOException
MapperException
public void addMapping(String a,
String b)
TextMapper
addMapping in interface TextMapperpublic String map(String canon)
TextMapperarg to another String and returns it.
map in interface TextMappercanon - the String to be mapped
null if arg was not in the Domain
Set (or if the mapping result was null itself).
public abstract String map(String canon,
String unmatch)
TextMapperarg to another String and returns it.
map in interface TextMappercanon - the String to be mappedunmatch - the String to be returned if the argument does not match any
mapping.
unmatch if arg was not contained in
the Domain Set, and the mapper therefore did not know how to map.
public String map(String canon,
String unmatch,
String def)
TextMapperarg to another String and returns it.
map in interface TextMappercanon - the String to be mappedunmatch - the String to be returned if the argument does not match any
mapping.def - the value to be returned if the argument maps to null.
unmatch if arg was not contained in
the Domain Set of the mapper, or def if the mapper
returned null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||