All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.aglet.util.Arguments
java.lang.Object
|
+----java.util.Dictionary
|
+----java.util.Hashtable
|
+----com.ibm.aglet.util.Arguments
- public final class Arguments
- extends Hashtable
The Argument class is a object that holds various kinds of
objects as arguments. This exists because the Hashtable does not
accept "null" as arguments.
-
Arguments()
- Constructs a empty arguments object.
-
clone()
-
-
getArg(String)
- Get the value associated with the name.
-
setArg(String, boolean)
- Set a boolean value with an associated name.
-
setArg(String, byte)
- Set a bye value with an associated name.
-
setArg(String, char)
- Sets a character value with an associated name.
-
setArg(String, double)
- Set a double value with an associated name.
-
setArg(String, float)
- Set a float value with an associated name.
-
setArg(String, int)
- Set a int value with an associated name.
-
setArg(String, long)
- Sets a long value with an associated name.
-
setArg(String, Object)
- Set a value with an associated name.
-
setArg(String, short)
- Set a bye value with an associated name.
Arguments
public Arguments()
- Constructs a empty arguments object.
setArg
public Object setArg(String name,
Object value)
- Set a value with an associated name.
- Parameters:
- name - a name of this argument.
- value - a value of this argument.
setArg
public Object setArg(String name,
boolean value)
- Set a boolean value with an associated name.
- Parameters:
- name - a name of this argument.
- value - a boolean value of this argument.
setArg
public Object setArg(String name,
byte value)
- Set a bye value with an associated name.
- Parameters:
- name - a name of this argument.
- value - a byte value of this argument.
setArg
public Object setArg(String name,
short value)
- Set a bye value with an associated name.
- Parameters:
- name - a name of this argument.
- value - a byte value of this argument.
setArg
public Object setArg(String name,
int value)
- Set a int value with an associated name.
- Parameters:
- name - a name of this argument.
- value - an integer value of this argument.
setArg
public Object setArg(String name,
double value)
- Set a double value with an associated name.
- Parameters:
- name - a name of this argument.
- d - a double value of this argument.
setArg
public Object setArg(String name,
float value)
- Set a float value with an associated name.
- Parameters:
- name - a name of this argument.
- value - a float value of this argument.
setArg
public Object setArg(String name,
char value)
- Sets a character value with an associated name.
- Parameters:
- name - a name of this argument.
- value - a character value of this argument.
setArg
public Object setArg(String name,
long value)
- Sets a long value with an associated name.
- Parameters:
- name - a name of this argument.
- value - a long value of this argument.
getArg
public Object getArg(String name)
- Get the value associated with the name.
- Returns:
- the value associated with the given name
clone
public Object clone()
- Overrides:
- clone in class Hashtable
All Packages Class Hierarchy This Package Previous Next Index