|
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.RulesBasedDisplayGenerator
The RulesBasedDisplayGenerator class holds the instructions for and defines the methods to generate a customized formatted database record. The inputs for the customized format are read from configuration IniFile objects for a database.
DisplayRule
,
RuleSpec
,
FieldData
,
DisplayUserData
Field Summary | |
RuleSpec[] |
ruleSpecs
FieldData array object containing the fields and instructions for formatting the fields. |
String |
typeOfFormat
String data type containing the textual label for the unit. |
Constructor Summary | |
RulesBasedDisplayGenerator()
Constructs a RulesBasedDisplayGenerator object. |
Method Summary | |
Object |
clone()
Clones the data in this RulesBasedDisplayGenerator object. |
RuleSpec |
deleteInstruction(String instructionName)
Locates a RuleSpec object matching the input instruction name and deletes it from the list of instructions in the object. |
String |
generate(Vector data,
int startRecno,
DisplayUserData userData)
Generates the formatted data for the input data according to the instructions defined for the object. |
RuleSpec |
getInstruction(String instructionName)
Locates a RuleSpec object matching the input instruction name. |
void |
init(IniFile ini,
String typeOfFormat)
|
String |
toString()
Generates a String representation of the object. |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public String typeOfFormat
public RuleSpec[] ruleSpecs
Constructor Detail |
public RulesBasedDisplayGenerator()
Method Detail |
public void init(IniFile ini, String typeOfFormat)
public String generate(Vector data, int startRecno, DisplayUserData userData)
data
- the vector of DataDir objectsstartRecno
- the starting record number for the datauserData
- the DisplayUserData object with the user's context
for the instructions.public RuleSpec getInstruction(String instructionName)
instructionName
- the instruction.public RuleSpec deleteInstruction(String instructionName)
instructionName
- the instruction.public Object clone()
public String toString()
|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |