com.novell.application.console.snapin
Class DefaultChildContainersObjectEntryEnumeration

java.lang.Object
  |
  +--com.novell.application.console.snapin.DefaultChildContainersObjectEntryEnumeration
All Implemented Interfaces:
java.util.Enumeration, ObjectEntryEnumeration

public class DefaultChildContainersObjectEntryEnumeration
extends java.lang.Object
implements ObjectEntryEnumeration

Converts an ObjectEntry array, vector, or enumeration to an ObjectEntry Enumeration that can be returned from the getChildContainers() methods of the NamespaceSnapin interfaces. This enumeration filters out any ObjectEntry that is not a container so that only containers will appear in the tree.

See Also:
ObjectEntryEnumeration

Field Summary
protected  java.util.Enumeration enum
           
protected  java.lang.Object lookAheadObject
           
 
Constructor Summary
DefaultChildContainersObjectEntryEnumeration(java.util.Enumeration list)
          Creates a DefaultChildContainersObjectEntryEnumeration from an ObjectEntry enumeration.
DefaultChildContainersObjectEntryEnumeration(ObjectEntry[] list)
          Creates a DefaultChildContainersObjectEntryEnumeration from an ObjectEntry array.
DefaultChildContainersObjectEntryEnumeration(java.util.Vector list)
          Creates a DefaultChildContainersObjectEntryEnumeration from an ObjectEntry vector.
 
Method Summary
 boolean hasMoreElements()
          Tests if this enumeration contains more elements.
 ObjectEntry next()
          Returns the next ObjectEntry of the enumeration.
 java.lang.Object nextElement()
          Returns the next element of this enumeration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

enum

protected java.util.Enumeration enum

lookAheadObject

protected java.lang.Object lookAheadObject
Constructor Detail

DefaultChildContainersObjectEntryEnumeration

public DefaultChildContainersObjectEntryEnumeration(ObjectEntry[] list)
Creates a DefaultChildContainersObjectEntryEnumeration from an ObjectEntry array.
Parameters:
list - ObjectEntry array from which to crerate the enumeration.

DefaultChildContainersObjectEntryEnumeration

public DefaultChildContainersObjectEntryEnumeration(java.util.Vector list)
Creates a DefaultChildContainersObjectEntryEnumeration from an ObjectEntry vector.
Parameters:
list - ObjectEntry vector from which to create the enumeration.

DefaultChildContainersObjectEntryEnumeration

public DefaultChildContainersObjectEntryEnumeration(java.util.Enumeration list)
Creates a DefaultChildContainersObjectEntryEnumeration from an ObjectEntry enumeration.
Parameters:
list - ObjectEntry enumeration from which to create the enumeration.
Method Detail

hasMoreElements

public boolean hasMoreElements()
Tests if this enumeration contains more elements.
Returns:
true if this enumeration contains more elements, false otherwise.

nextElement

public java.lang.Object nextElement()
                             throws java.util.NoSuchElementException
Returns the next element of this enumeration.
Returns:
The next element of this enumeration.
Throws:
java.util.NoSuchElementException - if no more elements exist.

next

public ObjectEntry next()
Returns the next ObjectEntry of the enumeration.
Specified by:
next in interface ObjectEntryEnumeration
Returns:
The next ObjectEntry of the enumeration.


API Documentation Copyright © 1998-2003 Novell, Inc. All rights reserved.
ConsoleOne is a registered trademark of Novell Inc.
Generated December 9 2003 1727.