public class Commands extends Object
| Constructor and Description |
|---|
Commands() |
| Modifier and Type | Method and Description |
|---|---|
static Iterable<UICommand> |
getEnabledCommands(Iterable<UICommand> commands,
UIContext context)
Returns the main commands from this
Iterable (that is, the ones that are enabled and not a
UIWizardStep instance) |
static boolean |
isEnabled(UICommand command,
UIContext context)
Returns true if this command can be invoked
|
static String |
shellifyCommandName(String name)
Shellifies a command name
|
static String |
shellifyOptionName(String name)
Shellifies an option name
|
static String |
shellifyOptionNameDashed(String name)
Shellifies an option name using the provided style
|
static String |
shellifyOptionValue(String value)
Shellifies an option value
|
public static Iterable<UICommand> getEnabledCommands(Iterable<UICommand> commands, UIContext context)
Iterable (that is, the ones that are enabled and not a
UIWizardStep instance)public static boolean isEnabled(UICommand command, UIContext context)
public static String shellifyCommandName(String name)
name - public static String shellifyOptionName(String name)
name - public static String shellifyOptionValue(String value)
value - Copyright © 2016 JBoss by Red Hat. All rights reserved.