public interface ToolAddonFactory
Modifier and Type | Method and Description |
---|---|
ToolAddonUI |
createToolUI(java.lang.String typeIdentifier,
YouScopeClient client,
YouScopeServer server)
Returns the UI of a Tool for the given type identifier.
|
java.lang.String[] |
getSupportedTypeIdentifiers()
Returns all tool type identifiers supported by this addon
|
ToolMetadata |
getToolMetadata(java.lang.String typeIdentifier)
Returns the metadata (like human readable name) for the tool with the given type identifier.
|
boolean |
isSupportingTypeIdentifier(java.lang.String typeIdentifier)
Returns true if this addon supports tools with the given type identifier, false otherwise.
|
ToolAddonUI createToolUI(java.lang.String typeIdentifier, YouScopeClient client, YouScopeServer server) throws AddonException
AddonException
.typeIdentifier
- The type identifier of the tool.client
- YouScope client.server
- YouScope server.AddonException
- Thrown if tools with given type identifier are not supported by this factory.*java.lang.String[] getSupportedTypeIdentifiers()
boolean isSupportingTypeIdentifier(java.lang.String typeIdentifier)
typeIdentifier
- The type identifier of the tool for which it should be queried if this addon supports it.ToolMetadata getToolMetadata(java.lang.String typeIdentifier) throws AddonException
typeIdentifier
- The type identifier of the tool for which the metadata should be returned.AddonException
- Thrown if type identifier is not supported by the factory.