com.teraspaces.qwfix
Class FIXSchemaMessageCollection

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

public final class FIXSchemaMessageCollection
extends ArrayList<FIXSchemaMessage>

Represents a collection of FIX messages. This class cannot be inherited.

See Also:
Serialized Form

Method Summary
 boolean add(FIXSchemaMessage message)
           
 void add(int index, FIXSchemaMessage message)
           
 boolean addAll(Collection<? extends FIXSchemaMessage> c)
           
 boolean addAll(int index, Collection<? extends FIXSchemaMessage> c)
           
 void clear()
           
 FIXSchemaMessage getMessageByMsgType(String msgType)
          Gets the message schema by MsgType.
 FIXSchemaMessage getMessageByName(String name)
          Gets the message schema by name.
 FIXSchema getSchema()
          Gets the schema.
 FIXSchemaMessage remove(int index)
           
 boolean remove(Object o)
           
 boolean removeAll(Collection<?> c)
           
 boolean retainAll(Collection<?> c)
           
 FIXSchemaMessage set(int index, FIXSchemaMessage newMessage)
           
 
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(FIXSchemaMessage message)
Specified by:
add in interface Collection<FIXSchemaMessage>
Specified by:
add in interface List<FIXSchemaMessage>
Overrides:
add in class ArrayList<FIXSchemaMessage>

add

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

remove

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

remove

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

set

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

clear

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

addAll

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

addAll

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

removeAll

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

retainAll

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

getSchema

public FIXSchema getSchema()
Gets the schema.

Returns:
the schema

getMessageByMsgType

public FIXSchemaMessage getMessageByMsgType(String msgType)
Gets the message schema by MsgType.

Parameters:
msgType - the MsgType
Returns:
the message schema with specified MsgType; or null

getMessageByName

public FIXSchemaMessage getMessageByName(String name)
Gets the message schema by name.

Parameters:
name - the name
Returns:
the message schema with specified name; or null