com.epam.fix.message
Class FIXFieldListAdapter

java.lang.Object
  extended by com.epam.fix.message.IndexedStorage
      extended by com.epam.fix.message.ExtendedIndexedStorage
          extended by com.epam.fix.message.AbstractFIXFieldList
              extended by com.epam.fix.message.FIXFieldListAdapter
All Implemented Interfaces:
Iterable<FIXField>, Collection<FIXField>, List<FIXField>
Direct Known Subclasses:
FIXFieldList

public abstract class FIXFieldListAdapter
extends AbstractFIXFieldList
implements List<FIXField>

Created by IntelliJ IDEA. User: Alexander_Sereda Date: 12.11.12 Time: 13:06 To change this template use File | Settings | File Templates.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.epam.fix.message.IndexedStorage
IndexedStorage.MISSING_TAG_HANDLING
 
Field Summary
protected  com.epam.fix.message.FIXFieldListAdapter.FIXFieldIterator fieldIterator
           
protected  FIXFieldStorage fixFields
           
 
Fields inherited from class com.epam.fix.message.AbstractFIXFieldList
forceCloneOnSend, isFree, isMessageIncomplete, isPreparedMessage, tagValueIterator
 
Fields inherited from class com.epam.fix.message.IndexedStorage
FIELD_SEPARATOR, NOTFOUND
 
Constructor Summary
protected FIXFieldListAdapter()
           
protected FIXFieldListAdapter(boolean isUserOwned)
           
protected FIXFieldListAdapter(FIXFieldList message)
           
  FIXFieldListAdapter(List<FIXField> message)
          Deprecated. 
 
Method Summary
 boolean add(FIXField field)
          Deprecated. 
 void add(FIXFieldList list)
           
 void add(int tag, byte[] val)
          Deprecated. 
 void add(int index, FIXField element)
          Deprecated. 
 void add(int tag, long val)
          Deprecated. 
 void add(int tag, String val)
          Deprecated. 
 void add(List<FIXField> list)
          Deprecated. 
 boolean addAll(Collection<? extends FIXField> c)
          Deprecated. 
 boolean addAll(int index, Collection<? extends FIXField> c)
          Deprecated. 
 void addAtIndex(int addAtIndex, FIXField field)
          Deprecated. 
 void clear()
           
 boolean contains(Object o)
          Deprecated. 
 boolean containsAll(Collection<?> c)
          Deprecated. 
protected  void deepCopy(IndexedStorage source)
           
 List<Map<Integer,FIXField>> extractGroup(int rgTag, int[] tagList)
          Deprecated. 
 List<Map<Integer,FIXField>> extractGroup(int rgTag, int rgFirstTag, int[] tagList)
          Deprecated. 
 FIXField get(int index)
          Deprecated. 
 FIXField getFIXField(int index, boolean isOriginatingFromPool)
          Deprecated. 
 FIXField getTag(int tag)
          Deprecated. 
 FIXField getTag(int tag, int occurrence)
          Deprecated. 
 int getTagAsInt(int tag)
           
 int getTagAsInt(int tag, int occurrence)
           
 int getTagAsIntAtIndex(int index)
           
 FIXField getTagAtIndex(int index)
          Deprecated. 
 String getTagStringValue(int tag)
          Deprecated. 
 int indexOf(Object o)
          Deprecated. 
 boolean isEmpty()
           
protected static boolean isEquals(FIXField field, TagValue tv)
           
 Iterator<FIXField> iterator()
          Deprecated. 
 int lastIndexOf(Object o)
          Deprecated. 
 ListIterator<FIXField> listIterator()
          Deprecated. 
 ListIterator<FIXField> listIterator(int index)
          Deprecated. 
protected  void onEnlarge(int ratio, int newSize)
           
 FIXField remove(int index)
          Deprecated. 
 boolean remove(Object o)
          Deprecated. 
 boolean removeAll(Collection<?> c)
          Deprecated. 
 void removeRange(int fromIndex, int toIndex)
           
 boolean removeTagAtIndex(int tagIndex)
           
protected  int reserveTagAtIndex(int addAtIndex, int tagId)
           
 boolean retainAll(Collection<?> c)
          Deprecated. 
 FIXField set(int index, FIXField element)
          Deprecated. 
 int size()
           
 List<ArrayList<FIXField>> splitAsList(int tag)
          Deprecated. 
 List<FIXField> subList(int fromIndex, int toIndex)
          Deprecated. 
 Object[] toArray()
          Deprecated. 
