netscape.ldap.util

Class LDAPFilterList

Implemented Interfaces:
Enumeration

public class LDAPFilterList
extends java.lang.Object
implements Enumeration

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.

See Also:
LDAPFilterDescriptor, LDAPFilter

Constructor Summary

LDAPFilterList()
Constructs an LDAPFilterList object.

Method Summary

boolean
hasMoreElements()
Returns true if there are any LDAPFilter objects to returned.
LDAPFilter
next()
Returns the next LDAPFilter
Object
nextElement()
Returns the next LDAPFilter as an Object.
int
numFilters()
Return the number of filters in the filter list.

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

hasMoreElements

public boolean hasMoreElements()
Returns true if there are any LDAPFilter objects to returned.


next

public LDAPFilter next()
Returns the next LDAPFilter

Returns:
The next LDAPFilter


nextElement

public Object nextElement()
Returns the next LDAPFilter as an Object. Note: the preferred way to return the next LDAPFilter is to call next()

Returns:
The next LDAPFilter object (as an instance of Object)

See Also:
next()


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.