|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.novell.application.console.snapin.DefaultObjectEntryEnumeration
Converts an array, vector or enumeration of ObjectEntrys to an ObjectEntryEnumeration that can be returned from the getChildren() and getChildContainer() methods of the NamespaceSnapin interface.
This class is a convenience helper class in creating ObjectEntryEnumerations.
ObjectEntryEnumeration| Field Summary |
| Fields inherited from interface com.novell.application.console.snapin.CountableObjectEntryEnumeration |
APPROXIMATECOUNT, BASECOUNT, EXACTCOUNT, PARTIALCOUNT, UNKNOWNCOUNT |
| Constructor Summary | |
DefaultObjectEntryEnumeration()
Creates an empty DefaultObjectEntryEnumeration. |
|
DefaultObjectEntryEnumeration(java.util.Enumeration list)
Create a DefaultObjectEntryEnumeration from an Enumeration of ObjectEntrys. |
|
DefaultObjectEntryEnumeration(ObjectEntry entry)
This is a convenience constructor for creating an ObjectEntryEnumeration with a single entry. |
|
DefaultObjectEntryEnumeration(ObjectEntry[] list)
Creates a DefaultObjectEntryEnumeration from an array of ObjectEntrys. |
|
DefaultObjectEntryEnumeration(java.util.Vector list)
Creates a DefaultObjectEntryEnumeration from a Vector of ObjectEntrys. |
|
| Method Summary | |
int |
getCount()
Return the number of ObjectEntries in the Enumeration. |
int |
getCountReliability()
Returns an integer which is a representation of the reliability of the count of objects in this enumeration. |
boolean |
hasMoreElements()
Returns a boolean determining if there are more children in the enumeration. |
ObjectEntry |
next()
Return the next child as an ObjectEntry. |
java.lang.Object |
nextElement()
Return the next child as an Object (must still be an ObjectEntry). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultObjectEntryEnumeration()
public DefaultObjectEntryEnumeration(java.util.Enumeration list)
list - ObjectEntry enumeration from which to create a simple
enumeration.public DefaultObjectEntryEnumeration(ObjectEntry entry)
entry - ObjectEntry from which to create a simple
enumeration.public DefaultObjectEntryEnumeration(ObjectEntry[] list)
list - ObjectEntry array from which to create a simple
enumeration.public DefaultObjectEntryEnumeration(java.util.Vector list)
list - ObjectEntry vector from which to create a simple
enumeration.| Method Detail |
public int getCount()
getCount in interface CountableObjectEntryEnumerationpublic int getCountReliability()
getCountReliability in interface CountableObjectEntryEnumerationpublic boolean hasMoreElements()
hasMoreElements in interface java.util.Enumeration
public ObjectEntry next()
throws java.util.NoSuchElementException
next in interface ObjectEntryEnumerationjava.util.NoSuchElementException - Throws when there is no
'next' element.public java.lang.Object nextElement()
nextElement in interface java.util.Enumeration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||