com.waveset.util
Class CommandProcess.LineOptionImpl

java.lang.Object
  extended bycom.waveset.util.CommandProcess.LineOptionImpl
All Implemented Interfaces:
CommandProcess.LineOption
Enclosing class:
CommandProcess

public static class CommandProcess.LineOptionImpl
extends java.lang.Object
implements CommandProcess.LineOption

Default implementation of the LineOption interface.


Constructor Summary
CommandProcess.LineOptionImpl(java.lang.String name, java.lang.String classname)
           
CommandProcess.LineOptionImpl(java.lang.String name, java.lang.String classname, java.lang.String usage)
          Constructs a command line option class w/ its name, classname, and usage.
 
Method Summary
 java.lang.String getClassName()
           
 java.lang.String getName()
           
 java.lang.String getUsage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandProcess.LineOptionImpl

public CommandProcess.LineOptionImpl(java.lang.String name,
                                     java.lang.String classname)

CommandProcess.LineOptionImpl

public CommandProcess.LineOptionImpl(java.lang.String name,
                                     java.lang.String classname,
                                     java.lang.String usage)
Constructs a command line option class w/ its name, classname, and usage.

Parameters:
name - The name/option used on the command-line
classname - The full qualified classname to execute
usage - Usage statement for the option.
Method Detail

getClassName

public java.lang.String getClassName()
Specified by:
getClassName in interface CommandProcess.LineOption
Returns:
Class to execute for this option.

getName

public java.lang.String getName()
Specified by:
getName in interface CommandProcess.LineOption
Returns:
Name of the option to the command line.

getUsage

public java.lang.String getUsage()
Specified by:
getUsage in interface CommandProcess.LineOption
Returns:
(Optional) Usage statement about the option.