com.Ostermiller.util
Class CmdLnResult

java.lang.Object
  extended by com.Ostermiller.util.CmdLnResult

public class CmdLnResult
extends java.lang.Object

Result when a command line option is found. Contains the original option and all of its arguments. More information about this class and code samples for suggested use are available from ostermiller.org.

Since:
ostermillerutils 1.07.00

Method Summary
 java.lang.String getArgument()
          get the first argument, or null if no arguments
 int getArgumentCount()
          Get the argument count for this option
 java.util.List<java.lang.String> getArguments()
          Get all the arguments, in the order that they were specified.
 CmdLnOption getOption()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getOption

public CmdLnOption getOption()
Returns:
the option that caused this result
Since:
ostermillerutils 1.07.00

getArgumentCount

public int getArgumentCount()
Get the argument count for this option

Returns:
number of arguments
Since:
ostermillerutils 1.07.00

getArguments

public java.util.List<java.lang.String> getArguments()
Get all the arguments, in the order that they were specified.

Returns:
unmodifiable list of arguments or null if none
Since:
ostermillerutils 1.07.00

getArgument

public java.lang.String getArgument()
get the first argument, or null if no arguments

Returns:
first argument
Since:
ostermillerutils 1.07.00