org.pf.text
Class LdapFilterParser

java.lang.Object
  extended by org.pf.text.BaseMatchRuleParser
      extended by org.pf.text.LdapFilterParser

public class LdapFilterParser
extends BaseMatchRuleParser

An instance of this class can be used to parse an LDAP filter string to a MatchRule.

Version:
1.2.1
Author:
Manfred Duchrow

Constructor Summary
LdapFilterParser()
          Initialize the new instance with default values.
 
Method Summary
 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).
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).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LdapFilterParser

public LdapFilterParser()
Initialize the new instance with default values.

Method Detail

parseFilter

public static MatchRule parseFilter(java.lang.String filter)
                             throws MatchRuleParseException
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).

Parameters:
filter - The LDAP search filter
Throws:
MatchRuleParseException - Each syntax error in the given filter causes this exception with a short description of what is wrong

parse

public MatchRule parse(java.lang.String filter)
                throws MatchRuleParseException
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).

Parameters:
filter - The LDAP search filter
Throws:
MatchRuleParseException - Each syntax error in the given filter causes this exception with a short description of what is wrong