Class QApplication
java.lang.Object
com.io7m.quarrel.core.QApplication
- All Implemented Interfaces:
QApplicationType, QLocalizationType
The default application configuration.
-
Method Summary
Modifier and TypeMethodDescriptionstatic QApplicationBuilderTypebuilder(QApplicationMetadata metadata) Create a new application builder.format(QStringType string, Object... arguments) Localize and format the given string.localize(QStringType string) Localize the given string.metadata()Parse the given command line arguments, returning an appropriate command context for execution.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface QApplicationType
run
-
Method Details
-
builder
Create a new application builder.- Parameters:
metadata- The application metadata- Returns:
- A new builder
-
metadata
- Specified by:
metadatain interfaceQApplicationType- Returns:
- The application metadata
-
commandTree
- Specified by:
commandTreein interfaceQApplicationType- Returns:
- The tree of commands and command groups
-
internalResources
- Specified by:
internalResourcesin interfaceQApplicationType- Returns:
- The internal resources used to localize strings
-
applicationResources
- Specified by:
applicationResourcesin interfaceQApplicationType- Returns:
- The application-specific resources used to localize strings
-
valueConverters
- Specified by:
valueConvertersin interfaceQApplicationType- Returns:
- The value converters used to parse commands
-
parse
Description copied from interface:QApplicationTypeParse the given command line arguments, returning an appropriate command context for execution.- Specified by:
parsein interfaceQApplicationType- Parameters:
arguments- The arguments- Returns:
- A command context
- Throws:
QException- On errors
-
localize
Description copied from interface:QLocalizationTypeLocalize the given string.- Specified by:
localizein interfaceQLocalizationType- Parameters:
string- The string- Returns:
- The string
-
format
Description copied from interface:QLocalizationTypeLocalize and format the given string. The localized string is treated as a format string, and formatted usingMessageFormat.- Specified by:
formatin interfaceQLocalizationType- Parameters:
string- The stringarguments- The arguments- Returns:
- The string
-