|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.clearforest.ClearForestResultFieldFormatter
Applies ClearForest tags to another result field using an ITagWriter.
<FieldFormatter class="com.raritantechnologies.clearforest.ClearForestResultFieldFormatter"
clfTagsField="[ result field with ClearForest tags ]"
sourceField="[ result field with document source ]" >
<EntityMap>
<Entity name="[ entity name ]"
baseURL="[ the URL ]"
param="[ name of entity parameter ]"
class="[ entity type ]"
matchPartialPhrase="[ true|false ]" />
</EntityMap>
<TagWriter class="[ class of com.raritantechnologies.utils.tagging.ITagWriter ]" >
</TagWriter>
</FieldFormatter>
| Field Summary |
| Fields inherited from interface com.raritantechnologies.searchApp.IFieldFormatter |
TEMPLATE |
| Constructor Summary | |
ClearForestResultFieldFormatter()
|
|
| Method Summary | |
java.lang.String |
formatField(java.lang.String fieldVal)
Reformats a field value. |
java.lang.String |
formatField(java.lang.String sessionID,
java.lang.String fieldVal)
Reformats a field value. |
void |
formatResultField(IResult result)
Formats a result field "in place". |
void |
formatResultField(java.lang.String sessionID,
IResult result)
Formats a result field "in place", incorporating session context. |
java.lang.String |
getClearForestTagsField()
|
ClearForestTermExtractor |
getClearForestTermExtractor()
|
java.lang.String |
getConfigurationXML()
|
void |
getConfigurationXML(java.io.Writer writer)
|
java.lang.String |
getFieldName()
Returns the name of the result field that this formatter can reformat. |
java.lang.String |
getSourceField()
|
ITagWriter |
getTagWriter()
|
void |
initialize(org.w3c.dom.Element elem)
Initializes the formatter from configuration XML element. |
void |
setClearForestTagsField(java.lang.String cfTagsField)
|
void |
setClearForestTermExtractor(ClearForestTermExtractor cfTermExtractor)
|
void |
setSourceField(java.lang.String sourceField)
|
void |
setTagWriter(ITagWriter tagWriter)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.raritantechnologies.searchApp.IFieldFormatter |
getConfigurationXML |
| Constructor Detail |
public ClearForestResultFieldFormatter()
| Method Detail |
public void formatResultField(java.lang.String sessionID,
IResult result)
IFieldFormatter
formatResultField in interface IFieldFormattersessionID - The session key needed to lookup any session content stored
in the session data cache.result - The result object that is to be formatted.public void formatResultField(IResult result)
IFieldFormatter
formatResultField in interface IFieldFormatterresult - The result object that is to be formatted.public java.lang.String getFieldName()
IFieldFormatter
getFieldName in interface IFieldFormatter
public java.lang.String formatField(java.lang.String sessionID,
java.lang.String fieldVal)
IFieldFormatter
formatField in interface IFieldFormattersessionID - The session key needed to lookup any session content stored
in the session data cache.fieldVal - The field value to be reformatted.
public java.lang.String formatField(java.lang.String fieldVal)
IFieldFormatter
formatField in interface IFieldFormatterfieldVal - The field value to be reformatted.
public void initialize(org.w3c.dom.Element elem)
IFieldFormatter
initialize in interface IFieldFormatterpublic void setClearForestTermExtractor(ClearForestTermExtractor cfTermExtractor)
public ClearForestTermExtractor getClearForestTermExtractor()
public void setTagWriter(ITagWriter tagWriter)
public ITagWriter getTagWriter()
public void setClearForestTagsField(java.lang.String cfTagsField)
public java.lang.String getClearForestTagsField()
public void setSourceField(java.lang.String sourceField)
public java.lang.String getSourceField()
public void getConfigurationXML(java.io.Writer writer)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getConfigurationXML()
getConfigurationXML in interface IFieldFormatter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||