org.knime.base.node.preproc.cellsplit
Class CellSplitterSettings

java.lang.Object
  extended by org.knime.base.node.preproc.cellsplit.CellSplitterUserSettings
      extended by org.knime.base.node.preproc.cellsplit.CellSplitterSettings

 class CellSplitterSettings
extends CellSplitterUserSettings

Extends the user settings object to a general splitter settings object. In addition to the user settings it stores column types and number of columns, the values analyzed during execute. These values are not saved.

Author:
ohl, University of Konstanz

Constructor Summary
CellSplitterSettings()
          Creates a new settings object with no (or default) settings.
CellSplitterSettings(NodeSettingsRO values)
          Creates a new settings object with the value from the specified settings object.
 
Method Summary
(package private)  void addColumnOfType(DataType type)
          Adds the type of a new column at the end of the column list.
(package private)  int getNumOfColsGuessed()
           
(package private)  DataType getTypeOfColumn(int colIdx)
          Return the type of a column previously added.
(package private)  void replaceTypeOfColumn(int colIdx, DataType newType)
          Replaces the type of an already found column.
 
Methods inherited from class org.knime.base.node.preproc.cellsplit.CellSplitterUserSettings
getColumnName, getDelimiter, getNumOfCols, getQuotePattern, getStatus, isGuessNumOfCols, isRemoveQuotes, isUseEmptyString, saveSettingsTo, setColumnName, setDelimiter, setGuessNumOfCols, setNumOfCols, setQuotePattern, setRemoveQuotes, setUseEmptyString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CellSplitterSettings

CellSplitterSettings()
Creates a new settings object with no (or default) settings.


CellSplitterSettings

CellSplitterSettings(NodeSettingsRO values)
               throws InvalidSettingsException
Creates a new settings object with the value from the specified settings object. If the values in there incomplete it throws an Exception. The values can be validated (checked for consistency and validity) with the getStatus method.

Parameters:
values - the config object to read the settings values from
Throws:
InvalidSettingsException - if the values in the settings object are incomplete.
Method Detail

addColumnOfType

void addColumnOfType(DataType type)
Adds the type of a new column at the end of the column list.

Parameters:
type - the type of the new column.

replaceTypeOfColumn

void replaceTypeOfColumn(int colIdx,
                         DataType newType)
Replaces the type of an already found column. Used during column type guessing.

Parameters:
colIdx - the index of the column which gets a new type
newType - the new type of the specified column

getTypeOfColumn

DataType getTypeOfColumn(int colIdx)
Return the type of a column previously added.

Parameters:
colIdx - the column to get the type for.
Returns:
the guessed column type of the specified column.

getNumOfColsGuessed

int getNumOfColsGuessed()
Returns:
the number of column found during type guessing


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
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.