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

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

public class ObjectParameter
extends java.lang.Object

GeneralParameter

An implementation of the Parameter interface to store a general value.

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

Constructor Summary
ObjectParameter()
          Creates a new parameter instance with no name
ObjectParameter(java.lang.String name)
          Creates a new parameter instance with the given 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.Object getValue()
          Returns the parameter value
 void setName(java.lang.String name)
          Sets the parameter name.
 void setValue(java.lang.Object 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

ObjectParameter

public ObjectParameter()
Creates a new parameter instance with no name


ObjectParameter

public ObjectParameter(java.lang.String name)
Creates a new parameter instance with the given name

Parameters:
name - the parameter name
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.Object getValue()
Description copied from interface: Parameter
Returns the parameter value

Returns:
parameter value or null if none was set

setName

public final void setName(java.lang.String name)
Sets the parameter name. Specifying null is allowed.

Parameters:
name - new parameter name

setValue

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