<T> T[]
toArray(T[] a)
          Deprecated. 
 void trimToSize()
          Deprecated. 
 void updateValueAtIndex(int index, boolean value)
           
 void updateValueAtIndex(int index, byte[] value)
           
 void updateValueAtIndex(int index, byte[] value, int offset, int length)
           
 void updateValueAtIndex(int index, Calendar value, FIXDateFormatterFactory.FIX_DATE_TYPE type)
           
 void updateValueAtIndex(int index, CharSequence str)
           
 void updateValueAtIndex(int index, double value, int precision)
           
 void updateValueAtIndex(int index, long value)
           
 void updateValueAtIndex(int index, TagValue value)
           
 
Methods inherited from class com.epam.fix.message.AbstractFIXFieldList
add, addAll, calculateBodyLength, calculateChecksum, canCopyInPlace, canCopyInPlaceNumber, deepCopyTo, equals, getTagIndex, getTagLength, getTagNumAtIndex, getTagValueIterator, isMessageBufferContinuous, isMessageIncomplete, isOriginatingFromPool, isPreparedMessage, isUserOwned, makeStandalone, notifyInvalidMessage, removeTag, split, switchToStandalone, toByteArray, toByteArrayAndReturnNextPosition, toString
 
Methods inherited from class com.epam.fix.message.ExtendedIndexedStorage
addTag, addTag, addTag, addTagAtIndex, addTagAtIndex, addTagAtIndex, getBytes, getMsgSeqNumber, getMsgType, getMsgVersion, getTagValueAsBool, getTagValueAsBool, getTagValueAsByte, getTagValueAsByte, getTagValueAsByte, getTagValueAsByteAtIndex, getTagValueAsBytes, getTagValueAsBytes, getTagValueAsBytes, getTagValueAsBytes, getTagValueAsDateOnly, getTagValueAsDateOnly, getTagValueAsDateOnlyAtIndex, getTagValueAsDouble, getTagValueAsDouble, getTagValueAsLong, getTagValueAsLong, getTagValueAsMonthYear, getTagValueAsMonthYear, getTagValueAsMonthYearAtIndex, getTagValueAsString, getTagValueAsString, getTagValueAsStringBuff, getTagValueAsStringBuff, getTagValueAsTimeOnly, getTagValueAsTimeOnly, getTagValueAsTimeOnlyAtIndex, getTagValueAsTimestamp, getTagValueAsTimestamp, getTagValueAsTimestampAtIndex, getTagValueAsTZTimeOnly, getTagValueAsTZTimeOnly, getTagValueAsTZTimeOnlyAtIndex, getTagValueAsTZTimestamp, getTagValueAsTZTimestamp, getTagValueAsTZTimestampAtIndex, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, setAtIndex, setAtIndex, setAtIndex, setAtIndex, setAtIndex, setAtIndex, setAtIndex, setAtIndex, setAtIndex, setAtIndex, setAtIndex, setAtIndex
 
Methods inherited from class com.epam.fix.message.IndexedStorage
addTag, addTag, addTag, addTag, addTag, addTag, addTag, addTagAtIndex, addTagAtIndex, addTagAtIndex, addTagAtIndex, addTagAtIndex, addTagAtIndex, addTagAtIndex, ensureCapacity, ensureCapacityAndEnlarge, ensureCapacityAndEnlarge, fillSubStorage, findOrPrepareToAdd, findOrPrepareToAdd, genericMessageToByteArrayAndReturnNextPosition, getFieldIndexData, getIndexCapacity, getRawLength, getSize, getStorage, getStorageType, getTag, getTag, getTagAtIndex, getTagIdAtIndex, getTagIndex, getTagIndexBetween, getTagIndexStartingFrom, getTagValueAsBoolAtIndex, getTagValueAsByteAtIndex, getTagValueAsBytesAtIndex, getTagValueAsBytesAtIndex, getTagValueAsDoubleAtIndex, getTagValueAsLongAtIndex, getTagValueAsStringAtIndex, getTagValueAsStringBuffAtIndex, getTagValueLength, getTagValueLength, getTagValueLengthAtIndex, getTagValueOffsetAtIndex, hashCode, isAllTagsInOneBuffer, isTagExists, isTagExists, mapTagInOrigStorage, preparedToByteArrayAndReturnNextPosition, preparedToByteArrayAndReturnNextPosition2, removeTag, setOriginalBuffer, toByteArrayAndReturnNextPosition, transferDataToArena, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
equals, hashCode
 

Field Detail

fieldIterator

protected com.epam.fix.message.FIXFieldListAdapter.FIXFieldIterator fieldIterator

fixFields

protected FIXFieldStorage fixFields
Constructor Detail

FIXFieldListAdapter

protected FIXFieldListAdapter()

FIXFieldListAdapter

protected FIXFieldListAdapter(boolean isUserOwned)

