JHPcte
Class PcteUserArguments

java.lang.Object
  |
  +--JHPcte.PcteUserArguments

public class PcteUserArguments
extends java.lang.Object

The PcteUserArguments class. It encapsulate user arguments.


Field Summary
protected  java.util.Hashtable arguments
           
 
Constructor Summary
PcteUserArguments()
          Create a new instance of PcteUserArguments.
PcteUserArguments(boolean send)
          Create a new instance of PcteUserArguments.
 
Method Summary
 void addArgument(PcteArgument argument)
          Add a new Argument.
 void addArgument(java.lang.String name, java.lang.Character value)
          Add a new Argument.
 void addArgument(java.lang.String name, java.lang.Double value)
          Add a new Argument.
 void addArgument(java.lang.String name, java.lang.Float value)
          Add a new Argument.
 void addArgument(java.lang.String name, java.lang.Integer value)
          Add a new Argument.
 void addArgument(java.lang.String name, java.lang.Long value)
          Add a new Argument.
 void addArgument(java.lang.String name, java.lang.Object value, int type)
          Add a new Argument.
 void addArgument(java.lang.String name, java.lang.String value)
          Add a new Argument.
 java.util.Enumeration arguments()
          Gets the arguments as enumeration.
 int countArguments()
          Gets the number of arguments.
 PcteArgument getArgument(java.lang.String name)
          Gets the argument of the specified name.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

arguments

protected java.util.Hashtable arguments
Constructor Detail

PcteUserArguments

public PcteUserArguments()
Create a new instance of PcteUserArguments.

PcteUserArguments

public PcteUserArguments(boolean send)
Create a new instance of PcteUserArguments.
Parameters:
send - if true, these arguments are used for sending to jhpcte-server.
Method Detail

addArgument

public void addArgument(java.lang.String name,
                        java.lang.String value)
Add a new Argument.
Parameters:
name - the symbolic name of the argument
value - the value of the argument

addArgument

public void addArgument(java.lang.String name,
                        java.lang.Character value)
Add a new Argument.
Parameters:
name - the symbolic name of the argument
value - the value of the argument

addArgument

public void addArgument(java.lang.String name,
                        java.lang.Double value)
Add a new Argument.
Parameters:
name - the symbolic name of the argument
value - the value of the argument

addArgument

public void addArgument(java.lang.String name,
                        java.lang.Float value)
Add a new Argument.
Parameters:
name - the symbolic name of the argument
value - the value of the argument

addArgument

public void addArgument(java.lang.String name,
                        java.lang.Integer value)
Add a new Argument.
Parameters:
name - the symbolic name of the argument
value - the value of the argument

addArgument

public void addArgument(java.lang.String name,
                        java.lang.Long value)
Add a new Argument.
Parameters:
name - the symbolic name of the argument
value - the value of the argument

addArgument

public void addArgument(java.lang.String name,
                        java.lang.Object value,
                        int type)
Add a new Argument.
Parameters:
name - the symbolic name of the argument
value - the value of the argument
type - the type of the argument

addArgument

public void addArgument(PcteArgument argument)
Add a new Argument.
Parameters:
argument - the argument

getArgument

public PcteArgument getArgument(java.lang.String name)
Gets the argument of the specified name.
Parameters:
name - the name of the argument
Returns:
the argument or null if not exist

arguments

public java.util.Enumeration arguments()
Gets the arguments as enumeration.
Returns:
the arguments

toString

public java.lang.String toString()
Returns a string representation of the object.
Overrides:
toString in class java.lang.Object
Returns:
the string representation

countArguments

public int countArguments()
Gets the number of arguments.
Returns:
the number of arguments