com.teraspaces.qwfix
Class FIXSchemaComponentCollection

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<FIXSchemaComponent>
              extended by com.teraspaces.qwfix.FIXSchemaComponentCollection
All Implemented Interfaces:
Serializable, Cloneable, Iterable<FIXSchemaComponent>, Collection<FIXSchemaComponent>, List<FIXSchemaComponent>, RandomAccess

public class FIXSchemaComponentCollection
extends ArrayList<FIXSchemaComponent>

Represents a collection of FIXSchemaComponent. This class cannot be inherited.

See Also:
Serialized Form

Method Summary
 boolean add(FIXSchemaComponent component)
           
 void add(int index, FIXSchemaComponent component)
           
 boolean addAll(Collection<? extends FIXSchemaComponent> c)
           
 boolean addAll(int index, Collection<? extends FIXSchemaComponent> c)
           
 void clear()
           
 FIXSchemaComponent getComponentByName(String name)
          Gets the component by name.
 FIXSchema getSchema()
          Gets the parent schema.
 FIXSchemaComponent remove(int index)
           
 boolean remove(Object o)
           
 boolean removeAll(Collection<?> c)
           
 boolean retainAll(Collection<?> c)
           
 FIXSchemaComponent set(int index, FIXSchemaComponent newComponent)
           
 
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, iterator, listIterator, listIterator, subList
 
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, iterator, listIterator, listIterator, subList
 

Method Detail

add

public boolean add(FIXSchemaComponent component)
Specified by:
add in interface Collection<FIXSchemaComponent>
Specified by:
add in interface List<FIXSchemaComponent>
Overrides:
add in class ArrayList<FIXSchemaComponent>

add

public void add(int index,
                FIXSchemaComponent component)
Specified by:
add in interface List<FIXSchemaComponent>
Overrides:
add in class ArrayList<FIXSchemaComponent>

remove

public FIXSchemaComponent remove(int index)
Specified by:
remove in interface List<FIXSchemaComponent>
Overrides:
remove in class ArrayList<FIXSchemaComponent>

remove

public boolean remove(Object o)
Specified by:
remove in interface Collection<FIXSchemaComponent>
Specified by:
remove in interface List<FIXSchemaComponent>
Overrides:
remove in class ArrayList<FIXSchemaComponent>

set

public FIXSchemaComponent set(int index,
                              FIXSchemaComponent newComponent)
Specified by:
set in interface List<FIXSchemaComponent>
Overrides:
set in class ArrayList<FIXSchemaComponent>

clear

public void clear()
Specified by:
clear in interface Collection<FIXSchemaComponent>
Specified by:
clear in interface List<FIXSchemaComponent>
Overrides:
clear in class ArrayList<FIXSchemaComponent>

addAll

public boolean addAll(Collection<? extends FIXSchemaComponent> c)
Specified by:
addAll in interface Collection<FIXSchemaComponent>
Specified by:
addAll in interface List<FIXSchemaComponent>
Overrides:
addAll in class ArrayList<FIXSchemaComponent>

addAll

public boolean addAll(int index,
                      Collection<? extends FIXSchemaComponent> c)
Specified by:
addAll in interface List<FIXSchemaComponent>
Overrides:
addAll in class ArrayList<FIXSchemaComponent>

removeAll

public boolean removeAll(Collection<?> c)
Specified by:
removeAll in interface Collection<FIXSchemaComponent>
Specified by:
removeAll in interface List<FIXSchemaComponent>
Overrides:
removeAll in class AbstractCollection<FIXSchemaComponent>

retainAll

public boolean retainAll(Collection<?> c)
Specified by:
retainAll in interface Collection<FIXSchemaComponent>
Specified by:
retainAll in interface List<FIXSchemaComponent>
Overrides:
retainAll in class AbstractCollection<FIXSchemaComponent>

getSchema

public FIXSchema getSchema()
Gets the parent schema.

Returns:
the parent schema

getComponentByName

public FIXSchemaComponent getComponentByName(String name)
Gets the component by name.

Parameters:
name - the name
Returns:
the component by name