org.baselinetest
Class ArgumentCollection

java.lang.Object
  extended by org.baselinetest.ArgumentCollection

public class ArgumentCollection
extends java.lang.Object

An argument collection is a map from argument names to objects.

Author:
jwan, jsnyder2

Method Summary
 java.lang.Object getArgument(java.lang.String name)
          Obtain the value for a given argument, only within the current context.
 java.lang.Object getInheritedArgument(java.lang.String name)
          Obtain the value for a given argument, within the current context or any inherited context.
 java.util.Map<java.lang.String,java.lang.Object> getInheritedArguments()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInheritedArguments

public java.util.Map<java.lang.String,java.lang.Object> getInheritedArguments()

getArgument

public java.lang.Object getArgument(java.lang.String name)
Obtain the value for a given argument, only within the current context. This will not search parent contexts.

YOU PROBABLY DON'T WANT TO USE THIS NETHOD. See getInheritedArgument(String) instead.

Parameters:
name - the name of the desired argument.
Returns:
null if the argument is not defined or the value of the argument (may be null).
See Also:
getInheritedArgument(String)

getInheritedArgument

public java.lang.Object getInheritedArgument(java.lang.String name)
Obtain the value for a given argument, within the current context or any inherited context. If the argument is not found within the current context, it will search the parent context. It will then continue following the context chain until it reaches the root context.

Parameters:
name - the name of the desired argument.
Returns:
null if the argument is not defined or the value of the argument (may be null).


Copyright © 2005-2009 Baseline Test. All Rights Reserved.