Package netscape.ldap.util
Class LDAPFilterList
java.lang.Object
netscape.ldap.util.LDAPFilterList
- All Implemented Interfaces:
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
add
(LDAPFilter filter) Add an LDAPFilter to the private vector.boolean
Returns true if there are any LDAPFilter objects to returned.next()
Returns the next LDAPFilterReturns the next LDAPFilter as an Object.int
Return the number of filters in the filter list.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Enumeration
asIterator
-
Field Details
-
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
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 interfaceEnumeration<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 interfaceEnumeration<LDAPFilter>
- Returns:
- The next LDAPFilter object (as an instance of Object)
- See Also:
-
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.
-