net.sf.twip.parameterhandler
Class EnumParameterHandler

java.lang.Object
  extended by net.sf.twip.parameterhandler.ParameterHandler
      extended by net.sf.twip.parameterhandler.AbstractNumberParameterHandler
          extended by net.sf.twip.parameterhandler.EnumParameterHandler

public class EnumParameterHandler
extends AbstractNumberParameterHandler

Enums can be compared by their ordinal.


Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.twip.parameterhandler.AbstractNumberParameterHandler
AbstractNumberParameterHandler.Tester
 
Field Summary
 
Fields inherited from class net.sf.twip.parameterhandler.ParameterHandler
parameter
 
Constructor Summary
EnumParameterHandler(Parameter parameter)
           
 
Method Summary
protected  Comparable<? extends Number> getComparable(String value)
           
protected  Object[] getDefaultParameterValues()
           
 boolean test(Object value)
          Should this value go into the parameter values?
 
Methods inherited from class net.sf.twip.parameterhandler.AbstractNumberParameterHandler
getTester
 
Methods inherited from class net.sf.twip.parameterhandler.ParameterHandler
getParameterValues, of
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumParameterHandler

public EnumParameterHandler(Parameter parameter)
Method Detail

getComparable

protected Comparable<? extends Number> getComparable(String value)
Specified by:
getComparable in class AbstractNumberParameterHandler

getDefaultParameterValues

protected Object[] getDefaultParameterValues()
Specified by:
getDefaultParameterValues in class ParameterHandler

test

public boolean test(Object value)
Description copied from class: ParameterHandler
Should this value go into the parameter values?

Overrides:
test in class AbstractNumberParameterHandler
Parameters:
value - the value to check


Copyright © 2011. All Rights Reserved.