|
Forge - Parent 1.0.7-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PluginMetadata
Defines a plugin.
Method Summary | |
---|---|
boolean |
constrantsSatisfied(Shell shell)
Return true if all constraints defined on this plugin (such as RequiresProject or RequiresFacet )
are satisfied by the current project (if available) and Shell.getCurrentResource() scope. |
List<CommandMetadata> |
getAllCommands()
Get a list of all commands defined by this plugin, regardless of the current Shell.getCurrentResource()
scope or constraints. |
CommandMetadata |
getCommand(String name)
Get the command with the given name, if it exists in this plugin and is not overloaded in multiple Resource scopes. |
CommandMetadata |
getCommand(String name,
Class<? extends Resource<?>> scope)
Get the command with the given name and Resource scope, if it exists in this plugin. |
CommandMetadata |
getCommand(String name,
Shell shell)
Get the command with the given name if it exists in this plugin, and is available in the current Shell.getCurrentResource() scope. |
List<CommandMetadata> |
getCommands()
Get a list of all commands defined by this plugin, if they are in scope. |
List<CommandMetadata> |
getCommands(Shell shell)
For the Shell.getCurrentResource() scope, return a list of all available commands defined by this plugin. |
CommandMetadata |
getDefaultCommand()
Get the default command specified by this plugin. |
String |
getHelp()
Get the help text for this plugin. |
String |
getName()
Get the name by which this plugin is referenced on the command line. |
Set<Class<? extends Resource<?>>> |
getResourceScopes()
Get the Resource scopes for which this plugin is available. |
CommandMetadata |
getSetupCommand()
Get the "setup" command for this plugin. |
String |
getTopic()
Get the topic text for this plugin. |
Class<? extends Plugin> |
getType()
Get the implementing Plugin class type for this PluginMetadata |
boolean |
hasCommand(String name,
Class<? extends Resource<?>> scope)
Return true if this plugin defines a command with the given name and Resource scope. |
boolean |
hasCommand(String name,
Shell shell)
Return true if this plugin defines a command with the given name in the current Shell.getCurrentResourceScope() |
boolean |
hasCommands()
Return true if this plugin has any commands. |
boolean |
hasDefaultCommand()
Return true if this plugin has a default command. |
boolean |
hasSetupCommand()
Return true if this plugin has a "setup" command. |
boolean |
isCommandOverloaded(String name)
Return true if this plugin is overloaded in multiple Resource scopes. |
boolean |
isSetupAvailable(Shell shell)
Return true if hasSetupCommand() returns true, and it is available in the current scope. |
boolean |
usableWithScope(Class<? extends Resource> scope)
Return true if this plugin is usable in the given Resource scope |
Method Detail |
---|
boolean constrantsSatisfied(Shell shell)
RequiresProject
or RequiresFacet
)
are satisfied by the current project (if available) and Shell.getCurrentResource()
scope.
List<CommandMetadata> getAllCommands()
Shell.getCurrentResource()
scope or constraints.
CommandMetadata getCommand(String name)
Resource
scopes. If it does not exist, return null.
CommandMetadata getCommand(String name, Class<? extends Resource<?>> scope)
Resource
scope, if it exists in this plugin. If it does not exist,
return null.
CommandMetadata getCommand(String name, Shell shell)
Shell.getCurrentResource()
scope. If it does not exist, or is not in scope, return null.
List<CommandMetadata> getCommands()
List<CommandMetadata> getCommands(Shell shell)
Shell.getCurrentResource()
scope, return a list of all available commands defined by this plugin.
CommandMetadata getDefaultCommand()
String getHelp()
String getName()
Set<Class<? extends Resource<?>>> getResourceScopes()
Resource
scopes for which this plugin is available.
String getTopic()
Class<? extends Plugin> getType()
Plugin
class type for this PluginMetadata
boolean hasCommand(String name, Class<? extends Resource<?>> scope)
Resource
scope.
boolean hasCommand(String name, Shell shell)
Shell.getCurrentResourceScope()
boolean hasCommands()
boolean hasDefaultCommand()
boolean isCommandOverloaded(String name)
Resource
scopes.
boolean usableWithScope(Class<? extends Resource> scope)
Resource
scope
boolean hasSetupCommand()
CommandMetadata getSetupCommand()
boolean isSetupAvailable(Shell shell)
hasSetupCommand()
returns true, and it is available in the current scope.
|
Forge - Parent 1.0.7-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |