org.palo.api.subsets.filter.settings
Class DoubleParameter

java.lang.Object
  extended by org.palo.api.subsets.filter.settings.DoubleParameter
All Implemented Interfaces:
Parameter

public class DoubleParameter
extends java.lang.Object

DecimalParameter

An implementation of the Parameter interface for Double values.

Version:
$Id: DoubleParameter.html,v 1.4 2009/07/09 11:01:46 ArndHouben Exp $

Constructor Summary
DoubleParameter()
          Creates a new unnamed DoubleParemeter instance
DoubleParameter(java.lang.String name)
          Creates a new DoubleParemeter instance with the required name.
 
Method Summary
 void bind(Subset2 subset)
          Binds this parameter to the given Subset2 NOTE: PLEASE DON'T USE!
 java.lang.String getName()
          Returns the parameter name.
 java.lang.Double getValue()
          Returns the parameter value
 void setValue(double value)
           
 void setValue(java.lang.Double value)
          Sets the parameter value.
 void unbind()
          Releases this parameter from a previously binded Subset2 NOTE: PLEASE DON'T USE!
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleParameter

public DoubleParameter()
Creates a new unnamed DoubleParemeter instance


DoubleParameter

public DoubleParameter(java.lang.String name)
Creates a new DoubleParemeter instance with the required name.

Parameters:
name - the parameter name. Passing null is valid.
Method Detail

getName

public final java.lang.String getName()
Description copied from interface: Parameter
Returns the parameter name. Note that the name can be null

Returns:
parameter name or null if none was set

getValue

public final java.lang.Double getValue()
Description copied from interface: Parameter
Returns the parameter value

Returns:
parameter value or null if none was set

setValue

public final void setValue(double value)

setValue

public final void setValue(java.lang.Double value)
Sets the parameter value. Specifying null is allowed.

Parameters:
value - new parameter value

bind

public final void bind(Subset2 subset)
Description copied from interface: Parameter

Binds this parameter to the given Subset2

NOTE: PLEASE DON'T USE! INTERNAL METHOD

Specified by:
bind in interface Parameter

unbind

public final void unbind()
Description copied from interface: Parameter

Releases this parameter from a previously binded Subset2

NOTE: PLEASE DON'T USE! INTERNAL METHOD

Specified by:
unbind in interface Parameter