FIXFieldListAdapter

@Deprecated
public FIXFieldListAdapter(List<FIXField> message)
Deprecated. 

Creates FIXFieldList containing the elements of the specified collection.

Parameters:
message - - the collection whose fields are to be placed into this list

FIXFieldListAdapter

protected FIXFieldListAdapter(FIXFieldList message)
Method Detail

onEnlarge

protected void onEnlarge(int ratio,
                         int newSize)
Overrides:
onEnlarge in class IndexedStorage

updateValueAtIndex

public void updateValueAtIndex(int index,
                               byte[] value)
Overrides:
updateValueAtIndex in class IndexedStorage

updateValueAtIndex

public void updateValueAtIndex(int index,
                               Calendar value,
                               FIXDateFormatterFactory.FIX_DATE_TYPE type)
Overrides:
updateValueAtIndex in class IndexedStorage

updateValueAtIndex

public void updateValueAtIndex(int index,
                               double value,
                               int precision)
Overrides:
updateValueAtIndex in class IndexedStorage

updateValueAtIndex

public void updateValueAtIndex(int index,
                               long value)
Overrides:
updateValueAtIndex in class IndexedStorage

updateValueAtIndex

public void updateValueAtIndex(int index,
                               CharSequence str)
Overrides:
updateValueAtIndex in class IndexedStorage

updateValueAtIndex

public void updateValueAtIndex(int index,
                               boolean value)
Overrides:
updateValueAtIndex in class IndexedStorage

updateValueAtIndex

public void updateValueAtIndex(int index,
                               byte[] value,
                               int offset,
                               int length)
Overrides:
updateValueAtIndex in class IndexedStorage

updateValueAtIndex

public void updateValueAtIndex(int index,
                               TagValue value)
Overrides:
updateValueAtIndex in class IndexedStorage

reserveTagAtIndex

protected int reserveTagAtIndex(int addAtIndex,
                                int tagId)
Overrides:
reserveTagAtIndex in class IndexedStorage

deepCopy

protected void deepCopy(IndexedStorage source)
Overrides:
deepCopy in class IndexedStorage

removeTagAtIndex

public final boolean removeTagAtIndex(int tagIndex)
Overrides:
removeTagAtIndex in class IndexedStorage

trimToSize

@Deprecated
public void trimToSize()
Deprecated. 


size

public final int size()
Specified by:
size in interface Collection<FIXField>
Specified by:
size in interface List<FIXField>

isEmpty

public final boolean isEmpty()
Specified by:
isEmpty in interface Collection<FIXField>
Specified by:
isEmpty in interface List<FIXField>
Overrides:
isEmpty in class AbstractFIXFieldList

contains

@Deprecated
public boolean contains(Object o)
Deprecated. 

Specified by:
contains in interface Collection<FIXField>
Specified by:
contains in interface List<FIXField>

iterator

@Deprecated
public Iterator<FIXField> iterator()
Deprecated. 

Specified by:
iterator in interface Iterable<FIXField>
Specified by:
iterator in interface Collection<FIXField>
Specified by:
iterator in interface List<FIXField>

toArray

@Deprecated
public Object[] toArray()
Deprecated. 

Specified by:
toArray in interface Collection<FIXField>
Specified by:
toArray in interface List<FIXField>

toArray

@Deprecated
public <T> T[] toArray(T[] a)
Deprecated. 

Specified by:
toArray in interface Collection<FIXField>
Specified by:
toArray in interface List<FIXField>

add

@Deprecated
public final boolean add(FIXField field)
Deprecated. 

Specified by:
add in interface Collection<FIXField>
Specified by:
add in interface List<FIXField>

getTagStringValue

@Deprecated
public final String getTagStringValue(int tag)
                               throws FieldNotFoundException
Deprecated. 

Gets string value.

Parameters:
tag - the tag id
Returns:
string value if tag exist, otherwise null
Throws:
FieldNotFoundException

remove

@Deprecated
public boolean remove(Object o)
Deprecated. 

Specified by:
remove in interface Collection<FIXField>
Specified by:
remove in interface List<FIXField>

containsAll

@Deprecated
public boolean containsAll(Collection<?> c)
Deprecated. 

Specified by:
containsAll in interface Collection<FIXField>
Specified by:
containsAll in interface List<FIXField>

addAll

@Deprecated
public final boolean addAll(Collection<? extends FIXField> c)
Deprecated. 

Use addAllTags() instead of this

Specified by:
addAll in interface Collection<FIXField>
Specified by:
addAll in interface List<FIXField>
Parameters:
c -
Returns:

add

public void add(FIXFieldList list)

add

@Deprecated
public void add(List<FIXField> list)
Deprecated. 


