cc.mallet.util
Class CommandOption.SpacedStrings
java.lang.Object
cc.mallet.util.CommandOption
cc.mallet.util.CommandOption.SpacedStrings
- Enclosing class:
- CommandOption
public static class CommandOption.SpacedStrings
- extends CommandOption
Nested classes/interfaces inherited from class cc.mallet.util.CommandOption |
CommandOption.Boolean, CommandOption.Double, CommandOption.DoubleArray, CommandOption.File, CommandOption.Integer, CommandOption.IntegerArray, CommandOption.List, CommandOption.ListProviding, CommandOption.Object, CommandOption.ObjectFromBean, CommandOption.Set, CommandOption.SpacedStrings, CommandOption.String |
Constructor Summary |
CommandOption.SpacedStrings(java.lang.Class owner,
java.lang.String name,
java.lang.String argName,
boolean argRequired,
java.lang.String[] defaultValue,
java.lang.String shortdoc,
java.lang.String longdoc)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
value
public java.lang.String[] value
defaultValue
public java.lang.String[] defaultValue
CommandOption.SpacedStrings
public CommandOption.SpacedStrings(java.lang.Class owner,
java.lang.String name,
java.lang.String argName,
boolean argRequired,
java.lang.String[] defaultValue,
java.lang.String shortdoc,
java.lang.String longdoc)
value
public java.lang.String[] value()
parseArg
public int parseArg(java.lang.String[] args,
int argi)
- Description copied from class:
CommandOption
- Called after this CommandOption matches an argument.
The default implementation simply calls parseArg(String), and
returns argi+1; unless argi is negative, in which case it calls
parseArg((String)null) and returns argi.
- Overrides:
parseArg
in class CommandOption
defaultValueToString
public java.lang.String defaultValueToString()
- Specified by:
defaultValueToString
in class CommandOption
valueToString
public java.lang.String valueToString()
- Specified by:
valueToString
in class CommandOption