|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.unitesk.atp.tool.PluginManagerClass
com.unitesk.atp.tool.Tool
com.unitesk.atp.tree.tool.Tool
public abstract class Tool
The framework of an application that processes Attributed Tree (AT).
The inheritor must implement abstract methods parse(File)
,
Tool.initName()
and define method
public static void main( String[] args ) { new MyTool().run( args ); }
Field Summary | |
---|---|
protected Tree |
tree
|
Fields inherited from class com.unitesk.atp.tool.Tool |
---|
default_mbox_class, default_plugins_file_name, default_properties_file_name, mbox_class_property_name, plugins_file_name, plugins_file_property_name, plugins_file_status, properties_file_name, properties_file_property_name, properties_file_status, version |
Fields inherited from class com.unitesk.atp.tool.PluginManagerClass |
---|
config, mbox, name, table |
Constructor Summary | |
---|---|
Tool()
|
Method Summary | |
---|---|
Object |
get(String name,
Tree tree,
Node node)
|
Tree |
getTree()
|
protected void |
onActionFinish(String name,
Action action)
Invoked before start of the action. |
protected void |
onActionStart(String name,
Action action)
Invoked before start of the action. |
protected void |
onParserFinish(String inputFileName)
Invoked before start of parsing. |
protected void |
onParserStart(String inputFileName)
Invoked before start of parsing. |
protected void |
onToolFinish()
Invoked at finish of the tool. |
protected void |
onToolStart()
Invoked at start of the tool. |
protected abstract void |
parse(File inputFile)
Parses the input file and sets tree root node. |
void |
process(String name,
Tree tree)
|
protected int |
run(String[] args)
Processes command line arguments. |
void |
setTree(Tree tree)
|
Methods inherited from class com.unitesk.atp.tool.Tool |
---|
findFile, getVersion, initConfig, initMessageBox, initName, initPluginsTable, usage |
Methods inherited from class com.unitesk.atp.tool.PluginManagerClass |
---|
createPluginsTable, getMessageBox, getName, getPlugin, getPluginProperty, getPluginProperty, getPluginPropertyName, getProperty, getProperty, help, loadPlugins |
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.PluginManager |
---|
getMessageBox, getName, getPlugin, getPluginProperty, getPluginProperty, getPluginPropertyName |
Field Detail |
---|
protected Tree tree
Constructor Detail |
---|
public Tool()
Method Detail |
---|
protected abstract void parse(File inputFile)
setTree( Tree )
,
getTree()
protected int run(String[] args)
args
- The array of command line parameters from main() method.public Tree getTree()
public void setTree(Tree tree)
public void process(String name, Tree tree)
public Object get(String name, Tree tree, Node node)
protected void onToolStart()
protected void onToolFinish()
protected void onParserStart(String inputFileName)
inputFileName
- The name of the input file.protected void onParserFinish(String inputFileName)
inputFileName
- The name of the input file.protected void onActionStart(String name, Action action)
name
- The name of the action.action
- The action.protected void onActionFinish(String name, Action action)
name
- The name of the action.action
- The action.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |