All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.jaw.reference.common.ModificationList

java.lang.Object
   |
   +----java.util.Vector
           |
           +----com.sun.jaw.reference.common.ModificationList

public class ModificationList
extends Vector
This class is used for representing a couple (property, value).

See Also:
Modification

Constructor Index

 o ModificationList()
Creates a VecList without any elements.
 o ModificationList(int)
Constructs an empty ModificationList with the specified storage capacity.
 o ModificationList(int, int)
Constructs an empty ModificationList with the specified storage capacity and the specified capacity increment.

Method Index

 o addElement(Modification)
Adds the specified Modification as the last element of the vector.
 o insertElementAt(Modification, int)
Inserts the specified object as an element at the specified index.
 o setElementAt(Modification, int)
Sets the element at the specified index to be the specified object.

Constructors

 o ModificationList
 public ModificationList()
Creates a VecList without any elements.

 o ModificationList
 public ModificationList(int initialCapacity,
                         int capacityIncrement)
Constructs an empty ModificationList with the specified storage capacity and the specified capacity increment.

Parameters:
initialCapacity - The initial storage capacity of the vector.
capacityIncrement - The amount by which the size of the element is to be increased.
 o ModificationList
 public ModificationList(int initialCapacity)
Constructs an empty ModificationList with the specified storage capacity.

Parameters:
initialCapacity - The initial storage capacity of the vector.

Methods

 o setElementAt
 public void setElementAt(Modification obj,
                          int index)
Sets the element at the specified index to be the specified object. The previous element at that position is discarded.

Parameters:
obj - The object that the element is to be set to.
index - The specified index.
Throws: ArrayIndexOutOfBoundsException
If the index was invalid.
 o insertElementAt
 public void insertElementAt(Modification obj,
                             int ind)
Inserts the specified object as an element at the specified index. Elements with an index greater than or equal to the current index are shifted up.

Parameters:
obj - The Modification to be inserted.
index - The position in the index where the new Modification object is to be inserted.
Throws: ArrayIndexOutOfBoundsException
If the index was invalid.
 o addElement
 public void addElement(Modification obj)
Adds the specified Modification as the last element of the vector.

Parameters:
obj - The Modification to be added.

All Packages  Class Hierarchy  This Package  Previous  Next  Index