com.raritantechnologies.HTML.filter
Class AddTagFilter

java.lang.Object
  extended bycom.raritantechnologies.HTML.filter.AddTagFilter
All Implemented Interfaces:
HTMLEventProcessor, IConfigurable

public class AddTagFilter
extends java.lang.Object
implements HTMLEventProcessor

EventProcessor element of an HTMLFilter. Inserts an HTML Tag into an HTML page.

XML Configuration Template:
  <EventProcessor class="com.raritantechnologies.HTML.filter.AddTagFilter" >
    <Tag name="[ the tag name ]" [other attributes - e.g. attribA="aval"]>
       <![CData[  The tag body ]]>
    </Tag>
  </EventProcessor>
 

Developed by Raritan Technologies Inc..

Author:
Ted Sullivan

Constructor Summary
AddTagFilter()
           
 
Method Summary
 void addTag(javax.swing.text.html.HTML.Tag theTag)
           
 void addTag(java.lang.String tagName)
           
 void addTags(java.lang.String[] tagNames)
           
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 java.util.ArrayList processEvents(java.util.ArrayList events)
          Process a list of HTMLEvents return a modified list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddTagFilter

public AddTagFilter()
Method Detail

addTags

public void addTags(java.lang.String[] tagNames)

addTag

public void addTag(javax.swing.text.html.HTML.Tag theTag)

addTag

public void addTag(java.lang.String tagName)

processEvents

public java.util.ArrayList processEvents(java.util.ArrayList events)
Description copied from interface: HTMLEventProcessor
Process a list of HTMLEvents return a modified list.

Specified by:
processEvents in interface HTMLEventProcessor
Returns:
Modified list of HTMLEvent objects.

initialize

public void initialize(org.w3c.dom.Element elem)
Description copied from interface: IConfigurable
Initializes the object from an XML tag or element. This method is called by the Framework as part of the application initializtion. see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory. Configurable objects that are owned or contained by other configurable objects will be initialized in by the parent object.

Specified by:
initialize in interface IConfigurable