com.unitesk.atp.tree.tool
Class Plugin
java.lang.Object
com.unitesk.atp.tool.PluginClass
com.unitesk.atp.tree.tool.Plugin
- All Implemented Interfaces:
- Plugin
- Direct Known Subclasses:
- Action, Attribute
public abstract class Plugin
- extends PluginClass
Plug-in is a tool functionality extention module.
- Version:
- $Id: Plugin.java,v 1.1 2004/10/09 06:40:12 all-x Exp $
- Author:
- Alexey Demakov
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tree
protected Tree tree
pm
protected PluginManager pm
Plugin
public Plugin()
setCurrentTree
public void setCurrentTree(Tree tree)
getCurrentTree
public Tree getCurrentTree()
process
public final void process(String name)
- Performs an action with the specified name over the same tree.
Calls
pm.process( name, tree )
- Parameters:
name
- The name of an action.
get
public final Object get(String name,
Node node)
- Computes an attribute with the specified name of the specified
node of the same tree.
Calls
tool.get( name, tree, node )
- Parameters:
name
- The name of attribute.node
- The tree node.
- Returns:
- The value of
node
attribute name
.
init
public void init(PluginManager pm,
String name)
- Links this plugin to the specified plugin manager.
Must be called before plugin usage.
- Specified by:
init
in interface Plugin
- Overrides:
init
in class PluginClass
- Parameters:
pm
- The plugin manager to link plugin to.name
- The name of plugin.
Copyright © 2001-2006 ISP RAS, RedVerst Group. All Rights Reserved.