public class LdapFilterParser extends BaseMatchRuleParser
Constructor and Description |
---|
LdapFilterParser()
Initialize the new instance with default values.
|
Modifier and Type | Method and Description |
---|---|
protected char |
checkNextClosingParenthesis() |
protected char |
checkNextOpeningParenthesis() |
protected MatchRule |
createMatchRuleOn(MatchGroup group) |
protected boolean |
isLiteral(char ch) |
protected boolean |
isNotOperator(char ch) |
protected boolean |
isOperator(char ch) |
protected boolean |
isValidAttributeNameCharacter(char ch) |
protected void |
parenthesisExpected(java.lang.String prefix) |
protected MatchGroup |
parse() |
MatchRule |
parse(java.lang.String filter)
Parse the given LDAP filter string to a MatchRule object that can
be used to check attributes in a Map, if they match the rule (filter).
|
protected MatchAttribute |
parseAttribute() |
protected MatchElement |
parseElement() |
static MatchRule |
parseFilter(java.lang.String filter)
Parse the given LDAP filter string to a MatchRule object that can
be used to check attributes in a Map, if they match the rule (filter).
|
protected MatchGroup |
parseGroup(char operator) |
protected MatchElement |
parseNotElement() |
protected MatchGroup |
parseToGroup(java.lang.String filter)
Parse the given LDAP filter string to a MatchGroup which can be used to
create a MatchRule.
|
atEnd, checkExpectedEnd, checkUnexpectedEnd, scanner, scanner, str, throwException
public LdapFilterParser()
public static MatchRule parseFilter(java.lang.String filter) throws MatchRuleParseException
filter
- The LDAP search filterMatchRuleParseException
- Each syntax error in the given filter causes
this exception with a short description
of what is wrongpublic MatchRule parse(java.lang.String filter) throws MatchRuleParseException
filter
- The LDAP search filterMatchRuleParseException
- Each syntax error in the given filter causes
this exception with a short description
of what is wrongprotected MatchGroup parseToGroup(java.lang.String filter) throws MatchRuleParseException
filter
- The LDAP search filterMatchRuleParseException
- Each syntax error in the given filter causes
this exception with a short description
of what is wrongprotected MatchGroup parse() throws MatchRuleParseException
MatchRuleParseException
protected MatchElement parseElement() throws MatchRuleParseException
MatchRuleParseException
protected MatchElement parseNotElement() throws MatchRuleParseException
MatchRuleParseException
protected MatchGroup parseGroup(char operator) throws MatchRuleParseException
MatchRuleParseException
protected MatchAttribute parseAttribute() throws MatchRuleParseException
MatchRuleParseException
protected boolean isNotOperator(char ch)
protected boolean isOperator(char ch)
protected boolean isLiteral(char ch)
protected boolean isValidAttributeNameCharacter(char ch)
protected void parenthesisExpected(java.lang.String prefix) throws MatchRuleParseException
MatchRuleParseException
protected char checkNextOpeningParenthesis() throws MatchRuleParseException
MatchRuleParseException
protected char checkNextClosingParenthesis() throws MatchRuleParseException
MatchRuleParseException
protected MatchRule createMatchRuleOn(MatchGroup group)