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.

Constructor Index

 o WAISWordLiteral(Query, boolean, String)
Create a new WAISWordLiteral

Method Index

 o GetLiteral()
Return the string that is the word literal.
 o RankBy(Document)
This is a slot to do some primitive ranking on this sub-tree.
 o Soundex_p()
Predicate determining wether this token should be matched using soundex.
 o Unparse()
Return the string representation of the subtree rooted at this word literal

Constructors

 o 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.

Methods

 o Soundex_p
  public boolean Soundex_p()
Predicate determining wether this token should be matched using soundex.
 o GetLiteral
  public String GetLiteral()
Return the string that is the word literal.
 o Unparse
  public String Unparse()
Return the string representation of the subtree rooted at this word literal
Overrides:
Unparse in class ExpNode
 o 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