|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ORG.oclc.fmts.rules.RuleUtil | +--ORG.oclc.fmts.rules.SaveTermFinderResults
The SaveTermFinderResults class is a record formatting rule that constructs a Map (under 1.1 a Hashtable) that contains values as specified in the value* statements in the rule and based on the input DataDir. The rule specifies what to pull out of the DataDir and the value* specifications tell how to store it in the Map/Hashtable.
The parameters this rule requires are:
Currently valid parameters to the value* specifications and what they do:
RuleSpec
,
FormatBerUtil
,
DisplayUserData
,
DisplayRule
Constructor Summary | |
SaveTermFinderResults()
|
Method Summary | |
void |
doRule(DataDir dir,
int recno,
RuleSpec ruleSpec,
FormatBerUtil fmtUtil,
DisplayUserData userData)
Adds a set of DataPairs to a Map/Hashtable within the user state object. |
protected String |
filterKey(String inkey)
Filters the key of punctuation and makes it lower case. |
protected int |
insertLocation(Vector data,
String inkey)
Determines location to insert the key data into the vector collecting data |
protected String |
makeUsedFor(RuleSpec ruleSpec,
Vector terms,
String before,
String after,
String between,
String trailer)
Returns a String that contains all the used for terms formated based on values set in the userData |
protected DataPairs |
makeValue(String key,
RuleSpec ruleSpec,
DisplayUserData userData,
String before,
String after,
String between,
String trailer)
This method constructs the DataPairs that will be added to the Map with a key |
Methods inherited from class ORG.oclc.fmts.rules.RuleUtil |
appendEntityData,
getData,
getData,
getWrapperData,
getWrapperData,
getWrapperDataFromRuleParm,
labelMaker,
saveDataInEntity |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public SaveTermFinderResults()
Method Detail |
public void doRule(DataDir dir, int recno, RuleSpec ruleSpec, FormatBerUtil fmtUtil, DisplayUserData userData)
dir
- the DataDir object containing the data recordrecordNumber
- the record number of the item within the list -
NOTE:
This parm is ignored by this rule.ruleSpec
- the field specification for locating the datafmtUtil
- the FormatBerUtil object containing the current formatted
data buffer and the formatting utilities.userData
- the DisplayUserData object containing the user's
context for formatting the data records.protected String filterKey(String inkey)
protected int insertLocation(Vector data, String inkey)
protected DataPairs makeValue(String key, RuleSpec ruleSpec, DisplayUserData userData, String before, String after, String between, String trailer)
key
- the term that was pulled out of the recordruleSpec
- the field specification for locating the datauserData
- the DisplayUserData object containing the user's
data buffer and the formatting utilities.protected String makeUsedFor(RuleSpec ruleSpec, Vector terms, String before, String after, String between, String trailer)
ruleSpec
- the field specification for locating the dataterms
- the Vector containing the terms within the used for fielduserData
- the DisplayUserData object containing the user's
|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |