org.nuiton.util
Class ApplicationConfig.OptionList

java.lang.Object
  extended by org.nuiton.util.ApplicationConfig.OptionList
Enclosing class:
ApplicationConfig

public static class ApplicationConfig.OptionList
extends Object


Field Summary
protected  ApplicationConfig config
           
protected  String key
           
protected  String value
           
 
Constructor Summary
ApplicationConfig.OptionList(ApplicationConfig config, String key, String value)
           
 
Method Summary
 List<String> getOption()
          Get option value as String.
 List<Boolean> getOptionAsBoolean()
          Get option value as boolean.
 List<Class> getOptionAsClass()
          Get option value as Class.
 List<Date> getOptionAsDate()
          Get option value as Date.
 List<Double> getOptionAsDouble()
          Get option value as double.
 List<File> getOptionAsFile()
          Get option value as File.
 List<Integer> getOptionAsInt()
          Get option value as int.
 List<Time> getOptionAsTime()
          Get option value as Time.
 List<Timestamp> getOptionAsTimestamp()
          Get option value as Timestamp.
 List<URL> getOptionAsURL()
          Get option value as URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

config

protected ApplicationConfig config

key

protected String key

value

protected String value
Constructor Detail

ApplicationConfig.OptionList

public ApplicationConfig.OptionList(ApplicationConfig config,
                                    String key,
                                    String value)
Method Detail

getOption

public List<String> getOption()
Get option value as String.

Parameters:
key - the option's key
Returns:
value as String

getOptionAsFile

public List<File> getOptionAsFile()
Get option value as File.

Parameters:
key - the option's key
Returns:
value as file

getOptionAsURL

public List<URL> getOptionAsURL()
Get option value as URL.

Parameters:
key - the option's key
Returns:
value as URL

getOptionAsClass

public List<Class> getOptionAsClass()
Get option value as Class.

Parameters:
key - the option's key
Returns:
value as Class

getOptionAsDate

public List<Date> getOptionAsDate()
Get option value as Date.

Parameters:
key - the option's key
Returns:
value as Date

getOptionAsTime

public List<Time> getOptionAsTime()
Get option value as Time.

Parameters:
key - the option's key
Returns:
value as Time

getOptionAsTimestamp

public List<Timestamp> getOptionAsTimestamp()
Get option value as Timestamp.

Parameters:
key - the option's key
Returns:
value as Timestamp

getOptionAsInt

public List<Integer> getOptionAsInt()
Get option value as int.

Parameters:
key - the option's key
Returns:
value as int

getOptionAsDouble

public List<Double> getOptionAsDouble()
Get option value as double.

Parameters:
key - the option's key
Returns:
value as double

getOptionAsBoolean

public List<Boolean> getOptionAsBoolean()
Get option value as boolean.

Parameters:
key - the option's key
Returns:
value as boolean.


Copyright © 2004-2010 CodeLutin. All Rights Reserved.