com.infoengine.email
Class WhereParser

java.lang.Object
  extended bycom.infoengine.email.WhereParser

public class WhereParser
extends Object


Field Summary
private static String RESOURCE
           
private  int whereCursor
           
private  Vector whereTokens
           
private static String whitespace
           
 
Constructor Summary
WhereParser()
          Constructor.
 
Method Summary
private  String getNextToken(StringTokenizer tokens, Stack tokenStack)
           
private  Filter parse(String type)
          Translate a tokenized Info*Engine WHERE clause to an e-mail search filter.
 Filter parse(String type, String whereClause)
          Translate a SQL-like WHERE clause to an e-mail search filter.
private  Filter parseTerm(String type)
          Translate a term of an Info*Engine WHERE clause to an e-mail search term.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

whitespace

private static final String whitespace
See Also:
Constant Field Values

whereCursor

private int whereCursor

whereTokens

private Vector whereTokens
Constructor Detail

WhereParser

public WhereParser()
Constructor.

Method Detail

parse

public Filter parse(String type,
                    String whereClause)
             throws IEException
Translate a SQL-like WHERE clause to an e-mail search filter.

Parameters:
type - The e-mail object type against which to apply the filter
whereClause - The WHERE clause to be translated
Returns:
The e-mail search filter
Throws:
IEException

getNextToken

private String getNextToken(StringTokenizer tokens,
                            Stack tokenStack)

parse

private Filter parse(String type)
              throws IEException
Translate a tokenized Info*Engine WHERE clause to an e-mail search filter.

Parameters:
type - The e-mail object type against which to apply the filter
Returns:
The search filter, or null if expression can not be parsed.
Throws:
IEException

parseTerm

private Filter parseTerm(String type)
                  throws IEException
Translate a term of an Info*Engine WHERE clause to an e-mail search term.

Parameters:
type - The e-mail object type against which to apply the filter
Returns:
e-mail search term, or null if term can not be translated.
Throws:
IEException