com.ibm.mashups.livetext
Interface LivetextModel


public LivetextModel

This is the tag processor API. When a match tag is found by the livetext service according to the configuration, the service will hand the DOM node to the tag processor. Each tag processor must implement this interface. Each processor must also provide a non-parameter constructor in addition to the processTag method. The non-parameter constructor is to ensure that the livetext service can create an instance of the implementation class without providing any more information.


Method Summary
 void processTag(DOMNode node)
           The entry point of a tag processor.
 void unprocessTag(DOMNode node)
           The entry point of a tag processor (unchanging).
 

Method Detail

processTag

void processTag(DOMNode node)
The entry point of a tag processor. When a tag is found, the service will dynamically load the module which was designed to process that type of tags, then create an instance of that tag module class if it has not been created, then call this method and hand the control to the tag module.

Parameters:
node - The livetext DOM node to be processed. Must not be null.

unprocessTag

void unprocessTag(DOMNode node)
The entry point of a tag processor (unchanging). When a tag is found, the service will dynamically load the module which was designed to process that type of tags, then create an instance of that tag module class if it has not been created, then call this method and hand the control to the tag module.

Parameters:
node - The livetext DOM node to be "unprocessed". Must not be null.


Copyright IBM Corp. 2010 All Rights Reserved.