com.Ostermiller.util Java Utilities


com.Ostermiller.util
Class CmdLnResult

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

public class CmdLnResult
extends 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
Author:
Stephen Ostermiller http://ostermiller.org/contact.pl?regarding=Java+Utilities

Method Summary
 String getArgument()
          get the first argument, or null if no arguments
 int getArgumentCount()
          Get the argument count for this option
 List<String> getArguments()
          Get all the arguments, in the order that they were specified.
 CmdLnOption getOption()
           
 
Methods inherited from class java.lang.Object
equals, 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 List<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 String getArgument()
get the first argument, or null if no arguments

Returns:
first argument
Since:
ostermillerutils 1.07.00

com.Ostermiller.util Java Utilities


Copyright © 2001-2012 by Stephen Ostermiller