Package com.netscape.cmscore.ldap
Class LdapPredicateParser
java.lang.Object
com.netscape.cmscore.ldap.LdapPredicateParser
Default implementation of predicate parser.
Limitations:
1. Currently parentheses are not suported.
2. Only , , , , and operators are supported.
3. The only boolean operators supported are AND and OR. AND takes precedence
over OR. Example: a AND b OR e OR c AND d
is treated as (a AND b) OR e OR (c AND d)
4. If this is n't adequate, roll your own.
- Version:
- $Revision$, $Date$
- Author:
- mzhao
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
static ILdapExpression
Parse the predicate expression and return a vector of expressions.
-
Field Details
-
logger
public static org.slf4j.Logger logger -
OP_AND
public static final int OP_AND- See Also:
-
OP_OR
public static final int OP_OR- See Also:
-
EXPRESSION
public static final int EXPRESSION- See Also:
-
AND
- See Also:
-
OR
- See Also:
-
-
Constructor Details
-
LdapPredicateParser
public LdapPredicateParser()
-
-
Method Details
-
parse
Parse the predicate expression and return a vector of expressions.- Parameters:
predicateExpression
- The predicate expression as read from the config file.- Returns:
- expVector The vector of expressions.
- Throws:
ELdapException
-
main
-