com.raritantechnologies.utils.tagging
Class SequentialLinkTagWriter

java.lang.Object
  extended bycom.raritantechnologies.utils.tagging.HyperlinkTagWriter
      extended bycom.raritantechnologies.utils.tagging.HighlightTagWriter
          extended bycom.raritantechnologies.utils.tagging.SequentialLinkTagWriter
All Implemented Interfaces:
IConfigurable, ITagWriter

public class SequentialLinkTagWriter
extends HighlightTagWriter

Creates a series of anchor tags linking multiple keyword occurrences within a document.

XML Configuration Template:
    <TagWriter class="com.raritantechnologies.utils.tagging.SequentialLinkTagWriter"
                  hlBegin="[XML encoded HTML for tag begin: <span class="cssClass"> ]"
                  hlEnd="[ XML encoded HTML for tag end: </span> ]"
                  matchCase="LOWER|UPPER|NONE"
                  initialLinkOnly="[true|false(default)]" >

     <!-- one or more AttributeMap elements: -->
     <AttributeMap tagAttribute="[ value in AttributesWordTagger.attribute from tag source ]"
                      cssClass="[ corresponding css Class for hilighting ]" />
     <AttributeMap etc. . . >
   </TagWriter>
 

Developed by Raritan Technologies Inc..

Author:
Ted Sullivan

Field Summary
 
Fields inherited from class com.raritantechnologies.utils.tagging.HighlightTagWriter
classMap, hlBegin, hlEnd, useSpanTag
 
Fields inherited from class com.raritantechnologies.utils.tagging.HyperlinkTagWriter
matchCase
 
Fields inherited from interface com.raritantechnologies.utils.tagging.ITagWriter
TEMPLATE
 
Constructor Summary
SequentialLinkTagWriter()
           
 
Method Summary
 void clearTags()
           
 void initialize(org.w3c.dom.Element elem)
          Initialize TagWriter from an XML configuation element.
protected  java.lang.String tagIt(java.lang.String sessionID, java.lang.String tagAttrib, java.lang.String source)
           
 
Methods inherited from class com.raritantechnologies.utils.tagging.HighlightTagWriter
getConfigurationXML, getHLBegin, getHLEnd, getUseSpanTag, setHLBegin, setHLEnd, setUseSpanTag
 
Methods inherited from class com.raritantechnologies.utils.tagging.HyperlinkTagWriter
addSourceLink, addSourceLink, addTag, clearSourceLinks, removeSourceLink, setMatchCase, setMatchPartialPhrase, tagWord
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequentialLinkTagWriter

public SequentialLinkTagWriter()
Method Detail

clearTags

public void clearTags()
Specified by:
clearTags in interface ITagWriter
Overrides:
clearTags in class HyperlinkTagWriter

tagIt

protected java.lang.String tagIt(java.lang.String sessionID,
                                 java.lang.String tagAttrib,
                                 java.lang.String source)
Overrides:
tagIt in class HighlightTagWriter

initialize

public void initialize(org.w3c.dom.Element elem)
Description copied from interface: ITagWriter
Initialize TagWriter from an XML configuation element.

Specified by:
initialize in interface ITagWriter
Overrides:
initialize in class HighlightTagWriter