Class query.LString
All Packages Class Hierarchy This Package Previous Next Index
Class query.LString
java.lang.Object
|
+----query.ExpNode
|
+----query.LString
- public class LString
- extends ExpNode
- implements STARTSnode, FilterNode, RankingNode
An ExpNode that represents a LString node in either a ranking or
filter expression. LString nodes have no children and two
properties:
- string value: the value of the LString
- language: the language in RFC1877 format
-
LString(Query, String)
- Build an LString with no specified language
-
LString(Query, String, String)
- Build an LString with a specfied language
-
Check()
- Check this LString node relative to the source.
-
ExtractTerms(Vector)
- noop for extracting terms from an expnode subtree.
-
GetLanguage()
- Return the language of this LString
-
GetString()
- Return the string value of this LString
-
TranslateToFilter()
- Translate this LString node in the context of a source
specific filter expression.
-
TranslateToRanking()
- Translate this LString node in the context of a source
specific ranking expressin.
-
Unparse()
- Return the string version of this LString
LString
public LString(Query query,
String theString)
- Build an LString with no specified language
- Parameters:
- query - the query context of this node
- theString - string value of the LString
LString
public LString(Query query,
String language,
String theString)
- Build an LString with a specfied language
- Parameters:
- query - query context of this node.
- language - language in RFC1877 format
- theString - string value of the LString
GetString
public String GetString()
- Return the string value of this LString
- Returns:
- the string value of this LString
GetLanguage
public String GetLanguage()
- Return the language of this LString
- Returns:
- the language in ISO format.
Unparse
public String Unparse()
- Return the string version of this LString
- Returns:
- the string equivalent of this LString sub-tree
- Overrides:
- Unparse in class ExpNode
Check
public ExpNode Check() throws UnsupportedQueryException
- Check this LString node relative to the source.
- Returns:
- The LString sub-tree modified by the Check
operation. If the string in the Lstring is a stop word,
return null
- Throws: UnsupportedQueryException
- if the sub-tree
contains semantically unsupported elements
TranslateToFilter
public ExpNode TranslateToFilter() throws SourceQueryException
- Translate this LString node in the context of a source
specific filter expression.
- Returns:
- the sub-tree that is the source translated filter
equivalent of this LString subtree.
TranslateToRanking
public ExpNode TranslateToRanking() throws SourceQueryException
- Translate this LString node in the context of a source
specific ranking expressin.
- Returns:
- the sub-tree that is the source translated ranking
equivalent of this LString subtree.
ExtractTerms
public void ExtractTerms(Vector termVector)
- noop for extracting terms from an expnode subtree. Must be
defined since the superclass defines it as abstract, but
nothing ever descends from Fields so do nothing.
All Packages Class Hierarchy This Package Previous Next Index