Interface QApplicationType
- All Superinterfaces:
QLocalizationType
- All Known Implementing Classes:
QApplication
An application.
-
Method Summary
Modifier and TypeMethodDescriptionmetadata()Parse the given command line arguments, returning an appropriate command context for execution.default QCommandStatusA convenience method that runs this application for the given arguments.Methods inherited from interface QLocalizationType
format, localize
-
Method Details
-
metadata
QApplicationMetadata metadata()- Returns:
- The application metadata
-
commandTree
SortedMap<String, QCommandOrGroupType> commandTree()- Returns:
- The tree of commands and command groups
-
internalResources
ResourceBundle internalResources()- Returns:
- The internal resources used to localize strings
-
applicationResources
ResourceBundle applicationResources()- Returns:
- The application-specific resources used to localize strings
-
valueConverters
QValueConverterDirectoryType valueConverters()- Returns:
- The value converters used to parse commands
-
parse
Parse the given command line arguments, returning an appropriate command context for execution.- Parameters:
arguments- The arguments- Returns:
- A command context
- Throws:
QException- On errors
-
run
A convenience method that runs this application for the given arguments. Arguments are parsed, and a suitable command is executed. Parse and other errors are logged to the given error logger.- Parameters:
logger- The receiver of log messagesarguments- The arguments- Returns:
- The executed command status
-