Class 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$, $Date$
    • Constructor Summary

      Constructors 
      Constructor Description
      ArgSet()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      IArgValue get​(java.lang.String name)
      Retrieves argument from the set.
      java.util.Enumeration<java.lang.String> 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<java.lang.String> 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