Module cloud.piranha.naming.impl
Package cloud.piranha.naming.impl
Class DefaultBindingNamingEnumeration
java.lang.Object
cloud.piranha.naming.impl.DefaultBindingNamingEnumeration
- All Implemented Interfaces:
Enumeration<Binding>
,NamingEnumeration<Binding>
The default Binding NamingEnumeration.
- Author:
- Manfred Riem ([email protected])
-
Constructor Details
-
DefaultBindingNamingEnumeration
Constructor.- Parameters:
list
- the list of bindings.
-
-
Method Details
-
next
Get the next binding.- Specified by:
next
in interfaceNamingEnumeration<Binding>
- Returns:
- the next binding.
- Throws:
NamingException
- when a naming error occurs.
-
hasMore
Does the enumeration have more elements.- Specified by:
hasMore
in interfaceNamingEnumeration<Binding>
- Returns:
- true if it does, false otherwise.
- Throws:
NamingException
- when a naming error occurs.
-
close
Close the enumeration for use.- Specified by:
close
in interfaceNamingEnumeration<Binding>
- Throws:
NamingException
- when a naming error occurs.
-
hasMoreElements
public boolean hasMoreElements()Does the enumeration have more elements.- Specified by:
hasMoreElements
in interfaceEnumeration<Binding>
- Returns:
- true if it does, false otherwise.
-
nextElement
Get the next element.- Specified by:
nextElement
in interfaceEnumeration<Binding>
- Returns:
- the next element.
-