com.netscape.certsrv.template
Class ArgSet

java.lang.Object
  extended by com.netscape.certsrv.template.ArgSet
All Implemented Interfaces:
IArgValue

public class ArgSet
extends java.lang.Object
implements IArgValue

This class represents a set of arguments. Unlike ArgList, this set of arguments is not ordered.

Each argument in the set is tagged with a name (key).

Version:
$Revision: 1211 $, $Date: 2010-08-18 10:15:37 -0700 (Wed, 18 Aug 2010) $

Constructor Summary
ArgSet()
           
 
Method Summary
 IArgValue get(java.lang.String name)
          Retrieves argument from the set.
 java.util.Enumeration getNames()
          Returns a list of argument names.
 void set(java.lang.String name, IArgValue arg)
          Sets argument into the set with the given name.
 void set(java.lang.String name, java.lang.String arg)
          Sets string argument into the set with the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArgSet

public ArgSet()
Method Detail

getNames

public java.util.Enumeration getNames()
Returns a list of argument names.

Returns:
list of argument names

set

public void set(java.lang.String name,
                java.lang.String arg)
Sets string argument into the set with the given name.

Parameters:
name - argument name
arg - argument in string

set

public void set(java.lang.String name,
                IArgValue arg)
Sets argument into the set with the given name.

Parameters:
name - argument name
arg - argument value

get

public IArgValue get(java.lang.String name)
Retrieves argument from the set.

Parameters:
name - argument name
Returns:
argument value