All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.jaw.reference.common.PropertyList
java.lang.Object
|
+----java.util.Vector
|
+----com.sun.jaw.reference.common.PropertyList
- public class PropertyList
- extends Vector
This class is used for representing a couple (property, value).
- See Also:
- Property
-
PropertyList()
- Creates a
VecList without any elements.
-
PropertyList(int)
- Constructs an empty PropertyList with the specified storage capacity.
-
PropertyList(int, int)
- Constructs an empty PropertyList with the specified storage
capacity and the specified capacity increment.
-
addElement(Property)
- Adds the specified Property as the last element of the vector.
-
insertElementAt(Property, int)
- Inserts the specified object as an element at the specified index.
-
setElementAt(Property, int)
- Sets the element at the specified index to be the specified object.
PropertyList
public PropertyList()
- Creates a
VecList without any elements.
PropertyList
public PropertyList(int initialCapacity,
int capacityIncrement)
- Constructs an empty PropertyList 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.
PropertyList
public PropertyList(int initialCapacity)
- Constructs an empty PropertyList with the specified storage capacity.
- Parameters:
- initialCapacity - The initial storage capacity of the vector.
setElementAt
public void setElementAt(Property 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.
insertElementAt
public void insertElementAt(Property obj,
int ind)
- Inserts the specified object as an element at the specified index.
Elements with an index greater or equal to the current index
are shifted up.
- Parameters:
- obj - The Property to be inserted.
- index - The position in the index where the new Property object
is to be inserted.
- Throws: ArrayIndexOutOfBoundsException
- If the index was invalid.
addElement
public void addElement(Property obj)
- Adds the specified Property as the last element of the vector.
- Parameters:
- obj - The Property to be added.
All Packages Class Hierarchy This Package Previous Next Index