All LDAP Classes
Internal LDAP Classes

com.novell.ldap
Class MessageVector

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.Vector
              extended by com.novell.ldap.MessageVector
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess

 class MessageVector
extends java.util.Vector

The MessageVector class implements additional semantics to Vector needed for handling messages.


Field Summary
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
MessageVector(int cap, int incr)
           
 
Method Summary
(package private)  Message findMessageById(int msgId)
          Finds the Message object with the given MsgID, and returns the Message object.
(package private)  java.lang.Object[] getObjectArray()
          Returns an array containing all of the elements in this MessageVector.
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

MessageVector

MessageVector(int cap,
              int incr)
Method Detail

findMessageById

final Message findMessageById(int msgId)
                       throws java.lang.NoSuchFieldException
Finds the Message object with the given MsgID, and returns the Message object. It finds the object and returns it in an atomic operation.

Parameters:
msgId - The msgId of the Message object to return
Returns:
The Message object corresponding to this MsgId.
Throws:
java.lang.NoSuchFieldException - when no object with the corresponding value for the MsgId field can be found.

getObjectArray

final java.lang.Object[] getObjectArray()
Returns an array containing all of the elements in this MessageVector. The elements returned are in the same order in the array as in the Vector. The contents of the vector are cleared.

Returns:
the array containing all of the elements.

All LDAP Classes
Internal LDAP Classes

Copyright ? 2002 Novell, Inc. All Rights Reserved.
Novell, Inc.
1800 South Novell Place
Provo, Ut 84606
Phone: (801) 861-5000