|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openejb.util.ArrayEnumeration
An Externalizable Enumeration. Mainly used for returning enumerations from the finder methods in the home interface of entity beans.
Constructor Summary | |
ArrayEnumeration()
|
|
ArrayEnumeration(List list)
|
|
ArrayEnumeration(Vector elements)
|
Method Summary | |
Object |
get(int index)
|
boolean |
hasMoreElements()
Tests if this enumeration contains more elements. |
Object |
nextElement()
Returns the next element of this enumeration if this enumeration object has at least one more element to provide. |
void |
readExternal(ObjectInput in)
The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. |
void |
set(int index,
Object o)
|
int |
size()
|
void |
writeExternal(ObjectOutput out)
The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ArrayEnumeration(Vector elements)
public ArrayEnumeration(List list)
public ArrayEnumeration()
Method Detail |
public Object get(int index)
public void set(int index, Object o)
public int size()
public boolean hasMoreElements()
hasMoreElements
in interface Enumeration
true
if and only if this enumeration object
contains at least one more element to provide;
false
otherwise.public Object nextElement()
nextElement
in interface Enumeration
NoSuchElementException
- if no more elements exist.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
- Includes any I/O exceptions that may occurpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
ClassNotFoundException
- If the class for an object being
restored cannot be found.
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |