Package com.sun.enterprise.admin.cli
Class Parser
java.lang.Object
com.sun.enterprise.admin.cli.Parser
The
Parser object is used to parse the command line and verify that the command line is CLIP compliant.-
Constructor Summary
ConstructorsConstructorDescriptionParser(String[] args, int start, Collection<org.glassfish.api.admin.CommandModel.ParamModel> options, boolean ignoreUnknown) Parse the given command line arguments -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of operands.org.glassfish.api.admin.ParameterMapReturns a Map with all the options.toString()
-
Constructor Details
-
Parser
public Parser(String[] args, int start, Collection<org.glassfish.api.admin.CommandModel.ParamModel> options, boolean ignoreUnknown) throws org.glassfish.api.admin.CommandValidationException Parse the given command line arguments- Parameters:
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- Throws:
org.glassfish.api.admin.CommandValidationException- if command line parsing fails
-
-
Method Details