|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pfsw.text.BaseMatchRuleParser
org.pfsw.text.LdapFilterParser
public class LdapFilterParser
An instance of this class can be used to parse an LDAP filter string to a MatchRule.
| Constructor Summary | |
|---|---|
LdapFilterParser()
Initialize the new instance with default values. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.pfsw.text.BaseMatchRuleParser |
|---|
atEnd, checkExpectedEnd, checkUnexpectedEnd, scanner, scanner, str, throwException |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LdapFilterParser()
| Method Detail |
|---|
public static MatchRule parseFilter(java.lang.String filter)
throws MatchRuleParseException
filter - The LDAP search filter
MatchRuleParseException - Each syntax error in the given filter causes
this exception with a short description
of what is wrong
public MatchRule parse(java.lang.String filter)
throws MatchRuleParseException
filter - The LDAP search filter
MatchRuleParseException - Each syntax error in the given filter causes
this exception with a short description
of what is wrong
protected MatchGroup parseToGroup(java.lang.String filter)
throws MatchRuleParseException
filter - The LDAP search filter
MatchRuleParseException - Each syntax error in the given filter causes
this exception with a short description
of what is wrong
protected 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
MatchRuleParseExceptionprotected 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
MatchRuleParseExceptionprotected MatchRule createMatchRuleOn(MatchGroup group)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||