com.infoengine.email
Class WhereParser
java.lang.Object
com.infoengine.email.WhereParser
- public class WhereParser
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
WhereParser
public WhereParser()
- Constructor.
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 filterwhereClause
- 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