|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.data.util.DataCellStringMapper
public final class DataCellStringMapper
Allow a mapping of arbitrary DataCell
s to
unique, well-behaved strings, for example for usage with external executables
that may frown upon parsing arbitrary strings. Keeps two maps for each
direction (DataCell
<-> String
) and creates new, unique
Strings for unknown DataCells.
Constructor Summary | |
---|---|
DataCellStringMapper()
Public constructor. |
Method Summary | |
---|---|
String |
dataCellToString(DataCell cell)
|
static DataCellStringMapper |
load(ConfigRO config)
Reads a DataCellStringMapper from given ConfigRO . |
String |
origStringToString(String origString)
|
void |
save(ConfigWO config)
Saves the DataCellStringMapper > to the given ConfigWO . |
DataCell |
stringToDataCell(String str)
|
String |
stringToOrigString(String str)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataCellStringMapper()
Method Detail |
---|
public String dataCellToString(DataCell cell)
cell
- DataCell
to be replaced
public String origStringToString(String origString)
origString
- the original 'ugly' string
public DataCell stringToDataCell(String str)
str
- string representation
DataCell
represented by the stringpublic String stringToOrigString(String str)
str
- string representation
public void save(ConfigWO config)
DataCellStringMapper
> to the given ConfigWO
.
config
- Save settings to.public static DataCellStringMapper load(ConfigRO config) throws InvalidSettingsException
DataCellStringMapper
from given ConfigRO
.
config
- to read the mapper from
DataCellStringMapper
object.
InvalidSettingsException
- If the settings could not be read.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |