com.tivoli.mts
Class PDAttrValueList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList
              extended by com.tivoli.mts.PDAttrValueList
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess

public class PDAttrValueList
extends java.util.ArrayList
implements java.lang.Cloneable, java.io.Serializable

This class represents a list of Security Access Manager attribute values. Each value may be a String, a byte array, a Long, or a PDAdmSvcPobj.

NOTE: As of IBM Tivoli Access Manager for e-business v5.1, this entire class is deprecated. Equivalent function is in the com.tivoli.pd.jutil.PDAttrValueList class.

See Also:
PDAttrValueList, Serialized Form

Constructor Summary
PDAttrValueList()
          Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this constructor is replaced by the equivalent constructor in the PDAttrValueList class.
PDAttrValueList(java.util.Collection c)
          Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this constructor is replaced by the equivalent constructor in the PDAttrValueList class.
PDAttrValueList(int size)
          Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this constructor is replaced by the equivalent constructor in the PDAttrValueList class.
 
Method Summary
 void add(int index, java.lang.Object element)
          Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrValueList class.
 boolean add(java.lang.Object element)
          Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrValueList class.
 boolean addAll(java.util.Collection c)
          Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrValueList class.
 boolean addAll(int index, java.util.Collection c)
          Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrValueList class.
 java.lang.Object clone()
          Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrValueList class.
 boolean equals(java.lang.Object obj)
          Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrValueList class.
 int hashCode()
          Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrValueList class.
 java.lang.Object set(int index, java.lang.Object element)
          Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrValueList class.
 java.lang.String toString()
          Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrValueList class.
 
Methods inherited from class java.util.ArrayList
clear, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

PDAttrValueList

public PDAttrValueList()
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this constructor is replaced by the equivalent constructor in the PDAttrValueList class.

Constructs an empty list.


PDAttrValueList

public PDAttrValueList(int size)
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this constructor is replaced by the equivalent constructor in the PDAttrValueList class.

Constructs an empty list with the specified initial capacity.

Parameters:
size - the initial capacity of the PDAttrValueList

PDAttrValueList

public PDAttrValueList(java.util.Collection c)
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this constructor is replaced by the equivalent constructor in the PDAttrValueList class.

Constructs a new PDAttrValueList containing the elements in the specified Collection.

Parameters:
c - the collection whose elements are to be placed into this list.
Throws:
java.lang.NullPointerException - if no Collection is supplied.
java.lang.ClassCastException - if one or more of the elements in the Collection to be added are not PDAttrValue objects.
Method Detail

set

public java.lang.Object set(int index,
                            java.lang.Object element)
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrValueList class.

Replaces the element at the specified position in this list with the specified element.

Specified by:
set in interface java.util.List
Overrides:
set in class java.util.ArrayList
Parameters:
index - the position where the element is to be placed.
element - the replacement element.
Throws:
java.lang.ClassCastException - if the element to be replaced is not a PDAttrValue object.

add

public boolean add(java.lang.Object element)
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrValueList class.

Overrides the generic method in ArrayList that allows objects of any type to be added to the end of an ArrayList. This method will throw an ClassCastException if called with an object other than a PDAttrValue.

Specified by:
add in interface java.util.Collection
Specified by:
add in interface java.util.List
Overrides:
add in class java.util.ArrayList
Parameters:
element - the element to add to the end of the list.
Returns:
true if this Collection changed as a result of this call.
Throws:
java.lang.ClassCastException - if called with an object other than a PDAttrValue.

add

public void add(int index,
                java.lang.Object element)
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrValueList class.

Inserts the specified element at the specified position in this list, moving all subsequent elements to a higher index.

Specified by:
add in interface java.util.List
Overrides:
add in class java.util.ArrayList
Parameters:
index - the position where the element is to be inserted.
element - the element to insert.
Throws:
java.lang.ClassCastException - if the element to be inserted is not a PDAttrValue object.

addAll

public boolean addAll(java.util.Collection c)
               throws java.lang.NullPointerException,
                      java.lang.ClassCastException
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrValueList class.

Adds all of the elements in the specified collection to this collection. The behavior of this operation is undefined if the specified collection is modified while the operation is in progress. (This implies that the behavior of this call is undefined if the specified collection is this collection, and this collection is nonempty.) This implementation iterates over the specified collection, and adds each PDAttrValue returned by the iterator to this collection, in turn. If any objects are returned by the iterator that are not PDAttrValue, a ClassCastException is thrown.

Specified by:
addAll in interface java.util.Collection
Specified by:
addAll in interface java.util.List
Overrides:
addAll in class java.util.ArrayList
Parameters:
c - The collection of PDAttrValue to add to the PDAttrValueList
Returns:
true if this Collection changed as a result of the call
Throws:
java.lang.NullPointerException - if no Collection is passed
java.lang.ClassCastException - if the input Collection contains an object other than a PDAttrValue

addAll

public boolean addAll(int index,
                      java.util.Collection c)
               throws java.lang.NullPointerException,
                      java.lang.ClassCastException
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrValueList class.

Inserts all of the elements in the specified collection into this list, starting at the specified offset, shifting any subsequent elements to a higher index. The behavior of this operation is undefined if the specified collection is modified while the operation is in progress. (This implies that the behavior of this call is undefined if the specified collection is this collection, and this collection is nonempty.) This implementation iterates over the specified collection, and adds each PDAttrValue returned by the iterator to this collection, in turn. If any objects are returned by the iterator that are not PDAttrValue, a ClassCastException is thrown.

Specified by:
addAll in interface java.util.List
Overrides:
addAll in class java.util.ArrayList
Parameters:
index - the position where the collection elements are to be inserted.
c - The collection of PDAttrValue to insert into this PDAttrValueList.
Returns:
true if this Collection changed as a result of the call.
Throws:
java.lang.NullPointerException - if no Collection is supplied.
java.lang.ClassCastException - if the input Collection contains an object other than a PDAttrValue.

equals

public boolean equals(java.lang.Object obj)
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrValueList class.

Indicates whether some other Object is equal to this one.

Specified by:
equals in interface java.util.Collection
Specified by:
equals in interface java.util.List
Overrides:
equals in class java.util.AbstractList
Parameters:
obj - the object to be compared to this one.
Returns:
true if the PDAttrValueLists are identical, false otherwise.

clone

public java.lang.Object clone()
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrValueList class.

Returns a clone of this object. This is implemented as a deep copy.

Overrides:
clone in class java.util.ArrayList

toString

public java.lang.String toString()
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrValueList class.

Returns a String representation of this object.

Overrides:
toString in class java.util.AbstractCollection

hashCode

public int hashCode()
Deprecated. As of IBM Tivoli Access Manager for e-business v5.1, this method is replaced by the equivalent method in the PDAttrValueList class.

Returns a hashcode for the current object.

Specified by:
hashCode in interface java.util.Collection
Specified by:
hashCode in interface java.util.List
Overrides:
hashCode in class java.util.AbstractList