public class DefaultIndexedObjectEntryEnumeration extends BaseDefaultVirtualEnumeration implements IndexedObjectEntryEnumeration
ObjectEntryEnumerationm_enumerationData, m_iEnumerationIndex, m_shellAPPROXIMATECOUNT, BASECOUNT, EXACTCOUNT, PARTIALCOUNT, UNKNOWNCOUNT| Constructor and Description |
|---|
DefaultIndexedObjectEntryEnumeration(ObjectEntryEnumeration oee,
Shell shell)
Constructs the
DefaultIndexedObjectEntryEnumeration object. |
| Modifier and Type | Method and Description |
|---|---|
void |
append(ObjectEntry oe)
Appends an
ObjectEntry object to this enumeration. |
ObjectEntry[] |
getNext(int count)
Returns the next specified number of entries in this enumeration.
|
ObjectEntry[] |
getPrev(int count)
Returns the previous specified number of entries in this enumeration.
|
boolean |
hasMoreElements()
Determines whether this enumeration has more elements based on the current list
cursor index.
|
void |
insert(ObjectEntry oe,
int index)
Inserts an
ObjectEntry object into this enumeration at the
specified index. |
int |
moveFirst()
Moves the enumeration cursor to the first entry in this enumeration.
|
int |
moveLast()
Moves the enumeration cursor to the last entry in this enumeration.
|
int |
moveTo(int index)
Moves the enumeration cursor index to the entry associated
with the index specified.
|
int |
moveTo(java.lang.String targetName)
Moves the enumeration cursor position to the entry that most closely
matches the specified target name.
|
ObjectEntry |
next()
Returns the next
ObjectEntry element in this enumeration. |
java.lang.Object |
nextElement()
Returns the next
Object element from this enumeration. |
ObjectEntry |
previous()
Returns the previous entry in this enumeration and moves the enumeration cursor
to the previous entry.
|
int |
remove(ObjectEntry oe)
Removes the specified
ObjectEntry from this enumeration. |
void |
replace(ObjectEntry oldEntry,
ObjectEntry newEntry)
Replaces an
ObjectEntry object in this enumeration with
another ObjectEntry object. |
findEntry, getCount, getCountReliability, getDisplayNameForObject, refresh, setBlockSizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCountrefresh, setBlockSizepublic DefaultIndexedObjectEntryEnumeration(ObjectEntryEnumeration oee, Shell shell)
DefaultIndexedObjectEntryEnumeration object.oee - The ObjectEntryEnumeration object used to populate this enumeration.shell - The instance of the Shell that will be used to get object names.public boolean hasMoreElements()
hasMoreElements in interface java.util.Enumerationtrue if there is at least one more element to be returned
from the nextElement() method, false otherwise.public java.lang.Object nextElement()
Object element from this enumeration.nextElement in interface java.util.EnumerationObject element from this enumeration. If no
next element exists, returns null.public ObjectEntry next()
ObjectEntry element in this enumeration.next in interface ObjectEntryEnumerationObjectEntry element in this enumeration.
If no next element exists, returns null.public ObjectEntry previous()
previous in interface BrowserObjectEntryEnumerationObjectEntry object previous to the entry at the
current enumeration cursor position. If no previous element exists,
returns null.public int moveFirst()
moveFirst in interface BrowserObjectEntryEnumerationpublic int moveLast()
moveLast in interface BrowserObjectEntryEnumerationpublic int moveTo(int index)
The parameter index and the returned enumeration cursor position is an absolute index into this enumeration.
moveTo in interface IndexedObjectEntryEnumerationindex - The index of the entry to move to.public int moveTo(java.lang.String targetName)
throws SnapinException
If an exact match is not found, then the enumeration cursor position is moved to the entry that most closely matches the target name.
moveTo in interface BrowserObjectEntryEnumerationtargetName - The name of the entry to which the enumeration cursor index will be moved.SnapinException - Thrown by the provider when an error occurs.public ObjectEntry[] getNext(int count)
getNext returns count entries beginning with the
entry at the current cursor position. If count is greater than the
number of remaining entries in this enumeration, getNext will return
only the existing next entries. The current enumeration cursor position is moved
toward the end of this enumeration by the number of entries returned.
getNext in interface IndexedObjectEntryEnumerationcount - The number of next entries to be returned.count ObjectEntry
objects in this enumeration.public ObjectEntry[] getPrev(int count)
getPrev returns the count entries previous to the
entry at the current cursor position. If count is greater than the
number of previous entries in this enumeration, getPrev will return
only the existing previous entries. The current enumeration cursor position moves
toward the beginning of this enumeration by the number of entries returned.
getPrev in interface IndexedObjectEntryEnumerationcount - The number of previous entries to be returned.count ObjectEntry
objects in this enumeration.public void insert(ObjectEntry oe, int index)
ObjectEntry object into this enumeration at the
specified index.oe - The ObjectEntry object to be inserted.index - The position in this enumeration where the entry will be inserted.public void append(ObjectEntry oe)
ObjectEntry object to this enumeration.oe - The ObjectEntry object to be appended.public int remove(ObjectEntry oe)
ObjectEntry from this enumeration.oe - The ObjectEntry object to be removed.public void replace(ObjectEntry oldEntry, ObjectEntry newEntry)
ObjectEntry object in this enumeration with
another ObjectEntry object.oldEntry - The ObjectEntry object to be replaced.newEntry - The ObjectEntry object to replace the old entry.ObjectEntry
API Documentation Copyright © 1998-2004 Novell, Inc. All rights reserved.
NDS is a registered trademark of Novell, Inc. in the United States and other countries.
Generated ${TODAY} ${TSTAMP}.