com.novell.application.console.snapin
Class ResultModifiedEnumeration

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

public class ResultModifiedEnumeration
extends java.lang.Object
implements ObjectEntryEnumeration

Converts an ObjectEntry array, vector or enumeration to an ObjectEntry Enumeration that can be returned from the getChildren() methods of the NamespaceSnapin or ExtendChildrenSnapin interfaces.

This class is a convenience helper class in creating ObjectEntry Enumerations early.

See Also:
ObjectEntryEnumeration

Constructor Summary
ResultModifiedEnumeration(ObjectEntryEnumeration oeEnum, ResultModifier modifier)
          Creates a ResultModifiedEnumeration from an ObjectEntryEnumeration.
 
Method Summary
 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

ResultModifiedEnumeration

public ResultModifiedEnumeration(ObjectEntryEnumeration oeEnum,
                                 ResultModifier modifier)
Creates a ResultModifiedEnumeration from an ObjectEntryEnumeration.
Parameters:
oeEnum - ObjectEntryEnumeration oeEnum from which to create a simple enumeration.
modifier - The filter for the resultant ObjectEntryEnumeration.
Method Detail

hasMoreElements

public boolean hasMoreElements()
Returns a boolean determining if there are more children in the enumeration.
Returns:
A boolean set to true if there are more children in the enumeration, otherwise set to false.

nextElement

public java.lang.Object nextElement()
Return the next child as an Object (must still be an ObjectEntry).
Returns:
The next child Object.

next

public ObjectEntry next()
                 throws java.util.NoSuchElementException
Return the next child as an ObjectEntry.
Specified by:
next in interface ObjectEntryEnumeration
Returns:
The next child ObjectEntry.
Throws:
java.util.NoSuchElementException - Throws when there is no 'next' element.


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