Interface QApplicationBuilderType
public interface QApplicationBuilderType
An application builder.
-
Method Summary
Modifier and TypeMethodDescriptionaddCommand(QCommandType command) Add a command.allowAtSyntax(boolean enabled) Enable or disable @ syntax processing.build()createCommandGroup(QCommandMetadata metadata) Create a new command group.setApplicationResources(ResourceBundle resources) Set the application resources that will be used.setInternalResources(ResourceBundle resources) Set the internal resources that will be used.setOutput(PrintWriter writer) Set the output that will be used when executing commands.setValueConverters(QValueConverterDirectoryType converters) Set the value converters that will be used.
-
Method Details
-
setValueConverters
Set the value converters that will be used.- Parameters:
converters- The converters- Returns:
- this
-
setOutput
Set the output that will be used when executing commands.- Parameters:
writer- The writer- Returns:
- this
-
setApplicationResources
Set the application resources that will be used.- Parameters:
resources- The resources- Returns:
- this
-
setInternalResources
Set the internal resources that will be used.- Parameters:
resources- The resources- Returns:
- this
-
createCommandGroup
Create a new command group.- Parameters:
metadata- The metadata- Returns:
- this
-
addCommand
Add a command.- Parameters:
command- The command- Returns:
- this
-
allowAtSyntax
Enable or disable @ syntax processing.- Parameters:
enabled-trueif @ syntax processing is enabled- Returns:
- this
-
build
QApplicationType build()- Returns:
- The immutable application
-