DefaultSeparator
Constructor and Description |
---|
Message()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
IMessage |
clone()
Creates a copy of the message instance, including part of underlying byte array with message data.
|
ScaledDecimal |
createNullDecimal(int tag,
ScaledDecimal ref)
Create null value for the given field.
|
MonthYear |
createNullMonthYear(int tag,
MonthYear ref)
Creates null MonthYear object.
|
SbeTimestamp |
createNullTimestamp(int tag,
SbeTimestamp ref)
Creates null MonthYear object.
|
boolean |
getBoolean(int tag)
Gets field value by tag.
|
byte[] |
getBuffer()
Byte array, which contains field set data.
|
char |
getChar(int tag)
Gets field value by tag.
|
<T> T |
getCustomComposite(int tag,
T ref)
Gets custom composite field value by tag.
|
ScaledDecimal |
getDecimal(int tag)
Gets field value by tag.
|
int |
getDynamicOffset()
IMessage implementation
|
MonthYear |
getMonthYear(int tag)
Gets date field value by tag.
|
abstract int |
getMsgSize()
Gets message size.
|
int |
getOffset()
Returns field set offset in the buffer.
|
IFieldSet |
getParent()
Returns field set parent.
|
int |
getSize()
Returns size of the buffer, available for field set.
|
short |
getUnsignedByte(int tag)
Gets field value by tag.
|
long |
getUnsignedInt(int tag)
Gets field value by tag.
|
BigInteger |
getUnsignedLong(int tag)
Gets field value by tag.
|
int |
getUnsignedShort(int tag)
Gets field value by tag.
|
int |
getVersion() |
boolean |
isNullDecimal(int tag,
ScaledDecimal value)
Checks if the value represents null for the field with the given tag.
|
boolean |
isNullMonthYear(int tag,
MonthYear value)
Checks if the value represents null for the field with the given tag.
|
boolean |
isNullTimestamp(int tag,
SbeTimestamp value)
Checks if the value represents null for the field with the given tag.
|
void |
notifyBufferUpdate(byte[] data,
int pointOfModify,
int sizeDelta)
Internal method.
|
abstract void |
notifyFieldSetBufferUpdate(byte[] data,
int pointOfModify,
int sizeDelta) |
void |
setBoolean(int tag,
boolean value)
Sets field value by tag.
|
void |
setByte(int tag,
int value)
Sets field value by tag.
|
void |
setChar(int tag,
char value)
Sets field value by tag.
|
<T> void |
setCustomComposite(int tag,
T value)
Sets field value by tag.
|
void |
setShort(int tag,
int value)
Sets field value by tag.
|
void |
setUnsignedByte(int tag,
int value)
Sets field value by tag.
|
void |
setUnsignedByte(int tag,
short value)
Sets field value by tag.
|
void |
setUnsignedInt(int tag,
long value)
Sets field value by tag.
|
void |
setUnsignedLong(int tag,
BigInteger value)
Sets field value by tag.
|
void |
setUnsignedShort(int tag,
int value)
Sets field value by tag.
|
String |
toFixString(char separator)
Returns FIX string representation of the field set.
|
String |
toString() |
<T> boolean |
tryGetCustomComposite(int tag,
T ref)
Tries to get composite field value by tag.
|
boolean |
tryGetUnsignedByte(int tag,
AtomicInteger ref)
Gets field value by tag.
|
boolean |
tryGetUnsignedInt(int tag,
AtomicLong ref)
Gets field value by tag.
|
BigInteger |
tryGetUnsignedLong(int tag)
Gets field value by tag.
|
boolean |
tryGetUnsignedShort(int tag,
AtomicInteger ref)
Gets field value by tag.
|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getFixedBlockLength, getSemanticType, getTemplateId, getVersion, load
contains, createEmptyStandardComposite, createNullDecimal, createNullMonthYear, createNullTimestamp, dataTags, fieldTags, getBoolean, getByte, getBytes, getChar, getCustomComposite, getDecimal, getDecimal, getGroup, getInt, getLong, getMonthYear, getMonthYear, getParent, getShort, getString, getTimestamp, getUnsignedByte, getUnsignedInt, getUnsignedLong, getUnsignedShort, getValuePtr, getVarData, groupTags, hasFieldTag, hasGroupTag, hasTag, hasVarDataTag, init, isNullDecimal, isNullMonthYear, isNullStandardComposite, isNullTimestamp, load, reset, setBoolean, setByte, setByte, setBytes, setChar, setCustomComposite, setDecimal, setInt, setLong, setMonthYear, setShort, setShort, setString, setTimestamp, setUnsignedByte, setUnsignedByte, setUnsignedInt, setUnsignedLong, setUnsignedShort, setVarData, tryGetBoolean, tryGetByte, tryGetBytes, tryGetChar, tryGetCustomComposite, tryGetDecimal, tryGetGroup, tryGetInt, tryGetLong, tryGetMonthYear, tryGetShort, tryGetString, tryGetTimestamp, tryGetUnsignedByte, tryGetUnsignedInt, tryGetUnsignedLong, tryGetUnsignedShort, tryGetValuePtr, tryGetVarData
public int getSize()
IFieldSet
public int getOffset()
IFieldSet
public byte[] getBuffer()
IFieldSet
public abstract int getMsgSize()
getMsgSize
in interface IMessage
public String toFixString(char separator)
IFieldSet
toFixString
in interface IFieldSet
separator
- for fieldspublic int getDynamicOffset()
getDynamicOffset
in interface IMessage
public IMessage clone()
public void notifyBufferUpdate(byte[] data, int pointOfModify, int sizeDelta)
public IFieldSet getParent()
IFieldSet
public void setBoolean(int tag, boolean value)
IFieldSet
setBoolean
in interface IFieldSet
tag
- - integer tag id of the field.value
- - value of the field.public boolean getBoolean(int tag)
IFieldSet
getBoolean
in interface IFieldSet
tag
- - integer tag id of the field.public void setChar(int tag, char value)
IFieldSet
public char getChar(int tag)
IFieldSet
public void setByte(int tag, int value)
IFieldSet
public void setShort(int tag, int value)
IFieldSet
public short getUnsignedByte(int tag)
IFieldSet
getUnsignedByte
in interface IFieldSet
tag
- - integer tag id of the field.public boolean tryGetUnsignedByte(int tag, AtomicInteger ref)
IFieldSet
tryGetUnsignedByte
in interface IFieldSet
tag
- - integer tag id of the fieldref
- - reference type variable to store return value of the fieldpublic void setUnsignedByte(int tag, short value)
IFieldSet
setUnsignedByte
in interface IFieldSet
tag
- - integer tag id of the field.value
- - value of the field.public void setUnsignedByte(int tag, int value)
IFieldSet
setUnsignedByte
in interface IFieldSet
tag
- - integer tag id of the field.value
- - value of the field.public int getUnsignedShort(int tag)
IFieldSet
getUnsignedShort
in interface IFieldSet
tag
- - integer tag id of the field.public boolean tryGetUnsignedShort(int tag, AtomicInteger ref)
IFieldSet
tryGetUnsignedShort
in interface IFieldSet
tag
- - integer tag id of the fieldref
- - reference type variable to store return value of the fieldpublic void setUnsignedShort(int tag, int value)
IFieldSet
setUnsignedShort
in interface IFieldSet
tag
- - integer tag id of the field.value
- - value of the field.public long getUnsignedInt(int tag)
IFieldSet
getUnsignedInt
in interface IFieldSet
tag
- - integer tag id of the field.public boolean tryGetUnsignedInt(int tag, AtomicLong ref)
IFieldSet
tryGetUnsignedInt
in interface IFieldSet
tag
- - integer tag id of the fieldref
- - reference type variable to store return value of the fieldpublic void setUnsignedInt(int tag, long value)
IFieldSet
setUnsignedInt
in interface IFieldSet
tag
- - integer tag id of the field.value
- - value of the field.public BigInteger getUnsignedLong(int tag)
IFieldSet
getUnsignedLong
in interface IFieldSet
tag
- - integer tag id of the field.public BigInteger tryGetUnsignedLong(int tag)
IFieldSet
tryGetUnsignedLong
in interface IFieldSet
tag
- - integer tag id of the fieldpublic void setUnsignedLong(int tag, BigInteger value)
IFieldSet
setUnsignedLong
in interface IFieldSet
tag
- - integer tag id of the field.value
- - value of the field.public ScaledDecimal getDecimal(int tag)
IFieldSet
getDecimal
in interface IFieldSet
tag
- - integer tag id of the field.public MonthYear getMonthYear(int tag)
IFieldSet
getMonthYear
in interface IFieldSet
tag
- - integer tag id of the field.public int getVersion()
public ScaledDecimal createNullDecimal(int tag, ScaledDecimal ref)
IFieldSet
createNullDecimal
in interface IFieldSet
tag
- Tag of the field which null value is requested.ref
- Object to fill (optional)public boolean isNullDecimal(int tag, ScaledDecimal value)
IFieldSet
isNullDecimal
in interface IFieldSet
tag
- Tag of the field.value
- Value to check.public MonthYear createNullMonthYear(int tag, MonthYear ref)
IFieldSet
createNullMonthYear
in interface IFieldSet
tag
- field of the MonthYear type.ref
- object to fill with null data.public boolean isNullMonthYear(int tag, MonthYear value)
IFieldSet
isNullMonthYear
in interface IFieldSet
tag
- Tag of the field.value
- Value to check.public SbeTimestamp createNullTimestamp(int tag, SbeTimestamp ref)
IFieldSet
createNullTimestamp
in interface IFieldSet
tag
- field of the MonthYear type.ref
- object to fill with null data.public boolean isNullTimestamp(int tag, SbeTimestamp value)
IFieldSet
isNullTimestamp
in interface IFieldSet
tag
- Tag of the field.value
- Value to check.public <T> T getCustomComposite(int tag, T ref)
IFieldSet
getCustomComposite
in interface IFieldSet
T
- Type of the custom composite.tag
- Tag of teh fieldref
- Custom composite object to fill.public <T> boolean tryGetCustomComposite(int tag, T ref)
IFieldSet
tryGetCustomComposite
in interface IFieldSet
tag
- - integer tag id of the field.ref
- - variable to store the field value.
ref cannot be null. Value of ref will be rewritten.public <T> void setCustomComposite(int tag, T value)
IFieldSet
setCustomComposite
in interface IFieldSet
tag
- - integer tag id of the field.value
- - value of the field.public abstract void notifyFieldSetBufferUpdate(byte[] data, int pointOfModify, int sizeDelta)
Copyright © 2005–2024 Onix Solutions. All rights reserved.