Class query.RankingList
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class query.RankingList

java.lang.Object
   |
   +----query.ExpNode
           |
           +----query.RankingList

public class RankingList
extends ExpNode
implements STARTSnode, RankingNode
An Expnode that represents a Ranking List node in a STARTS ranking expression. RankingList nodes have a variable number of children and no properties.

Constructor Index

 o RankingList(Query)
Contruct a new ranking list node.

Method Index

 o Check()
Return a new sub-tree that is the result of checking (for both semantic sanity and source support) the sub-tree that descends from this RankingList node.
 o ExtractTerms(Vector)
Recurse from this sub-tree to extract the terms in the sub-tree
 o TranslateToRanking()
Return the sub-tree that represents the source-specific translation of this ranking list sub-tree
 o Unparse()
Return the string representation of the sub-tree descending from this ranking list node

Constructors

 o RankingList
  public RankingList(Query query)
Contruct a new ranking list node.

Methods

 o Unparse
  public String Unparse()
Return the string representation of the sub-tree descending from this ranking list node
Returns:
the String equivalent of this RankingList sub-tree
Overrides:
Unparse in class ExpNode
 o Check
  public ExpNode Check() throws UnsupportedQueryException
Return a new sub-tree that is the result of checking (for both semantic sanity and source support) the sub-tree that descends from this RankingList node.
Returns:
the subtree tht is the result of the check operation.
Throws: UnsupportedQueryException
if the RankingList subtree contains semantic errors
 o TranslateToRanking
  public ExpNode TranslateToRanking() throws SourceQueryException
Return the sub-tree that represents the source-specific translation of this ranking list sub-tree
Returns:
a sub-tree that is the source translated ranking equivalent of this RankingList sub-tree
 o ExtractTerms
  public void ExtractTerms(Vector rankingTerms)
Recurse from this sub-tree to extract the terms in the sub-tree
Parameters:
rankingTerms - The vector of terms.

All Packages  Class Hierarchy  This Package  Previous  Next  Index