net.sf.whatsnew.options
Class StringOption

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

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

A String Option

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

Constructor Summary
protected StringOption(java.lang.String defaultValue)
          Creates a new StringOption 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

StringOption

protected StringOption(java.lang.String defaultValue)
Creates a new StringOption 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.