edu.uci.isr.yancees.core
Class AbstractPluginTreeBuilder

java.lang.Object
  extended byedu.uci.isr.yancees.core.AbstractPluginTreeBuilder
Direct Known Subclasses:
NotificationManager, ProtocolManager, SubscriptionManager

public abstract class AbstractPluginTreeBuilder
extends java.lang.Object

Parses a DOM tree using the plug-ins installed in the plug-in manager The plug-in manager may be shared with other builder or may be exclusive for this builder.


Field Summary
protected  PluginManagerInterface plugManager
           
protected  boolean print
           
protected  java.lang.String ROOT_CONTEXT
           
 
Constructor Summary
protected AbstractPluginTreeBuilder()
           
 
Method Summary
 PluginInterface parse(org.w3c.dom.Node tree)
          Parses a generic message object, containng a valid parsed DOM tree, returning the head of the Plug-in structured generated.
 PluginInterface parse(org.w3c.dom.Node tree, PluginInterface commonSource)
          Parses a generic message object, containng a valid parsed DOM tree, and return the plug-in structured built.
 void setPluginManager(PluginManagerInterface pm)
          Configures the plug-in manager to be used in the resoluiton of the tags in the incomming subscriptions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

print

protected boolean print

plugManager

protected PluginManagerInterface plugManager

ROOT_CONTEXT

protected final java.lang.String ROOT_CONTEXT
See Also:
Constant Field Values
Constructor Detail

AbstractPluginTreeBuilder

protected AbstractPluginTreeBuilder()
Method Detail

setPluginManager

public void setPluginManager(PluginManagerInterface pm)
Configures the plug-in manager to be used in the resoluiton of the tags in the incomming subscriptions.

Parameters:
pm - is the reference to the plug-in manager.

parse

public PluginInterface parse(org.w3c.dom.Node tree)
                      throws ParserException
Parses a generic message object, containng a valid parsed DOM tree, returning the head of the Plug-in structured generated.

Parameters:
tree - is the DOM Tree to be parsed
Returns:
the root plugin interface of the head of the plugin parsing sturcture.
Throws:
ParserException

parse

public PluginInterface parse(org.w3c.dom.Node tree,
                             PluginInterface commonSource)
                      throws ParserException
Parses a generic message object, containng a valid parsed DOM tree, and return the plug-in structured built. It provides a common source plug-in thata all leaf plug-ins need to subscribe to. This method is used to merge plug-in evaluation trees, as the case with notification and subscription subtrees.

Parameters:
tree - is the DOM tree to be parsed
commonSource - is a plug-in that all leafs must subscribe to.
Returns:
the root plugin interface.
Throws:
ParserException