|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.searchApp.formatters.MultiValueDeduper
De duplicates values in a multiple value
IResult field. Can include an
IStringFilter to normalize input
values prior to de-duping.
<Formatter
formatterClass="com.raritantechnologies.searchApp.formatters.MultiValueDeduper"
inputFieldID="input field Name"
outputFieldID="output field name"\
fieldDelimiter="delimiter (if isDelimitedValue is true) [default is comma]"\
isDelimitedValue="true|false(default)">
<!-- determines if field is mulivalue or single, delimited value -->
<!-- Optional String Filter that is applied to input value tokens. -->
<StringFilter class="some com.raritantechnologies.utils.filter.IStringFilter class" >
<!-- configuration parameters for string filter -->
</StringFilter>
</Formatter>
| Field Summary |
| Fields inherited from interface com.raritantechnologies.searchApp.IFieldFormatter |
TEMPLATE |
| Constructor Summary | |
MultiValueDeduper()
|
|
| 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 res)
Tokenizes the results input fields, optionally filters each value and adds the tokens to the output field as multiple values. |
void |
formatResultField(java.lang.String sessionID,
IResult res)
Formats a result field "in place", incorporating session context. |
java.lang.String |
getConfigurationXML()
|
java.lang.String |
getConfigurationXML(java.lang.String configurationTemplate)
|
java.lang.String |
getFieldName()
Returns the name of the result field that this formatter can reformat. |
java.lang.String |
getInputFieldID()
|
IStringFilter |
getStringFilter()
|
java.lang.String |
gsetOutputFieldID()
|
void |
initialize(org.w3c.dom.Element elem)
Initializes the formatter from configuration XML element. |
void |
setInputFieldID(java.lang.String inputFieldID)
|
void |
setOutputFieldID(java.lang.String outputFieldID)
|
void |
setStringFilter(IStringFilter stringFilter)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MultiValueDeduper()
| Method Detail |
public void formatResultField(IResult res)
formatResultField in interface IFieldFormatterres - The result object that is to be formatted.
public void formatResultField(java.lang.String sessionID,
IResult res)
IFieldFormatter
formatResultField in interface IFieldFormattersessionID - The session key needed to lookup any session content stored
in the session data cache.res - The result object that is to be formatted.public java.lang.String getFieldName()
getFieldName in interface IFieldFormatterpublic java.lang.String formatField(java.lang.String fieldVal)
formatField in interface IFieldFormatterfieldVal - The field value to be reformatted.
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 void initialize(org.w3c.dom.Element elem)
initialize in interface IFieldFormatterpublic void setOutputFieldID(java.lang.String outputFieldID)
public java.lang.String gsetOutputFieldID()
public void setInputFieldID(java.lang.String inputFieldID)
public java.lang.String getInputFieldID()
public void setStringFilter(IStringFilter stringFilter)
public IStringFilter getStringFilter()
public java.lang.String getConfigurationXML()
getConfigurationXML in interface IFieldFormatterpublic java.lang.String getConfigurationXML(java.lang.String configurationTemplate)
getConfigurationXML in interface IFieldFormatter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||