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
protected
<T> List<T>
convertListOption(Class<T> type)
           
 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

convertListOption

protected <T> List<T> convertListOption(Class<T> type)

getOption

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

Returns:
value as String

getOptionAsFile

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

Returns:
value as file

getOptionAsURL

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

Returns:
value as URL

getOptionAsClass

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

Returns:
value as Class

getOptionAsDate

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

Returns:
value as Date

getOptionAsTime

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

Returns:
value as Time

getOptionAsTimestamp

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

Returns:
value as Timestamp

getOptionAsInt

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

Returns:
value as int

getOptionAsDouble

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

Returns:
value as double

getOptionAsBoolean

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

Returns:
value as boolean.


Copyright © 2004-2012 CodeLutin. All Rights Reserved.