|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.admin.cli.Parser
public class Parser
The Parser object is used to parse the
command line and verify that the command line is CLIP compliant.
| Constructor Summary | |
|---|---|
Parser(String[] args,
int start,
Collection<CommandModel.ParamModel> options,
boolean ignoreUnknown)
Parse the given command line arguments |
|
| Method Summary | |
|---|---|
List<String> |
getOperands()
Returns the list of operands. |
ParameterMap |
getOptions()
Returns a Map with all the options. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Parser(String[] args,
int start,
Collection<CommandModel.ParamModel> options,
boolean ignoreUnknown)
throws 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 exception
CommandValidationException - if command line parsing fails| Method Detail |
|---|
public ParameterMap getOptions()
public List<String> getOperands()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||