org.dllearner.core.options
Class ConfigEntry<T>

java.lang.Object
  extended by org.dllearner.core.options.ConfigEntry<T>

public class ConfigEntry<T>
extends Object

A config entry is a configuration option and a value for the option.

Author:
Jens Lehmann

Constructor Summary
ConfigEntry(ConfigOption<T> option, T value)
           
 
Method Summary
 ConfigOption<T> getOption()
           
 String getOptionName()
           
 T getValue()
           
 String toConfString(String componentName)
          Get a string to save into a configuration file.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigEntry

public ConfigEntry(ConfigOption<T> option,
                   T value)
            throws InvalidConfigOptionValueException
Throws:
InvalidConfigOptionValueException
Method Detail

getOption

public ConfigOption<T> getOption()

getOptionName

public String getOptionName()

getValue

public T getValue()

toConfString

public String toConfString(String componentName)
Get a string to save into a configuration file.

Returns:
a formatted string

toString

public String toString()
Overrides:
toString in class Object


SourceForge.net Logo DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2011 Jens Lehmann