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
-
ParamSet()
-
Creates an empty parameter set.
-
clone()
- Creates a shallow copy of this parameter set.
-
get(String)
- Returns the parameter object for a given name or
null
if no such parameter is stored in this set.
-
put(Parameter)
- Puts a given parameter into the set.
-
put(String, Object)
- Creates a new parameter and puts it into the set.
ParamSet
public ParamSet()
- Creates an empty parameter set.
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)
.
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)
.
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.
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