net.sf.clichart.main.cliserver
Class BooleanOptionSetter

java.lang.Object
  extended by net.sf.clichart.main.cliserver.AbstractOptionSetter
      extended by net.sf.clichart.main.cliserver.BooleanOptionSetter
All Implemented Interfaces:
OptionSetter

public class BooleanOptionSetter
extends AbstractOptionSetter

Option setter for boolean properties. Currently ignores argument, and assumes that call should always enable the option

Author:
johnd

Constructor Summary
BooleanOptionSetter(java.lang.String setterName)
           
 
Method Summary
protected  java.lang.Class[] getParameterType()
           
protected  void setValue(OptionsBean options, java.lang.reflect.Method method, java.lang.String command, java.lang.String argument)
           
 
Methods inherited from class net.sf.clichart.main.cliserver.AbstractOptionSetter
setOption
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanOptionSetter

public BooleanOptionSetter(java.lang.String setterName)
Method Detail

setValue

protected void setValue(OptionsBean options,
                        java.lang.reflect.Method method,
                        java.lang.String command,
                        java.lang.String argument)
                 throws java.lang.IllegalAccessException,
                        InvalidOptionsException,
                        java.lang.reflect.InvocationTargetException
Specified by:
setValue in class AbstractOptionSetter
Throws:
java.lang.IllegalAccessException
InvalidOptionsException
java.lang.reflect.InvocationTargetException

getParameterType

protected java.lang.Class[] getParameterType()
Specified by:
getParameterType in class AbstractOptionSetter