|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.informatica.text.mapper.CombinedTextMapper
public class CombinedTextMapper
A mapper that combines all of the Textmapper types
| Constructor Summary | |
|---|---|
CombinedTextMapper()
|
|
CombinedTextMapper(Properties env)
|
|
| Method Summary | |
|---|---|
void |
addMapping(short a,
String b,
String c)
|
void |
addMapping(String b,
String c)
Adds a mapping rule between a and b |
void |
init(Reader re)
Initialize the mapper |
void |
init(short[] ma,
List<Object> mb,
List<String> mc)
|
void |
init(String initString)
Deprecated. |
String |
map(String canon)
Maps arg to another String and returns it. |
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 CombinedTextMapper()
public CombinedTextMapper(Properties env)
| 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 init(short[] ma,
List<Object> mb,
List<String> mc)
public void addMapping(String b,
String c)
TextMapper
addMapping in interface TextMapper
public void addMapping(short a,
String b,
String c)
public 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 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 | |||||||||