com.raritantechnologies.utils.tagging
Class SequentialLinkTagWriter
java.lang.Object
com.raritantechnologies.utils.tagging.HyperlinkTagWriter
com.raritantechnologies.utils.tagging.HighlightTagWriter
com.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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SequentialLinkTagWriter
public SequentialLinkTagWriter()
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