netscape.ldap.util
Class LDAPIntFilterSet

java.lang.Object
  extended by netscape.ldap.util.LDAPIntFilterSet

public class LDAPIntFilterSet
extends java.lang.Object

Represents an LDAPIntFilterSet object. This is an internal object that should never be instantiated directly by the developer.


Constructor Summary
LDAPIntFilterSet(java.lang.String strTag)
          Create an LDAPIntFilterSet with a given Tag string.
 
Method Summary
(package private)  void appendFilter(LDAPFilter filter)
          Append a new filter to the existing set.
(package private)  java.util.Vector getFilters(org.apache.oro.text.regex.Perl5Pattern patTag, org.apache.oro.text.regex.PatternMatcherInput matcherValue)
          Return a Vector of filters that match botht the tag pattern (in Perl5Pattern form), and the string strValue.
(package private)  boolean match(java.lang.String strTagPat)
          Return true if this filter set matches the regular expression string that is passed in.
(package private)  void newFilter(LDAPFilter filter)
          Add a new filter to this filter set.
 java.lang.String toString()
          Print out the String representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LDAPIntFilterSet

public LDAPIntFilterSet(java.lang.String strTag)
Create an LDAPIntFilterSet with a given Tag string. The tag string specifies which applications or query types should use this filter set. It is normally a single token on a line by itself in the filter configuration file.

For more information about the filter configuration file, see the man page for ldapfilter.conf.

Method Detail

getFilters

java.util.Vector getFilters(org.apache.oro.text.regex.Perl5Pattern patTag,
                            org.apache.oro.text.regex.PatternMatcherInput matcherValue)
Return a Vector of filters that match botht the tag pattern (in Perl5Pattern form), and the string strValue. This method should only be called by LDAPFilterDescriptor().


newFilter

void newFilter(LDAPFilter filter)
         throws BadFilterException
Add a new filter to this filter set.

Throws:
BadFilterException - If the regular expression pattern given in the first token is bad.

appendFilter

void appendFilter(LDAPFilter filter)
Append a new filter to the existing set. This happens when the LDAPFilterDescriptor object reads a line from the filter configuration file that has 2 or 3 tokens.


match

boolean match(java.lang.String strTagPat)
Return true if this filter set matches the regular expression string that is passed in.


toString

public java.lang.String toString()
Print out the String representation of this object. It calls the toString() method of all the LDAPFilter objects contained within it's set.

Overrides:
toString in class java.lang.Object
See Also:
LDAPFilter.toString()