|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.unitesk.atp.tool.PluginClass
public abstract class PluginClass
Plugin is a tool functionality extention module.
This default implementation of interface Plugin
functionality.
Field Summary | |
---|---|
protected MessageBox |
mbox
|
protected String |
name
|
protected PluginManager |
pm
|
Constructor Summary | |
---|---|
PluginClass()
|
Method Summary | |
---|---|
String |
getName()
Returns plugin name. |
Object |
getPlugin(String name)
Returns plugin with the specified name. |
PluginManager |
getPluginManager()
Gets plugin manager for this plugin. |
String |
getProperty(String name)
Gets the value of a plugin property with the specified name. |
String |
getProperty(String name,
String value)
Gets the value of a plugin property with the specified name or the specified default value if this property is not defined. |
String |
getPropertyName(String name)
Gets the name of a system property for the specified plugin property. |
static String |
getRevision(String rev)
Returns revision number from CVS tag #Revision# |
void |
init(PluginManager pm,
String name)
Links this plugin to the specified plugin manager. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.unitesk.atp.tool.Plugin |
---|
getKind, getVersion |
Field Detail |
---|
protected PluginManager pm
protected MessageBox mbox
protected String name
Constructor Detail |
---|
public PluginClass()
Method Detail |
---|
public final String getName()
getName
in interface Plugin
public void init(PluginManager pm, String name)
init
in interface Plugin
pm
- The plugin manager to link plugin to.name
- The name of plugin.public final Object getPlugin(String name)
getPlugin
in interface Plugin
name
- The name of plugin.public final String getPropertyName(String name)
getPropertyName
in interface Plugin
name
- The name of a plugin property.
public final String getProperty(String name)
getProperty
in interface Plugin
name
- The name of a plugin property.
public String getProperty(String name, String value)
getProperty
in interface Plugin
name
- The name of a plugin property.value
- The default value of a property.
public static String getRevision(String rev)
rev
- Revision string.
public PluginManager getPluginManager()
getPluginManager
in interface Plugin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |