com.raritantechnologies.utils.tagging
Class SystemObjectTagWriter
java.lang.Object
com.raritantechnologies.utils.tagging.SystemObjectTagWriter
- All Implemented Interfaces:
- IConfigurable, ITagWriter
- public class SystemObjectTagWriter
- extends java.lang.Object
- implements ITagWriter
Enables an ITagWriter to be reused by name.
XML Configuration Template:
<TagWriter class="com.raritantechnologies.utils.tagging.SystemObjectTagWriter" writerName="[SysObjName]" />
The above tag must be accompanied with a TagWriter definition in the SystemObject cache where the
SystemObject name attribute == the SystemObjectTagWriter writerName attribute:
<SystemObject type="TagWriter" name="[SysObjName]"
configurableClass="[some ITagWriter class]" >
<!-- reused tag writer details here -->
</SystemObject>
Developed by
Raritan Technologies Inc..
- Author:
- Ted Sullivan
|
Method Summary |
void |
addTag(java.lang.String tagWord,
java.lang.Object tagReference)
|
void |
clearTags()
|
void |
initialize(org.w3c.dom.Element elem)
Initialize TagWriter from an XML configuation element. |
void |
setMatchCase(java.lang.String matchCase)
|
java.lang.String |
tagWord(java.lang.String sessionID,
java.lang.String text)
returns a "tagged" version of the source word. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SystemObjectTagWriter
public SystemObjectTagWriter()
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
tagWord
public java.lang.String tagWord(java.lang.String sessionID,
java.lang.String text)
- Description copied from interface:
ITagWriter
- returns a "tagged" version of the source word.
- Specified by:
tagWord in interface ITagWriter
addTag
public void addTag(java.lang.String tagWord,
java.lang.Object tagReference)
- Specified by:
addTag in interface ITagWriter
clearTags
public void clearTags()
- Specified by:
clearTags in interface ITagWriter
setMatchCase
public void setMatchCase(java.lang.String matchCase)
- Specified by:
setMatchCase in interface ITagWriter