public class MessageStructure extends Object
Modifier and Type | Field and Description |
---|---|
protected ArrayList<Integer> |
lengths |
protected ArrayList<Integer> |
tagIds |
protected ArrayList<com.epam.fix.message.ValueType> |
types |
static int |
VARIABLE_LENGTH
Special value for defining the size of field with variable value length
|
Constructor and Description |
---|
MessageStructure() |
Modifier and Type | Method and Description |
---|---|
void |
append(MessageStructure struct)
Append fields to the end of current structure.
|
boolean |
containsTagId(int tag) |
boolean |
equals(Object o) |
int |
getLength(int index) |
int |
getSize() |
int |
getTagId(int index) |
com.epam.fix.message.ValueType |
getType(int index) |
int |
hashCode() |
int |
indexOf(int tagId) |
int |
indexOfTag(int tag) |
void |
merge(MessageStructure struct) |
void |
reserve(int tagId,
int length)
Specifies tagId and size of the tag value.
|
void |
reserve(int position,
int tagId,
int length)
Specifies tagId and size of the tag value.
|
void |
reserveLong(int tagId,
int length) |
void |
reserveLong(int position,
int tagId,
int length) |
void |
reserveString(int tagId) |
void |
reserveString(int tagId,
int length) |
void |
reserveString(int position,
int tagId,
int length) |
void |
setLength(int tagId,
int length)
Change the length for specific tag.
|
void |
setLength(int tagId,
int occurance,
int length)
Change the length for specific tag.
|
void |
setLengthAtIndex(int tagIndex,
int length) |
void |
setType(int tagId,
int occurance,
com.epam.fix.message.ValueType type) |
void |
setType(int tagId,
com.epam.fix.message.ValueType type) |
void |
setTypeAtIndex(int tagIndex,
com.epam.fix.message.ValueType type) |
public static final int VARIABLE_LENGTH
protected ArrayList<com.epam.fix.message.ValueType> types
public void reserve(int tagId, int length)
tagId
- tagIdlength
- required amount of bytes for value or MessageStructure.VARIABLE_LENGTH.public void reserveString(int tagId)
public void reserveString(int tagId, int length)
public void reserveLong(int tagId, int length)
public void reserve(int position, int tagId, int length)
position
- position to insent the tagtagId
- tagIdlength
- required amount of bytes for value or MessageStructure.VARIABLE_LENGTH.reserve(int, int)
public void reserveString(int position, int tagId, int length)
public void reserveLong(int position, int tagId, int length)
public int getTagId(int index)
public int getLength(int index)
public com.epam.fix.message.ValueType getType(int index)
public int getSize()
public boolean containsTagId(int tag)
public int indexOfTag(int tag)
public void append(MessageStructure struct)
struct
- public void merge(MessageStructure struct)
public int indexOf(int tagId)
public void setLength(int tagId, int length)
tagId
- length
- required amount of bytes for value or MessageStructure.VARIABLE_LENGTH.public void setLength(int tagId, int occurance, int length)
tagId
- occurance
- length
- required amount of bytes for value or MessageStructure.VARIABLE_LENGTH.public void setLengthAtIndex(int tagIndex, int length)
public void setType(int tagId, com.epam.fix.message.ValueType type)
public void setType(int tagId, int occurance, com.epam.fix.message.ValueType type)
public void setTypeAtIndex(int tagIndex, com.epam.fix.message.ValueType type)
Copyright © 2000–2022 EPAM Systems. All rights reserved.