public class Parser extends Object
Parser object is used to parse the
command line and verify that the command line is CLIP compliant.| Constructor and Description |
|---|
Parser(String[] args,
int start,
Collection<org.glassfish.api.admin.CommandModel.ParamModel> options,
boolean ignoreUnknown)
Parse the given command line arguments
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getOperands()
Returns the list of operands.
|
org.glassfish.api.admin.ParameterMap |
getOptions()
Returns a Map with all the options.
|
String |
toString() |
public Parser(String[] args, int start, Collection<org.glassfish.api.admin.CommandModel.ParamModel> options, boolean ignoreUnknown) throws org.glassfish.api.admin.CommandValidationException
args - command line argumentsstart - index in args to start parsingoptions - the valid options to consider while parsingignoreUnknown - if true, unknown options are considered operands
instead of generating an exceptionorg.glassfish.api.admin.CommandValidationException - if command line parsing failsCopyright © 2017–2019 Eclipse Foundation. All rights reserved.