edu.uci.isr.yancees.core
Class AbstractPluginTreeBuilder
java.lang.Object
edu.uci.isr.yancees.core.AbstractPluginTreeBuilder
- Direct Known Subclasses:
- NotificationManager, 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.
Method Summary |
MOPluginInterface |
parse(SubscriberInterface si,
SubscriptionInterface sub,
org.w3c.dom.Node tree)
Parses a generic message object, containing a valid parsed
DOM tree, returning the head of the Plug-in structured generated. |
MOPluginInterface |
parse(SubscriberInterface si,
SubscriptionInterface sub,
org.w3c.dom.Node tree,
MOPluginInterface commonSource)
Parses a generic message object, containing a valid parsed
DOM tree, and return the plug-in structured built. |
void |
setPluginManager(MOPluginManagerInterface pm)
Configures the plug-in manager, that is used in the resolution of the tags
of the incoming subscriptions. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
print
protected boolean print
plugManager
protected MOPluginManagerInterface plugManager
ROOT_CONTEXT
protected final java.lang.String ROOT_CONTEXT
- See Also:
- Constant Field Values
AbstractPluginTreeBuilder
protected AbstractPluginTreeBuilder()
setPluginManager
public void setPluginManager(MOPluginManagerInterface pm)
- Configures the plug-in manager, that is used in the resolution of the tags
of the incoming subscriptions.
- Parameters:
pm
- is the reference to the plug-in manager.
parse
public MOPluginInterface parse(SubscriberInterface si,
SubscriptionInterface sub,
org.w3c.dom.Node tree)
throws ParserException
- Parses a generic message object, containing a valid parsed
DOM tree, returning the head of the Plug-in structured generated.
- Parameters:
si
- is the SubscriberInteface where the message came fromsub
- TODOtree
- is the DOM Tree to be parsed
- Returns:
- the root plugin interface of the head of the plugin parsing structure.
- Throws:
ParserException
parse
public MOPluginInterface parse(SubscriberInterface si,
SubscriptionInterface sub,
org.w3c.dom.Node tree,
MOPluginInterface commonSource)
throws ParserException
- Parses a generic message object, containing a valid parsed
DOM tree, and return the plug-in structured built. It provides a common
source plug-in that 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:
si
- TODOsub
- TODOtree
- is the DOM tree to be parsedcommonSource
- is a plug-in that all leafs must subscribe to.
- Returns:
- the root plugin interface.
- Throws:
ParserException