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

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

public class IntegerParameter
extends java.lang.Object

IntegerParameter

An implementation of the Parameter interface for Integer values.

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

Constructor Summary
IntegerParameter()
          Creates a new unnamed IntegerParemeter instance
IntegerParameter(java.lang.String name)
          Creates a new IntegerParemeter 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.Integer getValue()
          Returns the parameter value
 void setValue(int value)
          Sets the parameter value.
 void setValue(java.lang.Integer 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

IntegerParameter

public IntegerParameter()
Creates a new unnamed IntegerParemeter instance


IntegerParameter

public IntegerParameter(java.lang.String name)
Creates a new IntegerParemeter 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.Integer getValue()
Description copied from interface: Parameter
Returns the parameter value

Returns:
parameter value or null if none was set

setValue

public final void setValue(int value)
Sets the parameter value. Specifying null is allowed.

Parameters:
value - new parameter value

setValue

public final void setValue(java.lang.Integer 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