public final class DataCellStringMapper extends Object
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 and Description |
---|
DataCellStringMapper()
Public constructor.
|
Modifier and Type | Method and Description |
---|---|
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) |
public String dataCellToString(DataCell cell)
cell
- DataCell
to be replacedpublic String origStringToString(String origString)
origString
- the original 'ugly' stringpublic DataCell stringToDataCell(String str)
str
- string representationDataCell
represented by the stringpublic String stringToOrigString(String str)
str
- string representationpublic 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 fromDataCellStringMapper
object.InvalidSettingsException
- If the settings could not be read.
KNIME GmbH, Konstanz, Germany
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.