public class EntryImpl extends Object
Modifier and Type | Field and Description |
---|---|
protected ArrayList<RepeatingGroup> |
allocatedSubGroups |
protected boolean |
deleted |
protected EntriesArray |
entriesArray |
protected int |
entryIndex |
protected RepeatingGroup |
group |
protected gnu.trove.set.hash.TIntHashSet |
groupTags |
protected gnu.trove.set.hash.TIntHashSet |
nestedLeadingTags |
protected gnu.trove.set.hash.TIntHashSet |
outerLeadingTags |
protected boolean |
releaseNeeded |
protected RepeatingGroupArray |
rgArray |
protected RepeatingGroupStorage |
rgStorage |
protected IndexedStorage |
storage |
Constructor and Description |
---|
EntryImpl() |
Modifier and Type | Method and Description |
---|---|
RepeatingGroup |
addRepeatingGroup(int leadingTag)
Adds sub group to entry.
|
RepeatingGroup |
addRepeatingGroup(int leadingTag,
boolean validation)
Adds sub group to entry.
|
void |
addRepeatingGroup(int leadingTag,
boolean validation,
RepeatingGroup subGroup)
Adds sub group to entry.
|
void |
addRepeatingGroup(int leadingTag,
RepeatingGroup group) |
int |
addTag(int tag,
boolean value)
Adds tag to entry.
|
int |
addTag(int tag,
byte[] value)
Adds tag to entry.
|
int |
addTag(int tag,
byte[] value,
int offset,
int length)
Adds tag to entry.
|
int |
addTag(int tag,
Calendar value,
FIXDateFormatterFactory.FIX_DATE_TYPE type)
Adds tag to entry.
|
int |
addTag(int tag,
CharSequence value)
Adds tag to entry.
|
int |
addTag(int tag,
double value,
int precision)
Adds tag to entry.
|
int |
addTag(int tag,
long value)
Adds tag to entry.
|
int |
addTag(TagValue tagValue)
Adds tagValue to entry.
|
void |
clear() |
RepeatingGroup |
copyRepeatingGroup(RepeatingGroup source)
Copy repeating group to entry
|
void |
copyRepeatingGroup(RepeatingGroup source,
RepeatingGroup dst)
Copy repeating group to entry
|
int |
getEntryIndex()
Returns entry index in FIX message
|
RepeatingGroup |
getGroup()
Returns group which owns entry
|
RepeatingGroup |
getOrAddRepeatingGroup(int leadingTag)
Returns repeating group from entry by leading tag.
|
void |
getOrAddRepeatingGroup(int leadingTag,
RepeatingGroup group)
Fills passed repeating group instance by data from entry.
|
RepeatingGroup |
getRepeatingGroup(int leadingTag)
Returns repeating group from entry by leading tag
|
void |
getRepeatingGroup(int leadingTag,
RepeatingGroup group)
Fills passed repeating group instance by data from entry
|
RepeatingGroup |
getRepeatingGroupAtIndex(int index)
Returns repeating group
|
void |
getRepeatingGroupAtIndex(int index,
RepeatingGroup group)
Fills repeating group by repeating group data
|
int |
getSize()
Returns number of added tag in entry
|
void |
getTag(int tag,
TagValue dest)
Fills passed TagValue object by tag data
|
void |
getTagAtIndex(int index,
TagValue dest)
Fills passed TagValue object by tag data from index
|
int |
getTagIndex(int tag) |
boolean |
getTagValueAsBool(int tag)
Returns tag value as boolean
|
boolean |
getTagValueAsBoolAtIndex(int index)
Returns tag value as boolean
|
byte |
getTagValueAsByte(int tag)
Returns first byte of tag value
|
byte |
getTagValueAsByte(int tag,
int offset)
Returns byte of tag value at offset
|
byte |
getTagValueAsByteAtIndex(int index)
Returns first byte of tag value
|
byte |
getTagValueAsByteAtIndex(int index,
int offset)
Returns byte of tag value at offset
|
byte[] |
getTagValueAsBytes(int tag)
Returns tag value as byte array
|
int |
getTagValueAsBytes(int tag,
byte[] dest,
int offset)
Returns tag value as byte array
|
byte[] |
getTagValueAsBytesAtIndex(int index)
Returns tag value as byte array
|
int |
getTagValueAsBytesAtIndex(int index,
byte[] dest,
int offset)
Returns tag value as byte array
|
double |
getTagValueAsDouble(int tag)
Returns tag value as double
|
double |
getTagValueAsDoubleAtIndex(int index)
Returns tag value as double
|
long |
getTagValueAsLong(int tag)
Returns tag value as long
|
long |
getTagValueAsLongAtIndex(int index)
Returns tag value as long
|
String |
getTagValueAsString(int tag)
Returns tag value as string
|
String |
getTagValueAsStringAtIndex(int index)
Returns tag value as string
|
void |
getTagValueAsStringBuff(int tag,
StringBuffer str)
Fills passed StringBuffer by tag value
|
void |
getTagValueAsStringBuffAtIndex(int index,
StringBuffer str)
Fills passed StringBuffer by tag value
|
boolean |
isEmpty() |
boolean |
isGroupTag(int tag)
Checks whether tag is leading tag of group
|
boolean |
isGroupTagAtIndex(int index)
Checks whether tag is group tag at index
|
boolean |
isRepeatingGroupExists(int leadingTag)
Checks is entry contains nested group with passed leading tag.
|
boolean |
isTagExists(int tag)
Returns true if tag exists in entry
|
boolean |
removeRepeatingGroup(int leadingTag)
Removes repeating group from entry
|
boolean |
removeRepeatingGroupAtIndex(int index)
Removes repeating group from entry
|
boolean |
removeTag(int tag)
Removes tag from entry
|
boolean |
removeTagAtIndex(int index)
Removes tag from entry by index
|
int |
size()
Returns number of added tag in entry
|
byte[] |
toByteArray() |
String |
toPrintableString() |
String |
toString() |
int |
updateValue(int tag,
boolean value,
IndexedStorage.MISSING_TAG_HANDLING addIfNotExists)
Updates tag value
|
int |
updateValue(int tag,
byte[] value,
IndexedStorage.MISSING_TAG_HANDLING addIfNotExists)
Updates tag value
|
int |
updateValue(int tag,
byte[] value,
int offset,
int length,
IndexedStorage.MISSING_TAG_HANDLING addIfNotExists)
Updates tag value
|
int |
updateValue(int tag,
Calendar value,
FIXDateFormatterFactory.FIX_DATE_TYPE type,
IndexedStorage.MISSING_TAG_HANDLING addIfNotExists)
Updates tag value
|
int |
updateValue(int tag,
CharSequence strBuffer,
IndexedStorage.MISSING_TAG_HANDLING addIfNotExists)
Updates tag value
|
int |
updateValue(int tag,
double value,
int precision,
IndexedStorage.MISSING_TAG_HANDLING addIfNotExists)
Updates tag value
|
int |
updateValue(int tag,
long value,
IndexedStorage.MISSING_TAG_HANDLING addIfNotExists)
Updates tag value
|
int |
updateValue(TagValue tagValue,
IndexedStorage.MISSING_TAG_HANDLING addIfNotExists)
Updates tagValue
|
protected IndexedStorage storage
protected RepeatingGroup group
protected int entryIndex
protected gnu.trove.set.hash.TIntHashSet groupTags
protected gnu.trove.set.hash.TIntHashSet outerLeadingTags
protected gnu.trove.set.hash.TIntHashSet nestedLeadingTags
protected ArrayList<RepeatingGroup> allocatedSubGroups
protected boolean releaseNeeded
protected boolean deleted
protected RepeatingGroupStorage rgStorage
protected RepeatingGroupArray rgArray
protected EntriesArray entriesArray
public RepeatingGroup addRepeatingGroup(int leadingTag)
leadingTag
- leading tag for repeating group.public void addRepeatingGroup(int leadingTag, RepeatingGroup group)
public RepeatingGroup addRepeatingGroup(int leadingTag, boolean validation)
leadingTag
- leading tag for repeating group.validation
- turn on/off validationpublic void addRepeatingGroup(int leadingTag, boolean validation, RepeatingGroup subGroup)
leadingTag
- leading tag for repeating group.validation
- turn on/off validation.subGroup
- group for further work.public int addTag(TagValue tagValue)
tagValue
- value for add.public int addTag(int tag, byte[] value)
tag
- tag for addvalue
- value for addpublic int addTag(int tag, boolean value)
tag
- tag for addvalue
- value for addpublic int addTag(int tag, byte[] value, int offset, int length)
tag
- value
- byte array for addoffset
- offset in passed arraylength
- length of array that will be addedpublic int addTag(int tag, double value, int precision)
tag
- tag for addvalue
- value for addprecision
- precision of value roundingpublic int addTag(int tag, long value)
tag
- tag for addvalue
- value for addpublic int addTag(int tag, CharSequence value)
tag
- tag for addvalue
- value for addpublic int addTag(int tag, Calendar value, FIXDateFormatterFactory.FIX_DATE_TYPE type)
tag
- tag for addvalue
- value for addtype
- type of datepublic int updateValue(TagValue tagValue, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists)
tagValue
- tagValue for updateaddIfNotExists
- determines the behavior in case if tag is not existspublic int updateValue(int tag, byte[] value, int offset, int length, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists)
tag
- tag for updatevalue
- new value for tagoffset
- offset in passed arraylength
- length of array that will be addedaddIfNotExists
- determines the behavior in case if tag is not existspublic int updateValue(int tag, byte[] value, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists)
tag
- tag for updatevalue
- new value for tagaddIfNotExists
- determines the behavior in case if tag is not existspublic int updateValue(int tag, long value, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists)
tag
- tag for updatevalue
- new value for tagaddIfNotExists
- determines the behavior in case if tag is not existspublic int updateValue(int tag, double value, int precision, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists)
tag
- tag for updatevalue
- new value for tagprecision
- precision of value roundingaddIfNotExists
- determines the behavior in case if tag is not existspublic int updateValue(int tag, CharSequence strBuffer, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists)
tag
- tag for updatestrBuffer
- new value for tagaddIfNotExists
- determines the behavior in case if tag is not existspublic int updateValue(int tag, boolean value, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists)
tag
- tag for updatevalue
- new value for tagaddIfNotExists
- determines the behavior in case if tag is not existspublic int updateValue(int tag, Calendar value, FIXDateFormatterFactory.FIX_DATE_TYPE type, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists)
tag
- tag for updatevalue
- new value for tagtype
- type of dateaddIfNotExists
- determines the behavior in case if tag is not existspublic boolean isTagExists(int tag)
tag
- tag for checkpublic void getTag(int tag, TagValue dest)
tag
- tag for finddest
- object for fillpublic String getTagValueAsString(int tag)
tag
- tag for findpublic byte[] getTagValueAsBytes(int tag)
tag
- tag for findpublic int getTagValueAsBytes(int tag, byte[] dest, int offset)
tag
- tag for finddest
- array for filloffset
- start index in passed array from which array will filledpublic byte getTagValueAsByte(int tag)
tag
- tag for findpublic byte getTagValueAsByte(int tag, int offset)
tag
- tag for findpublic boolean getTagValueAsBool(int tag)
tag
- tag for findpublic double getTagValueAsDouble(int tag)
tag
- tag for findpublic long getTagValueAsLong(int tag)
tag
- tag for findpublic void getTagValueAsStringBuff(int tag, StringBuffer str)
tag
- tag for findstr
- buffer for filledpublic void getTagAtIndex(int index, TagValue dest)
index
- number of tag in entry (not in entire FIX message)dest
- object for fillpublic String getTagValueAsStringAtIndex(int index)
index
- number of tag in entry (not in entire FIX message)public byte[] getTagValueAsBytesAtIndex(int index)
index
- number of tag in entry (not in entire FIX message)public int getTagValueAsBytesAtIndex(int index, byte[] dest, int offset)
index
- number of tag in entry (not in entire FIX message)dest
- array for filloffset
- start index in passed array from which array will filledpublic byte getTagValueAsByteAtIndex(int index)
index
- number of tag in entry (not in entire FIX message)public byte getTagValueAsByteAtIndex(int index, int offset)
index
- number of tag in entry (not in entire FIX message)public boolean getTagValueAsBoolAtIndex(int index)
index
- number of tag in entry (not in entire FIX message)public double getTagValueAsDoubleAtIndex(int index)
index
- number of tag in entry (not in entire FIX message)public long getTagValueAsLongAtIndex(int index)
index
- number of tag in entry (not in entire FIX message)public void getTagValueAsStringBuffAtIndex(int index, StringBuffer str)
index
- number of tag in entry (not in entire FIX message)str
- buffer for filledpublic RepeatingGroup getRepeatingGroupAtIndex(int index)
index
- number of leading tag of group in entry (not in entire FIX message)public void getRepeatingGroupAtIndex(int index, RepeatingGroup group)
index
- number of leading tag of group in entry (not in entire FIX message)group
- repeating group object for fillpublic boolean removeTag(int tag)
tag
- tag for removepublic boolean removeTagAtIndex(int index)
index
- number of tag in entry (not in entire FIX message)public boolean removeRepeatingGroup(int leadingTag)
leadingTag
- leading tag of repeating grouppublic boolean removeRepeatingGroupAtIndex(int index)
index
- index of leading tag group in entry (not in entire FIX message)public RepeatingGroup getOrAddRepeatingGroup(int leadingTag)
leadingTag
- leading tag for repeating grouppublic void getOrAddRepeatingGroup(int leadingTag, RepeatingGroup group)
leadingTag
- leading tag for repeating groupgroup
- repeating group object for fillpublic boolean isRepeatingGroupExists(int leadingTag)
leadingTag
- leading tag for checkpublic boolean isGroupTag(int tag)
tag
- tag for checkpublic boolean isGroupTagAtIndex(int index)
index
- number of tag in entry (not in entire FIX message)public int getTagIndex(int tag)
public void clear()
public RepeatingGroup getRepeatingGroup(int leadingTag)
leadingTag
- leading tag for repeating grouppublic void getRepeatingGroup(int leadingTag, RepeatingGroup group)
leadingTag
- leading tag for repeating groupgroup
- repeating group object for fillpublic String toPrintableString()
public int getSize()
public int size()
public RepeatingGroup getGroup()
public boolean isEmpty()
public int getEntryIndex()
public byte[] toByteArray()
public RepeatingGroup copyRepeatingGroup(RepeatingGroup source)
source
- repeating group for copypublic void copyRepeatingGroup(RepeatingGroup source, RepeatingGroup dst)
source
- repeating group for copydst
- entry for hold copied repeating groupCopyright © 2000–2022 EPAM Systems. All rights reserved.