com.crystaldecisions.sdk.occa.report.lib
Class ReportSDKVector<E>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<E>
              extended by com.crystaldecisions.sdk.occa.report.lib.ClonableList<E>
                  extended by com.crystaldecisions.sdk.occa.report.lib.ControllableList<E>
                      extended by com.crystaldecisions.sdk.occa.report.lib.ReportSDKVector<E>
All Implemented Interfaces:
IClone, java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<E>, java.util.Collection<E>, java.util.List<E>, java.util.RandomAccess
Direct Known Subclasses:
Alerts, Areas, CompositeCursor, ConnectionInfos, CrossTabGroupFormats, CustomFunctions, DataSourceParameterFormulas, DirectoryItems, FieldLinks, FieldMappingInfos, Filters, GroupPath, ParagraphElements, Paragraphs, PropertyBags, Record, RecordBatches, Records, ReportObjects, ReportPartIDs, Rowsets, Sections, Sorts, Strings, SubreportLinks, TableChangeFeedbacks, TableJoins, Tables, TabStops, TotallerNodes, Values, VerifyDatabaseFeedbacks

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

Constructor Detail

ReportSDKVector

public ReportSDKVector(ReportSDKVector<E> src)

ReportSDKVector

public ReportSDKVector()
Method Detail

add

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

Specified by:
add in interface java.util.Collection<E>
Specified by:
add in interface java.util.List<E>
Overrides:
add in class ControllableList<E>
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,
                E 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<E>
Overrides:
add in class ControllableList<E>
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.

addElement

public void addElement(E 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 E 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(E 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.


isDirectlyControllable

public boolean isDirectlyControllable()