com.headius.options
Class EnumerationOption<T extends Enum<T>>

java.lang.Object
  extended by com.headius.options.Option<T>
      extended by com.headius.options.EnumerationOption<T>

public class EnumerationOption<T extends Enum<T>>
extends Option<T>

An Enum-based Option.


Field Summary
 
Fields inherited from class com.headius.options.Option
defval, type
 
Constructor Summary
EnumerationOption(String longName, Enum category, Class<T> enumType, T defval, String description)
           
EnumerationOption(String prefix, String name, Enum category, Class<T> enumType, T defval, String description)
           
 
Method Summary
protected  T reloadValue()
          Perform the appropriate load and conversion for the option's property.
 
Methods inherited from class com.headius.options.Option
bool, bool, bool, bool, defaultValue, description, displayName, enumeration, enumeration, enumeration, enumeration, force, formatOptions, formatOptions, formatValues, formatValues, integer, integer, integer, integer, integer, integer, integer, integer, isSpecified, load, loadProperty, options, prefix, propertyName, reload, shortName, string, string, string, string, string, string, string, string, toString, type, unforce
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EnumerationOption

public EnumerationOption(String prefix,
                         String name,
                         Enum category,
                         Class<T> enumType,
                         T defval,
                         String description)

EnumerationOption

public EnumerationOption(String longName,
                         Enum category,
                         Class<T> enumType,
                         T defval,
                         String description)
Method Detail

reloadValue

protected T reloadValue()
Description copied from class: Option
Perform the appropriate load and conversion for the option's property.

Specified by:
reloadValue in class Option<T extends Enum<T>>


Copyright © 2014. All Rights Reserved.