|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A vocabulary of terms. The Python query translator creates a vocabulary for a hierarchical bucket by dynamically loading the vocabulary class and calling the following class method:
public static Vocabulary createVocabulary (
ExtendedProperties propertyList, String prefix)
Vocabulary startup parameters can be obtained from
propertyList. If prefix is P, it
is recommended that the names of vocabulary-specific startup
parameters be prefixed with "P.".
Implementing classes need not be multithread-safe.
$Log: Vocabulary.java,v $
Revision 1.2 2004/09/23 17:10:21 gjanee
Minor documentation change.
Revision 1.1 2000/10/15 02:36:01 gjanee
Initial revision
| Method Summary | |
void |
destroy()
Frees any resources held by the vocabulary. |
java.lang.String |
getBucket()
Returns the bucket the vocabulary is used for. |
java.lang.String |
getName()
Returns the vocabulary's name. |
boolean |
isValidTerm(java.lang.String term)
Tests if a term is a valid term in the vocabulary. |
java.lang.Object |
translateTerm(java.lang.String term)
Translates a term into a form suitable for query translation. |
| Method Detail |
public java.lang.String getName()
ADL Feature Type
Thesaurus".public java.lang.String getBucket()
types".
public boolean isValidTerm(java.lang.String term)
throws InternalErrorException
term - The term.
true if the term is valid.
InternalErrorException - If an error occurs.
public java.lang.Object translateTerm(java.lang.String term)
throws InternalErrorException
term - The term.
null if the term
is invalid.
InternalErrorException - If an error occurs.public void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||