addAll

@Deprecated
public boolean addAll(int index,
                                 Collection<? extends FIXField> c)
Deprecated. 

Specified by:
addAll in interface List<FIXField>

removeRange

public void removeRange(int fromIndex,
                        int toIndex)

removeAll

@Deprecated
public boolean removeAll(Collection<?> c)
Deprecated. 

Specified by:
removeAll in interface Collection<FIXField>
Specified by:
removeAll in interface List<FIXField>

retainAll

@Deprecated
public boolean retainAll(Collection<?> c)
Deprecated. 

Specified by:
retainAll in interface Collection<FIXField>
Specified by:
retainAll in interface List<FIXField>

addAtIndex

@Deprecated
public final void addAtIndex(int addAtIndex,
                                        FIXField field)
Deprecated. 


clear

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

getFIXField

@Deprecated
public FIXField getFIXField(int index,
                                       boolean isOriginatingFromPool)
Deprecated. 


get

@Deprecated
public final FIXField get(int index)
Deprecated. 

Specified by:
get in interface List<FIXField>

getTag

@Deprecated
public final FIXField getTag(int tag)
Deprecated. 

Gets field by tag.

Parameters:
tag - the tag id
Returns:
field if tag exist, otherwise null

getTagAtIndex

@Deprecated
public final FIXField getTagAtIndex(int index)
Deprecated. 


getTag

@Deprecated
public final FIXField getTag(int tag,
                                        int occurrence)
Deprecated. 

Gets field by tag.

Parameters:
tag - the tag id
occurrence - the
Returns:
method returns tag only if the counter of tag >= occurrence, otherwise returns null

set

@Deprecated
public FIXField set(int index,
                               FIXField element)
Deprecated. 

Specified by:
set in interface List<FIXField>

add

@Deprecated
public void add(int index,
                           FIXField element)
Deprecated. 

Specified by:
add in interface List<FIXField>

add

@Deprecated
public void add(int tag,
                           String val)
Deprecated. 


add

@Deprecated
public void add(int tag,
                           byte[] val)
Deprecated. 


add

@Deprecated
public void add(int tag,
                           long val)
Deprecated. 


remove

@Deprecated
public FIXField remove(int index)
Deprecated. 

Specified by:
remove in interface List<FIXField>

indexOf

@Deprecated
public int indexOf(Object o)
Deprecated. 

Specified by:
indexOf in interface List<FIXField>

lastIndexOf

@Deprecated
public int lastIndexOf(Object o)
Deprecated. 

Specified by:
lastIndexOf in interface List<FIXField>

isEquals

protected static boolean isEquals(FIXField field,
                                  TagValue tv)

listIterator

@Deprecated
public ListIterator<FIXField> listIterator()
Deprecated. 

Specified by:
listIterator in interface List<FIXField>

listIterator

@Deprecated
public ListIterator<FIXField> listIterator(int index)
Deprecated. 

Specified by:
listIterator in interface List<FIXField>

subList

@Deprecated
public List<FIXField> subList(int fromIndex,
                                         int toIndex)
Deprecated. 

Specified by:
subList in interface List<FIXField>

splitAsList

@Deprecated
public final List<ArrayList<FIXField>> splitAsList(int tag)
Deprecated. 

Utility method that splits current message into the repeating groups based on first mandatory tag in the repeating group (always first tag in the repeating group).

Parameters:
tag - the tag number
Returns:
List of repeating groups (each one is separate FIXFieldList)

extractGroup

@Deprecated
public final List<Map<Integer,FIXField>> extractGroup(int rgTag,
                                                                 int rgFirstTag,
                                                                 int[] tagList)
Deprecated. 

Parse repeating group in FIX message

Parameters:
rgTag - Group amount tag
rgFirstTag - The first tag. Tag just after size tag.
tagList - List of expected tags
Returns:
Repeating group

extractGroup

@Deprecated
public final List<Map<Integer,FIXField>> extractGroup(int rgTag,
                                                                 int[] tagList)
Deprecated. 

Parse repeating group in FIX message

Parameters:
rgTag - Group amount tag
tagList - List of expected tags
Returns:
Repeating group

getTagAsInt

public final int getTagAsInt(int tag)
                      throws FieldNotFoundException
Throws:
FieldNotFoundException

getTagAsInt

public final int getTagAsInt(int tag,
                             int occurrence)
                      throws FieldNotFoundException
Throws:
FieldNotFoundException

getTagAsIntAtIndex

public final int getTagAsIntAtIndex(int index)
                             throws FieldNotFoundException
Throws:
FieldNotFoundException


Copyright © 2000-2014 EPAM Systems. All Rights Reserved.