com.crystaldecisions.sdk.occa.report.data
Class ConnectionTypes

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<ConnectionType>
              extended by com.crystaldecisions.sdk.occa.report.data.ConnectionTypes
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<ConnectionType>, java.util.Collection<ConnectionType>, java.util.List<ConnectionType>, java.util.RandomAccess

public class ConnectionTypes
extends java.util.ArrayList<ConnectionType>

This class defines a collection of ConnectionType objects.

See Also:
Serialized Form

Constructor Summary
ConnectionTypes()
           
ConnectionTypes(ConnectionTypes src)
           
 
Method Summary
 boolean add(ConnectionType o)
          Appends the specified element to the end of this collection.
 void add(int index, ConnectionType element)
          Inserts the specified element at the specified position in this collection.
 java.lang.Object createMember(java.lang.String eleName, org.xml.sax.Attributes attrs, XMLSerializationContext ctxt, java.util.Map objState, boolean[] bLoaded)
          For internal use only.
 void endElement(java.lang.String eleName, java.util.Map objState)
          For internal use only.
 ConnectionType getConnectionType(int index)
          Returns the connection type.
 void readElement(java.lang.String eleName, java.lang.String sVal, org.xml.sax.Attributes attrs, java.util.Map objState)
          For internal use only.
 void save(XMLWriter writer, java.lang.String sTag, XMLSerializationContext ctxt)
          For internal use only.
 void save(XMLWriter writer, XMLSerializationContext ctxt)
          For internal use only.
 void saveContents(XMLWriter writer, XMLSerializationContext ctxt)
          For internal use only.
 void startElement(java.lang.String eleName, java.util.Map objState, org.xml.sax.Attributes attrs)
          For internal use only.
 
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

ConnectionTypes

public ConnectionTypes(ConnectionTypes src)

ConnectionTypes

public ConnectionTypes()
Method Detail

add

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

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

add

public void add(int index,
                ConnectionType 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<ConnectionType>
Overrides:
add in class java.util.ArrayList<ConnectionType>
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.ClassCastException - class of the specified element prevents it from being added to this collection.
java.lang.NullPointerException - if the specified element is null and this collection does not support null elements.

getConnectionType

public ConnectionType getConnectionType(int index)
Returns the connection type.

Parameters:
index -
Returns:
the type of connection

createMember

public java.lang.Object createMember(java.lang.String eleName,
                                     org.xml.sax.Attributes attrs,
                                     XMLSerializationContext ctxt,
                                     java.util.Map objState,
                                     boolean[] bLoaded)
For internal use only.


endElement

public void endElement(java.lang.String eleName,
                       java.util.Map objState)
For internal use only.


readElement

public void readElement(java.lang.String eleName,
                        java.lang.String sVal,
                        org.xml.sax.Attributes attrs,
                        java.util.Map objState)
For internal use only.


save

public void save(XMLWriter writer,
                 XMLSerializationContext ctxt)
          throws java.io.IOException
For internal use only.

Throws:
java.io.IOException

save

public void save(XMLWriter writer,
                 java.lang.String sTag,
                 XMLSerializationContext ctxt)
          throws java.io.IOException
For internal use only.

Throws:
java.io.IOException

saveContents

public void saveContents(XMLWriter writer,
                         XMLSerializationContext ctxt)
                  throws java.io.IOException
For internal use only.

Throws:
java.io.IOException

startElement

public void startElement(java.lang.String eleName,
                         java.util.Map objState,
                         org.xml.sax.Attributes attrs)
For internal use only.