org.incava.jagol

Class DoubleOption


public class DoubleOption
extends NonBooleanOption

Represents an option that is an double.

Field Summary

Fields inherited from class org.incava.jagol.Option

longName, shortName

Constructor Summary

DoubleOption(String longName, String description)
DoubleOption(String longName, String description, Double value)

Method Summary

protected String
getType()
Returns the option type.
Double
getValue()
Returns the value.
void
setValue(Double value)
Sets the value.
void
setValue(String value)
Sets the value from the string, for a double type.
String
toString()

Methods inherited from class org.incava.jagol.NonBooleanOption

getType, set

Methods inherited from class org.incava.jagol.Option

getDescription, getLongName, getShortName, set, setLongName, setShortName, setValue

Constructor Details

DoubleOption

public DoubleOption(String longName,
                    String description)

DoubleOption

public DoubleOption(String longName,
                    String description,
                    Double value)

Method Details

getType

protected String getType()
Returns the option type.
Overrides:
getType in interface NonBooleanOption

getValue

public Double getValue()
Returns the value. Returns null if not set.

setValue

public void setValue(Double value)
Sets the value.

setValue

public void setValue(String value)
            throws InvalidTypeException
Sets the value from the string, for a double type.
Overrides:
setValue in interface Option

toString

public String toString()