org.eclipse.actf.util.command
Interface IArgumentResolver

All Known Implementing Classes:
DefaultArgumentResolver

public interface IArgumentResolver

An IArgumentResolver is used to resolve arguments passed to switches on the command line. A default resolver is packaged with ACTF that resolves arguments to the primitive types, primitive wrappers, Strings, and Class types.

Author:
Mike Squillace

Method Summary
 Object resolve(String arg, Class type)
          resolve the given argument or value to the given type
 

Method Detail

resolve

Object resolve(String arg,
               Class type)
               throws Exception
resolve the given argument or value to the given type

Parameters:
arg - - argument or value from command line switch
type - - type to which argument is to be resolved
Returns:
result of resolving argument to class
Throws:
Exception - if argument cannot be resolved to the specified type