public class BaseDefaultVirtualEnumeration extends java.lang.Object implements CountableObjectEntryEnumeration
ObjectEntryEnumeration classes are built.
Contains shared data and methods which all default implementations
of ObjectEntryEnumeration use.
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Vector |
m_enumerationData
Vector that holds the enumeration elements.
|
protected int |
m_iEnumerationIndex
Current index into the data.
|
protected Shell |
m_shell
Reference back to the shell.
|
APPROXIMATECOUNT, BASECOUNT, EXACTCOUNT, PARTIALCOUNT, UNKNOWNCOUNT| Constructor and Description |
|---|
BaseDefaultVirtualEnumeration(ObjectEntryEnumeration oee,
Shell shell)
Constructs a
BaseDefaultVirtualEnumeration object. |
| Modifier and Type | Method and Description |
|---|---|
protected int |
findEntry(java.lang.String strTarget) |
int |
getCount()
Returns the total enumeration entry count in the enumeration.
|
int |
getCountReliability()
Returns an integer which is a representation of the reliability of the count of
objects in this enumeration.
|
protected java.lang.String |
getDisplayNameForObject(ObjectEntry oe) |
void |
refresh()
Indicates that the enumeration needs to flush any cached data.
|
void |
setBlockSize(int size)
Sets the block size at which the consumer of the
enumeration will request entries from the enumeration.
|
protected java.util.Vector m_enumerationData
protected int m_iEnumerationIndex
protected Shell m_shell
public BaseDefaultVirtualEnumeration(ObjectEntryEnumeration oee, Shell shell)
BaseDefaultVirtualEnumeration object.oee - The ObjectEntryEnumeration object used to populate this enumeration.shell - The instance of the Shell that will be used to get object names.ObjectEntryEnumerationpublic void setBlockSize(int size)
IMPORTANT: Since this implementation of VirtualObjectEntryEnumeration
does not use a variable cache, this method is not implemented.
size - The block size.public void refresh()
IMPORTANT: Since this implementation of VirtualObjectEntryEnumeration
does not use a variable cache, this method is not implemented.
protected int findEntry(java.lang.String strTarget)
protected java.lang.String getDisplayNameForObject(ObjectEntry oe)
public int getCount()
getCount in interface CountableObjectEntryEnumerationpublic int getCountReliability()
getCountReliability in interface CountableObjectEntryEnumeration
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}.