net.sf.whatsnew.options
Class IntegerOption

java.lang.Object
  |
  +--net.sf.whatsnew.options.Option
        |
        +--net.sf.whatsnew.options.IntegerOption

public class IntegerOption
extends net.sf.whatsnew.options.Option

An Integer Option

Version:
$Id: IntegerOption.java,v 1.1 2004/05/13 01:22:30 dquintela Exp $
Author:
Diogo Quintela

Constructor Summary
protected IntegerOption(java.lang.Integer defaultValue)
          Creates a new IntegerOption object.
 
Method Summary
 java.lang.Object getDefaultValue()
          Getter for #defaultValue
protected  OptionValue getOptionValue(java.lang.Object value)
          Gets option value
 OptionValue getValue(java.lang.Object value)
          Gets value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegerOption

protected IntegerOption(java.lang.Integer defaultValue)
Creates a new IntegerOption object.
Parameters:
defaultValue - Option default value
Method Detail

getOptionValue

protected OptionValue getOptionValue(java.lang.Object value)
                              throws InvalidOptionValue
Gets option value
Overrides:
getOptionValue in class net.sf.whatsnew.options.Option
Parameters:
value - The value to use if possible
Returns:
The option value
Throws:
InvalidOptionValue - If the object type is invalid

getDefaultValue

public java.lang.Object getDefaultValue()
Getter for #defaultValue
Returns:
The property value

getValue

public OptionValue getValue(java.lang.Object value)
                     throws InvalidOptionValue
Gets value
Parameters:
value - The value to associate, or null to use default value
Returns:
The option value
Throws:
InvalidOptionValue - If the object type is invalid


Copyright © 2004 Sourceforge. All Rights Reserved.