com.raritantechnologies.utils.tagging
Class StaticTagSource
java.lang.Object
com.raritantechnologies.utils.tagging.StaticTagSource
- All Implemented Interfaces:
- IConfigurable, IHyperlinkTagSource
- public class StaticTagSource
- extends java.lang.Object
- implements IHyperlinkTagSource
Static (configured) tag source.
XML Configuration Template:
<TagSource class="com.raritantechnologies.utils.tagging.StaticTagSource" >
<WordLinks>
<!-- One or more WordLink Elements -->
<WordLink url="[ url related to source link ]" source="[ text of the tag source string ]" />
<WordLink url="[ url related to source link ]" source="[ text of the tag source string ]" />
<!-- etc. -->
</WordLinks>
</TagSource>
Developed by
Raritan Technologies Inc..
- Author:
- Ted Sullivan
|
Method Summary |
void |
addSourceLink(java.lang.String firstWord,
AttributeWordsTagger tagger)
|
void |
addSourceLink(java.lang.String sourceWord,
java.lang.String referenceURL)
|
java.util.HashMap |
getTagWords()
returns a HashMap of first tag word --> URLWordsTagger |
void |
initialize(org.w3c.dom.Element elem)
Initialize TagWriter from an XML configuation element. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StaticTagSource
public StaticTagSource()
initialize
public void initialize(org.w3c.dom.Element elem)
- Initialize TagWriter from an XML configuation element.
- Specified by:
initialize in interface IHyperlinkTagSource
addSourceLink
public void addSourceLink(java.lang.String sourceWord,
java.lang.String referenceURL)
addSourceLink
public void addSourceLink(java.lang.String firstWord,
AttributeWordsTagger tagger)
getTagWords
public java.util.HashMap getTagWords()
- Description copied from interface:
IHyperlinkTagSource
- returns a HashMap of first tag word --> URLWordsTagger
- Specified by:
getTagWords in interface IHyperlinkTagSource