|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.node.io.filereader.ColProperty
public class ColProperty
Stores the properties for one column.
Constructor Summary | |
---|---|
ColProperty()
Creates an empty column properties object. |
|
ColProperty(NodeSettingsRO cfg)
Creates a new column properties object initializing its settings from the passed configuration object. |
Method Summary | |
---|---|
void |
changeColumnName(String colName)
Sets a new column name for this column. |
void |
changeColumnType(DataType newType)
Sets a new column type for this column. |
void |
changeDomain(DataColumnDomain newDomain)
Replaces the list of possible values for this columns. |
Object |
clone()
Returns a new ColProperty object containing a deep copy of this one. |
DataColumnSpec |
getColumnSpec()
|
String |
getMissingValuePattern()
|
boolean |
getReadPossibleValuesFromFile()
|
boolean |
getSkipThisColumn()
|
boolean |
getUserSettings()
|
void |
saveToConfiguration(NodeSettingsWO cfg)
Writes all settings from this object into the passed configuration object. |
void |
setColumnSpec(DataColumnSpec cSpec)
|
void |
setMissingValuePattern(String missValue)
|
void |
setReadPossibleValuesFromFile(boolean readThem)
Determines if the possible values of this column will be read from file (used only with integer columns). |
void |
setSkipThisColumn(boolean skipIt)
|
void |
setUserSettings(boolean setByUser)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ColProperty()
public ColProperty(NodeSettingsRO cfg) throws InvalidSettingsException
cfg
- a config object to read the internal settings from
InvalidSettingsException
- if the config object did not contain the
expected settingsMethod Detail |
---|
public void saveToConfiguration(NodeSettingsWO cfg)
cfg
- the configuration object to write the settings intopublic void setColumnSpec(DataColumnSpec cSpec)
cSpec
- the column spec to store in this property objectpublic DataColumnSpec getColumnSpec()
public String getMissingValuePattern()
public void setMissingValuePattern(String missValue)
missValue
- the missing value pattern to storepublic boolean getUserSettings()
true
if settings in this property object are set
by the user, false
if all settings are
default/guessed values.public void setUserSettings(boolean setByUser)
setByUser
- flag indicating that the values in this object are
settings specified by the user - as opposed to default/guessed
settings.public boolean getReadPossibleValuesFromFile()
true
if the possible values should be read from
file. This is set only for integer columns.public void setReadPossibleValuesFromFile(boolean readThem)
readThem
- the new value of the flag. true
if
possible values should be read, false
otherwise.public boolean getSkipThisColumn()
public void setSkipThisColumn(boolean skipIt)
skipIt
- specify true, if this column should not be included in
the reader's file table. Set to false (the default), if the column should
appear in the file reader's output table.public void changeColumnName(String colName)
colName
- the new namepublic void changeColumnType(DataType newType)
newType
- the new typepublic void changeDomain(DataColumnDomain newDomain)
newDomain
- the new domain to set in the column spec of this col
propertypublic String toString()
toString
in class Object
public Object clone()
clone
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |