Class wais.WAISWordLiteral
All Packages Class Hierarchy This Package Previous Next Index
Class wais.WAISWordLiteral
java.lang.Object
|
+----query.ExpNode
|
+----wais.WAISWordLiteral
- public class WAISWordLiteral
- extends ExpNode
- implements SourceNode
An ExpNode that represents a word literal in a WAIS query
expression. Each WAISWordLiteral has no children and two
properties
soundex - a boolean indicating whether this token
should be matched using soundex.
literal - the String token.
-
WAISWordLiteral(Query, boolean, String)
- Create a new WAISWordLiteral
-
GetLiteral()
- Return the string that is the word literal.
-
RankBy(Document)
- This is a slot to do some primitive ranking on this sub-tree.
-
Soundex_p()
- Predicate determining wether this token should be matched
using soundex.
-
Unparse()
- Return the string representation of the subtree
rooted at this word literal
WAISWordLiteral
public WAISWordLiteral(Query query,
boolean soundex,
String literal)
- Create a new WAISWordLiteral
- Parameters:
- query - The query context of the word literal
- soundex - A boolean indicating whether this token
should be matched using soundex.
- literal - the String token.
Soundex_p
public boolean Soundex_p()
- Predicate determining wether this token should be matched
using soundex.
GetLiteral
public String GetLiteral()
- Return the string that is the word literal.
Unparse
public String Unparse()
- Return the string representation of the subtree
rooted at this word literal
- Overrides:
- Unparse in class ExpNode
RankBy
public float RankBy(Document doc)
- This is a slot to do some primitive ranking on this sub-tree.
Unimplemented now except for the recursion
- Parameters:
- doc - The document to rank using this sub-tree
All Packages Class Hierarchy This Package Previous Next Index