com.crystaldecisions.sdk.occa.report.lib
Class ReportSDKVector

java.lang.Object
  extended by java.util.AbstractCollection
      extended by java.util.AbstractList
          extended by java.util.ArrayList
              extended by com.crystaldecisions.sdk.occa.report.lib.ClonableList
                  extended by com.crystaldecisions.sdk.occa.report.lib.ReportSDKVector
All Implemented Interfaces:
IClone, java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess
Direct Known Subclasses:
Alerts, Areas, CompositeCursor, ConnectionInfos, CustomFunctions, DirectoryItems, FilterItems, Filters, GroupPath, ParagraphElements, Paragraphs, PropertyBags, Record, RecordBatches, Records, ReportObjects, ReportPartIDs, ReportSDKVectorInternal, Rowsets, Sections, Sorts, Strings, SubreportLinks, TableLinks, Tables, TabStops, TotallerNodes, Values, XMLExportFormats

public class ReportSDKVector
extends ClonableList
implements IClone

This class defines a vector data structure with support for specific Report Application Server SDK functionality.

See Also:
Serialized Form

Constructor Summary
ReportSDKVector()
           
ReportSDKVector(ReportSDKVector src)
           
 
Method Summary
 boolean add(java.lang.Object o)
          Appends the specified element to the end of this collection.
 void add(int index, java.lang.Object element)
          Inserts the specified element at the specified position in this collection.
 void addElement(java.lang.Object obj)
           Appends the specified object to the end of this collection.
 void addNullElement(int index)
          For internal use only.
 java.lang.Object elementAt(int index)
           Returns the element at the specified index.
 void insertElementAt(java.lang.Object obj, int index)
           Inserts the supplied Object at the specified index.
 void removeAllElements()
           Removes all elements from this collection.
 
Methods inherited from class com.crystaldecisions.sdk.occa.report.lib.ClonableList
clone, copyTo, copyTo, createMember, endElement, findIndexOf, hasContent, readElement, save, save, saveContents, startElement
 
Methods inherited from class java.util.ArrayList
addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

ReportSDKVector

public ReportSDKVector(ReportSDKVector src)

ReportSDKVector

public ReportSDKVector()
Method Detail

add

public boolean add(java.lang.Object o)
Appends the specified element to the end of this collection.

Specified by:
add in interface java.util.Collection
Specified by:
add in interface java.util.List
Overrides:
add in class java.util.ArrayList
Parameters:
o - element to be added into the collection.
Returns:
true if this collection changed as a result of the call.
Throws:
java.lang.NullPointerException - if the specified element is null and this collection does not support null elements.

add

public void add(int index,
                java.lang.Object element)
Inserts the specified element at the specified position in this collection. Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).

Specified by:
add in interface java.util.List
Overrides:
add in class java.util.ArrayList
Parameters:
index - index at which the specified element is to be inserted.
element - element to be inserted.
Throws:
java.lang.IndexOutOfBoundsException - if index is out of range (index < 0 || index > size()).
java.lang.NullPointerException - if the specified element is null and this collection does not support null elements.

addNullElement

public void addNullElement(int index)
For internal use only.


addElement

public void addElement(java.lang.Object obj)

Appends the specified object to the end of this collection. Enforces type checking for the element to be added.

Parameters:
obj - The Object to be added.

elementAt

public java.lang.Object elementAt(int index)

Returns the element at the specified index.

Parameters:
index - The index of the element to be retrieved.
Returns:
The Object at the specified index.

insertElementAt

public void insertElementAt(java.lang.Object obj,
                            int index)

Inserts the supplied Object at the specified index. All elements at index or greater is shifted upward by 1. Enforces type checking for the element to be added.

Parameters:
obj - The Object to be inserted.
index - The index at which to insert the Object.

removeAllElements

public void removeAllElements()

Removes all elements from this collection.