io.args
Class ArgumentComparer

java.lang.Object
  extended byio.args.ArgumentComparer

public class ArgumentComparer
extends java.lang.Object

Purpose: The ArgumentComparer class
Description:
The ArgumentComparer makes sure that -- all required arguments are supplied; -- optional arguments that have not been supplied are initialized to their default values; -- no unknown arguments are supplied.

Author:
vincent

Constructor Summary
ArgumentComparer()
           
 
Method Summary
static java.util.HashMap compare(java.util.HashMap definedArguments, java.util.HashMap availableArguments)
          assert that all non-optional defined have been supplied and that no non-defined arguments have been supplied.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArgumentComparer

public ArgumentComparer()
Method Detail

compare

public static java.util.HashMap compare(java.util.HashMap definedArguments,
                                        java.util.HashMap availableArguments)
                                 throws java.io.IOException
assert that all non-optional defined have been supplied and that no non-defined arguments have been supplied.

Parameters:
definedArguments -
availableArguments -
Returns:
the availableArguments plus those with default values
Throws:
java.io.IOException