org.knime.base.node.io.extractsysprop
Class ReadSysPropertyConfiguration

java.lang.Object
  extended by org.knime.base.node.io.extractsysprop.ReadSysPropertyConfiguration

final class ReadSysPropertyConfiguration
extends Object

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

Nested Class Summary
(package private) static class ReadSysPropertyConfiguration.Result
          Class representing a result.
 
Constructor Summary
ReadSysPropertyConfiguration()
           
 
Method Summary
(package private)  ReadSysPropertyConfiguration.Result createResult()
          Creates a result object for the current configuration.
(package private)  String[] getSelectedProps()
           
(package private)  boolean isExtractAllProps()
           
(package private)  boolean isFailIfSomeMissing()
           
(package private)  void loadSettings(NodeSettingsRO settings)
          Loads configuration, fails if fields are missing/invalid.
(package private)  void loadSettingsNoFail(NodeSettingsRO settings)
          Loads configuration, inits defaults if fields are missing/invalid.
(package private) static Map<String,String> readAllProps()
          Read all java properties into map of Strings.
(package private)  void saveSettings(NodeSettingsWO settings)
          Saves current configuration to argument.
(package private)  void setExtractAllProps(boolean isExtractAllProps)
           
(package private)  void setFailIfSomeMissing(boolean failIfSomeMissing)
           
(package private)  void setSelectedProps(String[] selectedProps)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadSysPropertyConfiguration

ReadSysPropertyConfiguration()
Method Detail

isExtractAllProps

boolean isExtractAllProps()
Returns:
the isExtractAllProps

setExtractAllProps

void setExtractAllProps(boolean isExtractAllProps)
Parameters:
isExtractAllProps - the isExtractAllProps to set

isFailIfSomeMissing

boolean isFailIfSomeMissing()
Returns:
the failIfSomeMissing

setFailIfSomeMissing

void setFailIfSomeMissing(boolean failIfSomeMissing)
Parameters:
failIfSomeMissing - the failIfSomeMissing to set

getSelectedProps

String[] getSelectedProps()
Returns:
the selectedProps

setSelectedProps

void setSelectedProps(String[] selectedProps)
Parameters:
selectedProps - the selectedProps to set

saveSettings

void saveSettings(NodeSettingsWO settings)
Saves current configuration to argument.

Parameters:
settings - to save to.

loadSettings

void loadSettings(NodeSettingsRO settings)
            throws InvalidSettingsException
Loads configuration, fails if fields are missing/invalid.

Parameters:
settings - to load from.
Throws:
InvalidSettingsException - If that fails.

loadSettingsNoFail

void loadSettingsNoFail(NodeSettingsRO settings)
Loads configuration, inits defaults if fields are missing/invalid.

Parameters:
settings - to load from.

readAllProps

static Map<String,String> readAllProps()
Read all java properties into map of Strings.

Returns:
A new map of string containing all system properties.

createResult

ReadSysPropertyConfiguration.Result createResult()
                                           throws InvalidSettingsException
Creates a result object for the current configuration.

Returns:
A new result.
Throws:
InvalidSettingsException - If any property is missing and the fail-on-missing flag is set.


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.