|
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.z39.TermInfo
TermInfo is returned by a Z39-50 Scan request.
Field Summary | |
Attribute[] |
a
The use/structure attributes in the Z3950 response. |
String |
alternativeTerm
The alternative term for the term. |
byAttributes[] |
b
The per-database breakdown for the term. |
String |
displayTerm
The display term for the term. |
int |
globalOccurrences
The total number of occurrences for the term. |
Object |
otherInformationData
Object containing the parsed OtherInformation data associated with the term. |
String |
Term
The term. |
int |
termType
The term type returned in the Z3950 response. |
Constructor Summary | |
TermInfo()
Construct an object. |
|
TermInfo(DataDir termInfo)
Construct an object from the Z3950 response. |
|
TermInfo(String term,
String displayTerm)
Construct an object. |
Method Summary | |
void |
addByAttribute(Attribute[] a,
String dbName,
int postings)
Add these attributes to this term. |
void |
addByAttribute(TermInfo otherTerm,
String dbName,
Attribute[] defaultAttrs)
Merge the byAttribute of otherTerm with the byAttribute of this term. |
String |
alternativeTerm()
Accessor method to the alternativeTerm. |
static DataDir |
buildDir(String term,
String displayTerm,
Attribute[] a,
int globalOccurrences,
byAttributes[] b)
|
static DataDir |
buildDir(String term,
String displayTerm,
Attribute[] a,
int globalOccurrences,
byAttributes[] b,
String alternativeTerm,
int use,
int structure,
DataDir otherInfoDir)
Build a DataDir TermInfo from the parameters. |
static DataDir |
buildDir(TermInfo t)
Build a DataDir TermInfo from the TermInfo object. |
int |
compareTo(String anotherTerm)
Compare the input term to the scan Term. |
int |
compareTo(TermInfo anotherTerm)
Compare this TermInfo object to another TermInfo object. |
int |
compareToI(String anotherTerm)
|
int |
compareToI(TermInfo anotherTerm)
|
String |
displayTerm()
Accessor method to the displayTerm. |
int |
getFirstDBOffset()
Get the index to the byAttributes array for the first database that has postings for the scan Term. |
int |
getFirstUse()
Find the offset into the byAttributes array for the first entry with the use attribute of BIB1. |
int |
getNumGTZero()
|
String |
getRawText()
Get the original scan Term. |
String |
getText()
|
void |
mergeDbOccurrences(String newName)
Combine the by database information into a single count with the specified database name. |
void |
setByAttribute(String dbName,
Attribute[] defaultAttrs)
If byAttribute does not exist, create one. |
String |
Term()
Accessor method to the Term. |
int |
termCount()
Get the total number of postings for the scan Term. |
int |
termType()
|
String |
toString()
Generate a String representation of the object. |
void |
trim(int n)
Clean up Term to be a displayTerm. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public String Term
public String displayTerm
public String alternativeTerm
public int termType
public Attribute[] a
public int globalOccurrences
public byAttributes[] b
public Object otherInformationData
Constructor Detail |
public TermInfo()
public TermInfo(String term, String displayTerm)
term
- the scanned termdisplayterm
- the term to displaypublic TermInfo(DataDir termInfo) throws Diagnostic1
termInfo
- the datadir containing the scan responseMethod Detail |
public int getNumGTZero()
public int getFirstDBOffset()
public final String getText()
public final String getRawText()
public final int termCount()
public final String displayTerm()
public final String alternativeTerm()
public final int termType()
public final String Term()
public void trim(int n)
public int getFirstUse()
public void mergeDbOccurrences(String newName)
newName
- the new database namepublic int compareTo(String anotherTerm)
anotherTerm
- compare this term to anotherTermpublic int compareToI(String anotherTerm)
public int compareTo(TermInfo anotherTerm)
anotherTerm
- compare this term to anotherTermpublic int compareToI(TermInfo anotherTerm)
public void setByAttribute(String dbName, Attribute[] defaultAttrs)
dbName
- database name for byAttributedefaultAttrs
- list of default attributespublic void addByAttribute(TermInfo otherTerm, String dbName, Attribute[] defaultAttrs)
otherTerm
- term containing attributes to merge with this termdbName
- database name for these attributesdefaultAttrs
- default attributes for this termpublic void addByAttribute(Attribute[] a, String dbName, int postings)
a
- attributes to adddbName
- database name for attributespostings
- record count for attributespublic static DataDir buildDir(String term, String displayTerm, Attribute[] a, int globalOccurrences, byAttributes[] b)
public static DataDir buildDir(String term, String displayTerm, Attribute[] a, int globalOccurrences, byAttributes[] b, String alternativeTerm, int use, int structure, DataDir otherInfoDir)
term
- the scan termdisplayTerm
- the display terma
- the attributes for the termglobalOccurrences
- the the number of occurrencesb
- the breakdown by database of scan resultspublic static DataDir buildDir(TermInfo t)
t
- the TermInfo objectpublic String toString()
|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |