public final class PluginInfo
extends java.lang.Object
Constructor and Description |
---|
PluginInfo()
Creates the default PluginVersion instance.
|
PluginInfo(java.lang.Class<? extends java.lang.Object> caller,
java.lang.String name)
Creates an instance of PluginInfo with the
default values and the given name.
|
PluginInfo(java.lang.Class<? extends java.lang.Object> caller,
java.lang.String name,
java.lang.String desc)
Creates an instance of PluginInfo with the
default values and the given name and description.
|
PluginInfo(java.lang.Class<? extends java.lang.Object> caller,
java.lang.String name,
java.lang.String desc,
java.lang.String author)
Creates an instance of PluginInfo with the
default values and the given name, description and author.
|
PluginInfo(java.lang.Class<? extends java.lang.Object> caller,
java.lang.String name,
java.lang.String desc,
java.lang.String author,
java.lang.String license)
Creates an instance of PluginInfo with the default values and the given
name, description, author, the help url and license.
|
PluginInfo(java.lang.Class<? extends java.lang.Object> caller,
java.lang.String name,
java.lang.String desc,
java.lang.String author,
java.lang.String license,
java.lang.String helpUrl)
Creates an instance of PluginInfo with the default values and the given
name, description, author, the help url and license.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAuthor()
Gets the author of the plugin.
|
java.lang.String |
getDescription()
Gets the description of the plugin.
|
java.lang.String |
getHelpUrl()
Gets the help url for the plugin.
|
static java.lang.String |
getHelpUrl(java.lang.String id)
get the help URL (in the wiki) for a plugin
|
java.lang.String |
getLicense()
Gets the license of the plugin.
|
java.lang.String |
getName()
Gets the name of the plugin.
|
Version |
getVersion()
Gets the version of the plugin.
|
public PluginInfo()
public PluginInfo(java.lang.Class<? extends java.lang.Object> caller, java.lang.String name)
So assumed you have a plugin class MyPlugin, you would do it like this: new PluginInfo(MyPlugin.class, "My Plugin");
caller
- The class (plugin class) that want to create this PluginInfoname
- The name of the plugin.public PluginInfo(java.lang.Class<? extends java.lang.Object> caller, java.lang.String name, java.lang.String desc)
So assumed you have a plugin class MyPlugin, you would do it like this: new PluginInfo(MyPlugin.class, "My Plugin", "This plugin does something.");
caller
- The class (plugin class) that want to create this PluginInfoname
- The name of the plugin.desc
- The description for the plugin.public PluginInfo(java.lang.Class<? extends java.lang.Object> caller, java.lang.String name, java.lang.String desc, java.lang.String author)
So assumed you have a plugin class MyPlugin, you would do it like this: new PluginInfo(MyPlugin.class, "My Plugin", "This plugin does something.", "My Name");
caller
- The class (plugin class) that want to create this PluginInfoname
- The name of the plugin.desc
- The description for the plugin.author
- The author of the plugin.public PluginInfo(java.lang.Class<? extends java.lang.Object> caller, java.lang.String name, java.lang.String desc, java.lang.String author, java.lang.String license)
So assumed you have a plugin class MyPlugin, you would do it like this: new PluginInfo(MyPlugin.class, "My Plugin", "This plugin does something.", "My Name", "Some license");
caller
- The class (plugin class) that want to create this PluginInfoname
- The name of the plugin.desc
- The description for the plugin.author
- The author of the plugin.license
- The license of the plugin.public PluginInfo(java.lang.Class<? extends java.lang.Object> caller, java.lang.String name, java.lang.String desc, java.lang.String author, java.lang.String license, java.lang.String helpUrl)
So assumed you have a plugin class MyPlugin, you would do it like this: new PluginInfo(MyPlugin.class, "My Plugin", "This plugin does something.", "My Name", "Some license", "http://myhelp.org/mypluginhelp");
caller
- The class (plugin class) that want to create this PluginInfoname
- The name of the plugin.desc
- The description for the plugin.author
- The author of the plugin.helpUrl
- The url where to find help for the plugin.license
- The license of the plugin.public java.lang.String getName()
public java.lang.String getDescription()
public java.lang.String getAuthor()
public java.lang.String getHelpUrl()
public Version getVersion()
public java.lang.String getLicense()
public static java.lang.String getHelpUrl(java.lang.String id)
id
- plugin idTV-Browser 3.4.4, Copyright (C) 2004-2008 TV-Browser Team (dev@tvbrowser.org)