public class ConfigCommand extends ConsoleCommand
Constructor and Description |
---|
ConfigCommand() |
Modifier and Type | Method and Description |
---|---|
boolean |
execute(Scanner in,
PrintWriter out,
Args args)
Executes a command.
|
String |
getDescription()
Returns localized details of the command.
|
String |
getInfo()
Returns a one-line localized description of the command.
|
String |
getName()
Returns the name of the command.
|
String |
getSynopsis()
Returns the usage synopsis of the command.
|
getExamples
public ConfigCommand()
public String getName()
ConsoleCommand
Example:
getName
in class ConsoleCommand
public String getSynopsis()
ConsoleCommand
Example:
The default implementation just returns the name, which implies the command takes no additional arguments.
getSynopsis
in class ConsoleCommand
public String getInfo()
ConsoleCommand
The locale should be the system locale.
getInfo
in class ConsoleCommand
public String getDescription()
ConsoleCommand
The locale should be the system locale.
getDescription
in class ConsoleCommand
public boolean execute(Scanner in, PrintWriter out, Args args)
ConsoleCommand
execute
in class ConsoleCommand
in
- The console reader.out
- The console writer.args
- The command arguments. The first argument is always the command itself.Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.