| |
|
| java.lang.Object com.Ostermiller.util.CmdLnResult
CmdLnResult | public class CmdLnResult (Code) | | 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.
author: Stephen Ostermiller http://ostermiller.org/contact.pl?regarding=Java+Utilities since: ostermillerutils 1.07.00 |
CmdLnResult | CmdLnResult(CmdLnOption option)(Code) | | New command line result
Parameters: option - Option that caused this result since: ostermillerutils 1.07.00 |
addArgument | void addArgument(String argument)(Code) | | Parameters: argument - add an argument to this result throws: IllegalStateException - if too many arguments have been added since: ostermillerutils 1.07.00 |
getArgument | public String getArgument()(Code) | | get the first argument, or null if no arguments
first argument since: ostermillerutils 1.07.00 |
getArgumentCount | public int getArgumentCount()(Code) | | Get the argument count for this option
number of arguments since: ostermillerutils 1.07.00 |
getArguments | public List<String> getArguments()(Code) | | Get all the arguments, in the order that
they were specified.
unmodifiable list of arguments or null if none since: ostermillerutils 1.07.00 |
getOption | public CmdLnOption getOption()(Code) | | the option that caused this result since: ostermillerutils 1.07.00 |
hasAllArguments | boolean hasAllArguments()(Code) | | true iff enough arguments have been added (max not exceeded) since: ostermillerutils 1.07.00 |
requiresMoreArguments | boolean requiresMoreArguments()(Code) | | true iff more arguments need to be added (min not satisfied) since: ostermillerutils 1.07.00 |
|
|
|