com.waveset.util
Class CommandProcess.LineOptionImpl
java.lang.Object
com.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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-lineclassname
- The full qualified classname to executeusage
- Usage statement for the option.
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.