Package de.dlr.proseo.ui.cli.parser
Klasse CLIParser
java.lang.Object
de.dlr.proseo.ui.cli.parser.CLIParser
Parser for the prosEO Command Line Interface
Command line syntax is based on a YAML specification. The general command syntax is: "proseo" command [subcommand...] [option...]
[parameter...]
- Autor:
- Dr. Thomas Bassler
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturn the currently applicable syntaxvoid
Load the command line syntax from the configured syntax fileParse a command string using the given syntax structure
-
Felddetails
-
TOP_LEVEL_COMMAND_NAME
The name of the top-level command- Siehe auch:
-
-
Konstruktordetails
-
CLIParser
public CLIParser()
-
-
Methodendetails
-
loadSyntax
Load the command line syntax from the configured syntax file- Löst aus:
FileNotFoundException
- if the given file could not be readorg.yaml.snakeyaml.error.YAMLException
- if the given file could not be parsed
-
getSyntax
Return the currently applicable syntax- Gibt zurück:
- the syntax
-
parse
Parse a command string using the given syntax structure- Parameter:
commandString
- the command string to parse- Gibt zurück:
- a command structure for execution
- Löst aus:
ParseException
- if an error is detected in the command syntaxIOException
- if an I/O error occurs during input tokenizing
-