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.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, Fields, FilterItems, Filters, GroupPath, Groups, ParagraphElements, Paragraphs, PropertyBags, Record, RecordBatches, Records, ReportObjects, ReportPartIDs, Rowsets, Sections, Sorts, Strings, SubreportLinks, TableLinks, Tables, TabStops, TotallerNodes, Values

public class ReportSDKVector
extends java.util.ArrayList
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
 void addElement(java.lang.Object obj)
           Appends the specified object to the end of this collection.
 java.lang.Object clone(boolean deepClone)
           
 void copyTo(java.lang.Object dest, boolean deepCopy)
           
 java.lang.Object elementAt(int index)
           Returns the element at the specified index.
 int findIndexOf(java.lang.Object object)
           Returns the index of the first occurrence of the specified Object in this collection.
 boolean hasContent(java.lang.Object obj)
           
 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 java.util.ArrayList
add, add, 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

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.

clone

public java.lang.Object clone(boolean deepClone)

copyTo

public void copyTo(java.lang.Object dest,
                   boolean deepCopy)

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.

findIndexOf

public int findIndexOf(java.lang.Object object)

Returns the index of the first occurrence of the specified Object in this collection. Both the type and the content of the Objects must match exactly.

Parameters:
object - The Object to search for.
Returns:
An int that specifies the index of the first occurrence of the specified Object or -1 if it is not found.

hasContent

public boolean hasContent(java.lang.Object obj)

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.