Class LDAPFilterList

java.lang.Object
netscape.ldap.util.LDAPFilterList
All Implemented Interfaces:
Enumeration<LDAPFilter>

public class LDAPFilterList extends Object implements Enumeration<LDAPFilter>
The list of LDAPFilter objects returned from a LDAPFilterDescriptor Object. Note that this is an enumeration, so if multiple iterations are needed, save the results.
Version:
1.0
See Also:
  • Field Details

    • m_vFilterList

      private Vector<LDAPFilter> m_vFilterList
    • DEFAULT_LIST_SIZE

      private static int DEFAULT_LIST_SIZE
  • Constructor Details

    • LDAPFilterList

      public LDAPFilterList()
      Constructs an LDAPFilterList object. This methos shouldn't need to be called by the developer directly. Construction of the LDAPFilterList object should take place when the Prepare function of LDAPFilterDescriptor is called.
  • Method Details

    • add

      void add(LDAPFilter filter)
      Add an LDAPFilter to the private vector. Since the filter we're being passed has already been cloned from the master LDAPFilterDescriptor set, all we have to do is add it to the list.
    • hasMoreElements

      public boolean hasMoreElements()
      Returns true if there are any LDAPFilter objects to returned.
      Specified by:
      hasMoreElements in interface Enumeration<LDAPFilter>
    • nextElement

      public LDAPFilter nextElement()
      Returns the next LDAPFilter as an Object. Note: the preferred way to return the next LDAPFilter is to call next()
      Specified by:
      nextElement in interface Enumeration<LDAPFilter>
      Returns:
      The next LDAPFilter object (as an instance of Object)
      See Also:
    • next

      public LDAPFilter next()
      Returns the next LDAPFilter
      Returns:
      The next LDAPFilter
    • numFilters

      public int numFilters()
      Return the number of filters in the filter list. Note that this number decreases every time next() or nextElement() is called because the elements are removed as they're returned.