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.


Constructor Index

 o Arguments()
Constructs a empty arguments object.

Method Index

 o clone()
 o getArg(String)
Get the value associated with the name.
 o setArg(String, boolean)
Set a boolean value with an associated name.
 o setArg(String, byte)
Set a bye value with an associated name.
 o setArg(String, char)
Sets a character value with an associated name.
 o setArg(String, double)
Set a double value with an associated name.
 o setArg(String, float)
Set a float value with an associated name.
 o setArg(String, int)
Set a int value with an associated name.
 o setArg(String, long)
Sets a long value with an associated name.
 o setArg(String, Object)
Set a value with an associated name.
 o setArg(String, short)
Set a bye value with an associated name.

Constructors

 o Arguments
 public Arguments()
Constructs a empty arguments object.

Methods

 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o getArg
 public Object getArg(String name)
Get the value associated with the name.

Returns:
the value associated with the given name
 o clone
 public Object clone()
Overrides:
clone in class Hashtable

All Packages  Class Hierarchy  This Package  Previous  Next  Index