public interface AvailableCommands
Module: command-executor-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>command-executor-api</artifactId> </dependency>
Modifier and Type | Method and Description |
---|---|
String |
getArgDescription(String namespace,
String command,
String argument)
Returns the value of the description field for this argument.
|
String |
getArgExampleStringValue(String namespace,
String command,
String argument)
Returns the value of the defaultStringValue field for this argument.
|
String |
getArgLongDescription(String namespace,
String command,
String argument)
Returns the value of the longDescription field for this argument.
|
boolean |
getArgRequired(String namespace,
String command,
String argument)
Returns the value of the required field for this argument.
|
String |
getArgTooltip(String namespace,
String command,
String argument)
Returns the value of the tooltip field for this argument.
|
Class<?> |
getArgType(String namespace,
String command,
String argument)
Returns the type of the argument.
|
String |
getArgTypeString(String namespace,
String command,
String argument)
Returns a human-readable string for this argument of the form:
argument=<type>
|
List<String> |
getArguments(String namespace,
String command)
Returns a list of arguments for the specified namespace and command in alphabetical order.
|
Object |
getArgValue(String namespace,
String command,
String argument)
Deprecated.
|
List<String> |
getCommands(String namespace)
Returns a list of available commands in alphabetical order for the specified namespace.
|
String |
getDescription(String namespace,
String command)
Returns the description of the specified command in the specified namespace.
|
String |
getExampleJSON(String namespace,
String command)
Returns a valid JSON string representative of the expected JSON output of the command.
|
String |
getLongDescription(String namespace,
String command)
Returns the longDescription of the specified command in the specified namespace.
|
List<String> |
getNamespaces()
Returns a list of available command namespaces in alphabetical order.
|
boolean |
getSupportsJSON(String namespace,
String command)
Returns true if the command is expected to provide JSON output.
|
List<String> getNamespaces()
List<String> getCommands(String namespace)
namespace
- The namespace whose available commands we want to know about.String getDescription(String namespace, String command)
namespace
- The namespace for the command whose description we want to know about.command
- The command within the specified namespace whose description we want to know about.String getLongDescription(String namespace, String command)
namespace
- The namespace for the command whose longDescription we want to know about.command
- The command within the specified namespace whose longDescription we want to know about.List<String> getArguments(String namespace, String command)
namespace
- The namespace for the command whose arguments we want to know about.command
- The command within the specified namespace whose arguments we want to know about.boolean getArgRequired(String namespace, String command, String argument)
namespace
- The namespace for the command whose argument we want to know about.command
- The command within the specified namespace whose argument we want to know about.argument
- The argument we want to know aboutString getArgTooltip(String namespace, String command, String argument)
namespace
- The namespace for the command whose argument we want to know about.command
- The command within the specified namespace whose argument we want to know about.argument
- The argument we want to know aboutString getArgDescription(String namespace, String command, String argument)
namespace
- The namespace for the command whose argument we want to know about.command
- The command within the specified namespace whose argument we want to know about.argument
- The argument we want to know aboutString getArgLongDescription(String namespace, String command, String argument)
namespace
- The namespace for the command whose argument we want to know about.command
- The command within the specified namespace whose argument we want to know about.argument
- The argument we want to know aboutString getArgExampleStringValue(String namespace, String command, String argument)
namespace
- The namespace for the command whose argument we want to know about.command
- The command within the specified namespace whose argument we want to know about.argument
- The argument we want to know aboutClass<?> getArgType(String namespace, String command, String argument)
namespace
- The namespace for the command whose argument we want to know about.command
- The command within the specified namespace whose argument we want to know about.argument
- The argument we want to know about@Deprecated Object getArgValue(String namespace, String command, String argument)
namespace
- The namespace for the command whose argument we want to know about.command
- The command within the specified namespace whose argument we want to know about.argument
- The argument we want to know aboutString getArgTypeString(String namespace, String command, String argument)
namespace
- The namespace for the command whose argument we want to know about.command
- The command within the specified namespace whose argument we want to know about.argument
- The argument we want to know aboutboolean getSupportsJSON(String namespace, String command)
namespace
- The namespace of the commandcommand
- The command within the specified namespaceCopyright 2011-2015 Cytoscape Consortium. All rights reserved.