cc.mallet.util
Class CommandOption.SpacedStrings

java.lang.Object
  extended by cc.mallet.util.CommandOption
      extended by cc.mallet.util.CommandOption.SpacedStrings
Enclosing class:
CommandOption

public static class CommandOption.SpacedStrings
extends CommandOption


Nested Class Summary
 
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
 
Field Summary
 java.lang.String[] defaultValue
           
 java.lang.String[] value
           
 
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)
           
 
Method Summary
 java.lang.String defaultValueToString()
           
 int parseArg(java.lang.String[] args, int index)
          Called after this CommandOption matches an argument.
 java.lang.String[] value()
           
 java.lang.String valueToString()
           
 
Methods inherited from class cc.mallet.util.CommandOption
getFullName, getInterpreter, getList, getName, parseArg, postParsing, printOptionValues, process, process, setSummary, wasInvoked
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

public java.lang.String[] value

defaultValue

public java.lang.String[] defaultValue
Constructor Detail

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)
Method Detail

value

public java.lang.String[] value()

parseArg

public int parseArg(java.lang.String[] args,
                    int index)
Description copied from class: CommandOption
Called after this CommandOption matches an argument. The default implementation simply calls parseArg(String), and returns index+1; unless index is negative, in which case it calls parseArg((String)null) and returns index.

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