public abstract class AbstractFIXFieldList extends HPExtendedIndexedStorage implements Iterable<FIXField>
IndexedStorage.MISSING_TAG_HANDLING
Modifier and Type | Field and Description |
---|---|
protected boolean |
forceCloneOnSend |
protected boolean |
isFree |
protected boolean |
isMessageIncomplete |
protected boolean |
isPreparedMessage |
protected com.epam.fix.message.AbstractFIXFieldList.TagValueIterator |
tagValueIterator |
protected long |
uid |
static int |
UNINITIALIZED_UID |
NOT_AN_INT_VALUE_ERROR
FIELD_SEPARATOR, NOTFOUND
Constructor and Description |
---|
AbstractFIXFieldList()
Creates an empty message that is engine owned
TBD: protect(hide) the constructor from user access.
|
AbstractFIXFieldList(boolean isUserOwned)
Creates an empty message
TBD: make with default modificator - all oter should use newInstanceFromPool
|
AbstractFIXFieldList(FIXFieldList message)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
int |
add(TagValue tagValue) |
boolean |
addAll(FIXFieldList list) |
int |
calculateBodyLength()
Calculates body length for collection.
|
int |
calculateChecksum()
Calculates checksum.
|
protected boolean |
canCopyInPlace(int index,
int oldLen,
int newLen) |
protected boolean |
canCopyInPlaceNumber(int index,
int oldLen,
int newLen) |
void |
clear() |
void |
clearUid() |
FIXFieldList |
deepCopyTo(FIXFieldList cloned) |
boolean |
equals(Object o) |
int |
getTagIndex(int tag) |
int |
getTagLength(int tag) |
int |
getTagNumAtIndex(int index) |
protected Iterator<TagValue> |
getTagValueIterator()
Calculation based on the number tag and length of the tag value
|
long |
getUid() |
void |
initUid() |
boolean |
isEmpty() |
boolean |
isMessageBufferContinuous() |
boolean |
isMessageIncomplete() |
boolean |
isOriginatingFromPool() |
boolean |
isPreparedMessage() |
boolean |
isUserOwned() |
protected abstract FIXFieldList |
makeStandalone() |
protected abstract List<Map<Integer,FIXField>> |
notifyInvalidMessage(int rgTag,
int rgFirstTag) |
boolean |
removeTag(int tag)
Removes a fix field with specified tag from collection.
|
void |
setUid(long uid) |
List<FIXFieldList> |
split(int tag)
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).
|
protected void |
switchToStandalone() |
byte[] |
toByteArray()
Writes field list to array of bytes.
|
int |
toByteArrayAndReturnNextPosition(byte[] dst,
int offset)
Writes the list of field to the
origBuffer , and returns the next index. |
String |
toPrintableString() |
static String |
toPrintableString(String msg)
Deprecated.
|
String |
toString()
Converts collection of fix fields to string.
|
getTagValueAsLocalMktTime, getTagValueAsLocalMktTime, getTagValueAsLocalMktTimeAtIndex, getTagValueAsTimeOnly, getTagValueAsTimeOnly, getTagValueAsTimeOnlyAtIndex, getTagValueAsTimestamp, getTagValueAsTimestamp, getTagValueAsTimestampAtIndex, getTagValueAsTZTimeOnly, getTagValueAsTZTimeOnly, getTagValueAsTZTimeOnlyAtIndex, getTagValueAsTZTimestamp, getTagValueAsTZTimestamp, getTagValueAsTZTimestampAtIndex, set, set, set, set, set, set, set, set, setAtIndex, setAtIndex, setAtIndex, setAtIndex
addTag, addTag, addTag, addTagAtIndex, addTagAtIndex, addTagAtIndex, getBytes, getMsgSeqNumber, getMsgType, getMsgType, getMsgVersion, getTagValueAsBigDecimal, getTagValueAsBigDecimal, getTagValueAsBool, getTagValueAsBool, getTagValueAsByte, getTagValueAsByte, getTagValueAsByte, getTagValueAsByteAtIndex, getTagValueAsBytes, getTagValueAsBytes, getTagValueAsBytes, getTagValueAsBytes, getTagValueAsDateOnly, getTagValueAsDateOnly, getTagValueAsDateOnlyAtIndex, getTagValueAsDouble, getTagValueAsDouble, getTagValueAsInt, getTagValueAsInt, getTagValueAsIntAtIndex, getTagValueAsLocalMktTime, getTagValueAsLocalMktTime, getTagValueAsLocalMktTimeAtIndex, getTagValueAsLong, getTagValueAsLong, getTagValueAsMonthYear, getTagValueAsMonthYear, getTagValueAsMonthYearAtIndex, getTagValueAsReusableString, getTagValueAsReusableString, getTagValueAsString, getTagValueAsString, getTagValueAsStringBuff, getTagValueAsStringBuff, getTagValueAsTenor, getTagValueAsTenor, getTagValueAsTenorAtIndex, getTagValueAsTimeOnly, getTagValueAsTimeOnly, getTagValueAsTimeOnlyAtIndex, getTagValueAsTimestamp, getTagValueAsTimestamp, getTagValueAsTimestampAtIndex, getTagValueAsTZTimeOnly, getTagValueAsTZTimeOnly, getTagValueAsTZTimeOnlyAtIndex, getTagValueAsTZTimestamp, getTagValueAsTZTimestamp, getTagValueAsTZTimestampAtIndex, hasTagValue, isTagValueEqual, 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, set, set, set, set, setAtIndex, setAtIndex, setAtIndex, setAtIndex, setAtIndex, setAtIndex, setAtIndex, setAtIndex, setAtIndex, setAtIndex, setAtIndex, setAtIndex, setAtIndex
addRepeatingGroup, addRepeatingGroup, addRepeatingGroup, addRepeatingGroup, addRepeatingGroupAtIndex, addRepeatingGroupAtIndex, addRepeatingGroupAtIndex, addRepeatingGroupAtIndex, addTag, addTag, addTag, addTag, addTag, addTag, addTag, addTag, addTag, addTag, addTag, addTag, addTag, addTagAtIndex, addTagAtIndex, addTagAtIndex, addTagAtIndex, addTagAtIndex, addTagAtIndex, addTagAtIndex, addTagAtIndex, addTagAtIndex, addTagAtIndex, addTagAtIndex, addTagAtIndex, addTagAtIndex, addTagAtIndexForRg, canCopyInPlaceWithLengthReducing, clearUnserializableTags, copyRepeatingGroup, copyRepeatingGroup, copyRepeatingGroup, copyRepeatingGroup, deepCopy, ensureCapacityAndEnlarge, ensureCapacityAndEnlarge, fillSubStorage, findOrPrepareToAdd, findOrPrepareToAdd, genericMessageToByteArrayAndReturnNextPosition, getFieldIndexData, getFIXVersion, getIndexCapacity, getNumOfGroup, getOrAddRepeatingGroup, getOrAddRepeatingGroup, getOrAddRepeatingGroupAtIndex, getOrAddRepeatingGroupAtIndex, getRawLength, getRepeatingGroup, getRepeatingGroup, getRepeatingGroupAtIndex, getRepeatingGroupAtIndex, getSize, getStorage, getStorageType, getTag, getTag, getTagAtIndex, getTagIdAtIndex, getTagIndex, getTagIndexBetween, getTagIndexStartingFrom, getTagValueAsBigDecimalAtIndex, getTagValueAsBoolAtIndex, getTagValueAsByteAtIndex, getTagValueAsBytesAtIndex, getTagValueAsBytesAtIndex, getTagValueAsDoubleAtIndex, getTagValueAsLongAtIndex, getTagValueAsReusableStringAtIndex, getTagValueAsStringAtIndex, getTagValueAsStringBuffAtIndex, getTagValueAtIndex, getTagValueLength, getTagValueLength, getTagValueLengthAtIndex, getTagValueOffsetAtIndex, hashCode, invalidateRepeatingGroupIndex, isAllTagsInOneBuffer, isRepeatingGroupExists, isTagExists, isTagExists, mapPreparedTagInOrigStorage, mapTagInOrigStorage, markUnserializableTag, onEnlarge, preparedToByteArrayAndReturnNextPosition, preparedToByteArrayAndReturnNextPosition2, removeRepeatingGroup, removeRepeatingGroupAtIndex, removeTag, removeTagAtIndex, removeTagAtIndex, reserveTagAtIndex, reserveTagAtIndex, reserveTagAtIndexForRg, setOriginalBuffer, toByteArrayAndReturnNextPosition, transferDataToArena, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValue, updateValueAtIndex, updateValueAtIndex, updateValueAtIndex, updateValueAtIndex, updateValueAtIndex, updateValueAtIndex, updateValueAtIndex, updateValueAtIndex, updateValueAtIndex, updateValueAtIndex, updateValueAtIndex, updateValueAtIndex, updateValueAtIndex
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, iterator, spliterator
public static final int UNINITIALIZED_UID
protected long uid
protected com.epam.fix.message.AbstractFIXFieldList.TagValueIterator tagValueIterator
protected boolean forceCloneOnSend
protected boolean isFree
protected boolean isPreparedMessage
protected boolean isMessageIncomplete
public AbstractFIXFieldList()
setIsUserOwned(boolean)
public AbstractFIXFieldList(boolean isUserOwned)
setIsUserOwned(boolean)
@Deprecated public AbstractFIXFieldList(FIXFieldList message)
FIXFieldList
containing the elements of the specified collection.message
- - the collection whose fields are to be placed into this listpublic boolean isUserOwned()
setIsUserOwned(boolean)
public final boolean isPreparedMessage()
public final boolean isMessageIncomplete()
public final boolean isOriginatingFromPool()
protected abstract FIXFieldList makeStandalone()
protected void switchToStandalone()
public final int add(TagValue tagValue)
public final boolean addAll(FIXFieldList list)
public void clear()
clear
in class IndexedStorage
public final FIXFieldList deepCopyTo(FIXFieldList cloned)
protected boolean canCopyInPlace(int index, int oldLen, int newLen)
canCopyInPlace
in class IndexedStorage
protected boolean canCopyInPlaceNumber(int index, int oldLen, int newLen)
canCopyInPlaceNumber
in class IndexedStorage
public final int getTagNumAtIndex(int index)
public final int getTagLength(int tag) throws FieldNotFoundException
FieldNotFoundException
public final int calculateBodyLength()
public final int calculateChecksum()
public final String toString()
public final String toPrintableString()
@Deprecated public static String toPrintableString(String msg)
public final byte[] toByteArray()
public final boolean isMessageBufferContinuous()
public final int toByteArrayAndReturnNextPosition(byte[] dst, int offset)
origBuffer
, and returns the next index.
The SOH
symbol is added after each field.dst
- the origBufferoffset
- the offset in origBufferpublic final List<FIXFieldList> split(int tag)
tag
- the tag numberprotected abstract List<Map<Integer,FIXField>> notifyInvalidMessage(int rgTag, int rgFirstTag)
public final int getTagIndex(int tag)
getTagIndex
in class IndexedStorage
public final boolean removeTag(int tag)
removeTag
in class IndexedStorage
tag
- the fix tag.public boolean isEmpty()
public long getUid()
public void setUid(long uid)
public void initUid()
public void clearUid()
Copyright © 2000–2022 EPAM Systems. All rights reserved.