All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class openstar.generic.ParamSet

java.lang.Object
   |
   +----openstar.generic.ParamSet

public class ParamSet
extends Object
A ParamSet is a set of a Parameters.

Version:
11 Jun 1997
Author:
Nils Schwabe

Constructor Index

 o ParamSet()
Creates an empty parameter set.

Method Index

 o clone()
Creates a shallow copy of this parameter set.
 o get(String)
Returns the parameter object for a given name or null if no such parameter is stored in this set.
 o put(Parameter)
Puts a given parameter into the set.
 o put(String, Object)
Creates a new parameter and puts it into the set.

Constructors

 o ParamSet
  public ParamSet()
Creates an empty parameter set.

Methods

 o put
  public Parameter put(Parameter param)
Puts a given parameter into the set. If a parameter with the same name is already stored in the set, then it is replaced by the new parameter and is returned by this method. Otherwise, null is returned.

Note: To change the value of an existing parameter without creating a new parameter, you have to use something like paramset.get(paraname).setValue(newValue).

 o put
  public Parameter put(String name,
                       Object value)
Creates a new parameter and puts it into the set. If a parameter with the same name is already stored in the set, then it is replaced by the newly created parameter is returned by this method. Otherwise, null is returned.

Note: To change the value of an existing parameter without creating a new parameter, you have to use something like paramset.get(paraname).setValue(newValue).

 o get
  public Parameter get(String name)
Returns the parameter object for a given name or null if no such parameter is stored in this set.

 o clone
  public Object clone()
Creates a shallow copy of this parameter set.

Overrides:
clone in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index