|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.epam.fix.message.MessageStructure
public class MessageStructure
User: Aliaksei_Kurnosau Date: 6/1/12 Time: 11:52 PM
Field Summary | |
---|---|
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 Summary | |
---|---|
MessageStructure()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int VARIABLE_LENGTH
protected ArrayList<Integer> tagIds
protected ArrayList<Integer> lengths
protected ArrayList<com.epam.fix.message.ValueType> types
Constructor Detail |
---|
public MessageStructure()
Method Detail |
---|
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)
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |