|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.epam.fix.message.IndexedStorage com.epam.fix.message.ExtendedIndexedStorage com.epam.fix.message.AbstractFIXFieldList
public abstract class AbstractFIXFieldList
Created with IntelliJ IDEA. User: wed Date: 19.10.12 Time: 17:55 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 boolean |
forceCloneOnSend
|
protected boolean |
isFree
|
protected boolean |
isMessageIncomplete
|
protected boolean |
isPreparedMessage
|
protected com.epam.fix.message.AbstractFIXFieldList.TagValueIterator |
tagValueIterator
|
Fields inherited from class com.epam.fix.message.IndexedStorage |
---|
FIELD_SEPARATOR, NOTFOUND |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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()
|
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 |
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. |
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 |
toString()
Converts collection of fix fields to string. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Field Detail |
---|
protected com.epam.fix.message.AbstractFIXFieldList.TagValueIterator tagValueIterator
protected boolean forceCloneOnSend
protected boolean isFree
protected boolean isPreparedMessage
protected boolean isMessageIncomplete
Constructor Detail |
---|
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 listMethod Detail |
---|
public 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()
toString
in class Object
public final byte[] toByteArray()
public final boolean isMessageBufferContinuous()
public final int toByteArrayAndReturnNextPosition(byte[] dst, int offset)
origBuffer
, and returns the next index.SOH
symbol is added after each field.
dst
- the origBufferoffset
- the offset in origBufferpublic final List<FIXFieldList> split(int tag)
tag
- the tag number
protected 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 boolean equals(Object o)
equals
in class Object
protected Iterator<TagValue> getTagValueIterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |