org.knime.base.node.image.readpng
Class ReadPNGFromURLConfig

java.lang.Object
  extended by org.knime.base.node.image.readpng.ReadPNGFromURLConfig

final class ReadPNGFromURLConfig
extends Object

Configuration object to the Read PNG node.

Author:
Bernd Wiswedel, KNIME.com, Zurich, Switzerland

Constructor Summary
ReadPNGFromURLConfig()
           
 
Method Summary
 String getNewColumnName()
           
 String getUrlColName()
           
(package private)  void guessDefaults(DataTableSpec in)
          Guesses meaningful default values, e.g.
 boolean isFailOnInvalid()
           
(package private)  void loadInDialog(NodeSettingsRO settings, DataTableSpec in)
          Load config in dialog.
(package private)  void loadInModel(NodeSettingsRO settings)
          Load config in node model.
(package private)  void save(NodeSettingsWO settings)
          Save current configuration.
 void setFailOnInvalid(boolean failOnInvalid)
           
 void setNewColumnName(String newColumnName)
           
 void setUrlColName(String urlColName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadPNGFromURLConfig

ReadPNGFromURLConfig()
Method Detail

getUrlColName

public String getUrlColName()
Returns:
the urlColName

setUrlColName

public void setUrlColName(String urlColName)
Parameters:
urlColName - the urlColName to set

isFailOnInvalid

public boolean isFailOnInvalid()
Returns:
the failOnInvalid

setFailOnInvalid

public void setFailOnInvalid(boolean failOnInvalid)
Parameters:
failOnInvalid - the failOnInvalid to set

getNewColumnName

public String getNewColumnName()
Returns:
the newColumnName

setNewColumnName

public void setNewColumnName(String newColumnName)
Parameters:
newColumnName - the newColumnName to set

save

void save(NodeSettingsWO settings)
Save current configuration.

Parameters:
settings - To save to.

loadInModel

void loadInModel(NodeSettingsRO settings)
           throws InvalidSettingsException
Load config in node model.

Parameters:
settings - To load from.
Throws:
InvalidSettingsException - If invalid.

loadInDialog

void loadInDialog(NodeSettingsRO settings,
                  DataTableSpec in)
            throws NotConfigurableException
Load config in dialog.

Parameters:
settings - To load from
in - Current input spec
Throws:
NotConfigurableException - If no configuration possible, e.g.

guessDefaults

void guessDefaults(DataTableSpec in)
             throws InvalidSettingsException
Guesses meaningful default values, e.g. the URL column is a string, whose name possibly contains "file", "url" or so.

Parameters:
in - The input spec.
Throws:
InvalidSettingsException - If no auto-configuration is possible.


Copyright, 2003 - 2012. 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.