Modifier and Type | Field and Description |
---|---|
static char |
DefaultSeparator |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(int tag)
Returns true if field belongs to field set and has not null value.
|
Object |
createEmptyStandardComposite(int tag,
Object ref)
Creates null object of the standard composite type.
|
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.
|
int[] |
dataTags()
Returns ids of number of instances tags of variadic-length fields, belonging to this field set.
|
int[] |
fieldTags()
Returns ids of all fields
|
boolean |
getBoolean(int tag)
Gets field value by tag.
|
byte[] |
getBuffer()
Byte array, which contains field set data.
|
byte |
getByte(int tag)
Gets field value by tag.
|
byte[] |
getBytes(int tag)
Gets raw field value by tag.
|
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.
|
ScaledDecimal |
getDecimal(int tag,
ScaledDecimal ref)
Gets field value by tag.
|
IGroup |
getGroup(int tag)
Gets repeating group.
|
int |
getInt(int tag)
Gets field value by tag.
|
long |
getLong(int tag)
Gets field value by tag.
|
MonthYear |
getMonthYear(int tag)
Gets date field value by tag.
|
MonthYear |
getMonthYear(int tag,
MonthYear ref)
Gets date field value by tag.
|
int |
getOffset()
Returns field set offset in the buffer.
|
IFieldSet |
getParent()
Returns field set parent.
|
short |
getShort(int tag)
Gets field value by tag.
|
int |
getSize()
Returns size of the buffer, available for field set.
|
String |
getString(int tag)
Gets field value by tag.
|
SbeTimestamp |
getTimestamp(int tag,
SbeTimestamp ref) |
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.
|
ValuePtr |
getValuePtr(int tag)
Gets raw field value by tag.
|
byte[] |
getVarData(int tag)
Gets VarDataField field value by tag.
|
int[] |
groupTags()
Returns ids of number of instances tags of repeating groups, belonging to this field set.
|
boolean |
hasFieldTag(int tag)
Checks if the field set contains fixed-size field with the tag.
|
boolean |
hasGroupTag(int tag)
Checks if the field set contains repeating group with the tag.
|
boolean |
hasTag(int tag)
Checks if the field set contains the tag.
|
boolean |
hasVarDataTag(int tag)
Checks if the field set contains variadic-length field with the tag.
|
void |
init(byte[] data,
int offset,
int size)
Writes header fields and initialize repeating groups and VarDataField fields.
|
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 |
isNullStandardComposite(int tag,
Object ref)
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 |
load(byte[] data,
int offset,
int size,
int version)
Loads header fields and initialize repeating groups and VarDataField fields.
|
void |
reset(int tag)
Resets value of the field to its null value if field is optional or to its default value if field is required.
|
void |
setBoolean(int tag,
boolean value)
Sets field value by tag.
|
void |
setByte(int tag,
byte value)
Sets field value by tag.
|
void |
setByte(int tag,
int value)
Sets field value by tag.
|
void |
setBytes(int tag,
byte[] value)
Set raw 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 |
setDecimal(int tag,
ScaledDecimal value)
Sets field value by tag.
|
void |
setInt(int tag,
int value)
Sets field value by tag.
|
void |
setLong(int tag,
long value)
Sets field value by tag.
|
void |
setMonthYear(int tag,
MonthYear value)
Sets field value by tag.
|
void |
setShort(int tag,
int value)
Sets field value by tag.
|
void |
setShort(int tag,
short value)
Sets field value by tag.
|
void |
setString(int tag,
CharSequence value)
Sets field value by tag.
|
void |
setTimestamp(int tag,
SbeTimestamp value) |
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.
|
void |
setVarData(int tag,
byte[] value)
Sets VarDataField field value by tag.
|
String |
toFixString(char separator)
Returns FIX string representation of the field set.
|
boolean |
tryGetBoolean(int tag,
AtomicBoolean ref)
Gets field value by tag.
|
boolean |
tryGetByte(int tag,
AtomicInteger ref)
Gets field value by tag.
|
byte[] |
tryGetBytes(int tag)
Gets raw field value.
|
boolean |
tryGetChar(int tag,
AtomicInteger ref)
Gets field value by tag.
|
<T> boolean |
tryGetCustomComposite(int tag,
T ref)
Tries to get composite field value by tag.
|
boolean |
tryGetDecimal(int tag,
ScaledDecimal ref)
Gets decimal field value by tag.
|
IGroup |
tryGetGroup(int tag)
Gets repeating group.
|
boolean |
tryGetInt(int tag,
AtomicInteger ref)
Gets field value by tag.
|
boolean |
tryGetLong(int tag,
AtomicLong ref)
Gets field value by tag.
|
boolean |
tryGetMonthYear(int tag,
MonthYear o)
Gets date field value by tag.
|
boolean |
tryGetShort(int tag,
AtomicInteger ref)
Gets field value by tag.
|
String |
tryGetString(int tag)
Gets field value by tag.
|
boolean |
tryGetTimestamp(int tag,
SbeTimestamp ref) |
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.
|
boolean |
tryGetValuePtr(int tag,
ValuePtr ref)
Gets raw field value.
|
byte[] |
tryGetVarData(int tag)
Gets VarDataField field value.
|
static final char DefaultSeparator
int getSize()
int getOffset()
byte[] getBuffer()
void load(byte[] data, int offset, int size, int version)
data
- byte array, which contains field set dataoffset
- field set offset in the buffersize
- size of the buffer, available for field setversion
- version of the field set in the schemavoid init(byte[] data, int offset, int size)
data
- byte array, which contains field set dataoffset
- field set offset in the buffersize
- size of the buffer, available for field setboolean contains(int tag)
tag
- field idint[] fieldTags()
int[] groupTags()
int[] dataTags()
boolean getBoolean(int tag)
tag
- - integer tag id of the field.TagNotFoundException
- if field is not foundTypeCastException
- if requested field cannot be casted to booleanchar getChar(int tag)
tag
- - integer tag id of the field.TagNotFoundException
- if field is not foundTypeCastException
- if requested field cannot be casted to charbyte getByte(int tag)
tag
- - integer tag id of the field.TagNotFoundException
- if field is not foundTypeCastException
- if requested field cannot be casted to byteshort getUnsignedByte(int tag)
tag
- - integer tag id of the field.TagNotFoundException
- if field is not foundTypeCastException
- if requested field cannot be casted to byteshort getShort(int tag)
tag
- - integer tag id of the field.TagNotFoundException
- if field is not foundTypeCastException
- if requested field cannot be casted to shortint getUnsignedShort(int tag)
tag
- - integer tag id of the field.TagNotFoundException
- if field is not foundTypeCastException
- if requested field cannot be casted to shortint getInt(int tag)
tag
- - integer tag id of the field.TagNotFoundException
- if field is not foundTypeCastException
- if requested field cannot be casted to integerlong getUnsignedInt(int tag)
tag
- - integer tag id of the field.TagNotFoundException
- if field is not foundTypeCastException
- if requested field cannot be casted to integerlong getLong(int tag)
tag
- - integer tag id of the field.TagNotFoundException
- if field is absent in the FieldSetTypeCastException
- if requested field cannot be casted to longBigInteger getUnsignedLong(int tag)
tag
- - integer tag id of the field.TagNotFoundException
- if field is absent in the FieldSetTypeCastException
- if requested field cannot be casted to longString getString(int tag)
tag
- - integer tag id of the field.TagNotFoundException
- if field is absent in the FieldSetTypeCastException
- if requested field cannot be casted to StringScaledDecimal getDecimal(int tag, ScaledDecimal ref)
tag
- - integer tag id of the field.ref
- - variable to store the field value. the function will return this parameter.
o cannot be null. Value of o will be rewritten.TagNotFoundException
- if field is absent in the FieldSetTypeCastException
- if requested field cannot be casted to ScaledDecimalScaledDecimal getDecimal(int tag)
tag
- - integer tag id of the field.TagNotFoundException
- if field is absent in the FieldSetTypeCastException
- if requested field cannot be casted to ScaledDecimalMonthYear getMonthYear(int tag, MonthYear ref)
tag
- - integer tag id of the field.ref
- - variable to store the field value. the function will return this parameter.
o cannot be null. Value of o will be rewritten.TagNotFoundException
- if field is absent in the FieldSetTypeCastException
- if requested field cannot be casted to MonthYearMonthYear getMonthYear(int tag)
tag
- - integer tag id of the field.TagNotFoundException
- if field is absent in the FieldSetTypeCastException
- if requested field cannot be casted to MonthYearbyte[] getVarData(int tag)
tag
- - integer tag id of the field.TagNotFoundException
- if field is absent in the FieldSet.TypeCastException
- if requested field is not variable length data field.byte[] getBytes(int tag)
tag
- - integer tag id of the field.TagNotFoundException
- if field is absent in the FieldSet.ValuePtr getValuePtr(int tag)
tag
- - integer tag id of the field.TagNotFoundException
- if field is absent in the FieldSet.void setBoolean(int tag, boolean value)
tag
- - integer tag id of the field.value
- - value of the field.TagNotFoundException
- if field is not foundTypeCastException
- if value cannot be casted to field typevoid setChar(int tag, char value)
tag
- - integer tag id of the field.value
- - value of the field.TagNotFoundException
- if field is not foundTypeCastException
- if value cannot be casted to field typevoid setByte(int tag, byte value)
tag
- - integer tag id of the field.value
- - value of the field.TagNotFoundException
- if field is not foundTypeCastException
- if value cannot be casted to field typevoid setByte(int tag, int value)
tag
- - integer tag id of the field.value
- - value of the field.TagNotFoundException
- if field is not foundTypeCastException
- if value cannot be casted to field typevoid setUnsignedByte(int tag, short value)
tag
- - integer tag id of the field.value
- - value of the field.TagNotFoundException
- if field is not foundTypeCastException
- if value cannot be casted to field typevoid setUnsignedByte(int tag, int value)
tag
- - integer tag id of the field.value
- - value of the field.TagNotFoundException
- if field is not foundTypeCastException
- if value cannot be casted to field typevoid setShort(int tag, short value)
tag
- - integer tag id of the field.value
- - value of the field.TagNotFoundException
- if field is not foundTypeCastException
- if value cannot be casted to field typevoid setShort(int tag, int value)
tag
- - integer tag id of the field.value
- - value of the field.TagNotFoundException
- if field is not foundTypeCastException
- if value cannot be casted to field typevoid setUnsignedShort(int tag, int value)
tag
- - integer tag id of the field.value
- - value of the field.TagNotFoundException
- if field is not foundTypeCastException
- if value cannot be casted to field typevoid setInt(int tag, int value)
tag
- - integer tag id of the field.value
- - value of the field.TagNotFoundException
- if field is not foundTypeCastException
- if value cannot be casted to field typevoid setUnsignedInt(int tag, long value)
tag
- - integer tag id of the field.value
- - value of the field.TagNotFoundException
- if field is not foundTypeCastException
- if value cannot be casted to field typevoid setLong(int tag, long value)
tag
- - integer tag id of the field.value
- - value of the field.TagNotFoundException
- if field is not foundTypeCastException
- if value cannot be casted to field typevoid setUnsignedLong(int tag, BigInteger value)
tag
- - integer tag id of the field.value
- - value of the field.TagNotFoundException
- if field is not foundTypeCastException
- if value cannot be casted to field typevoid setString(int tag, CharSequence value)
tag
- - integer tag id of the field.value
- - value of the field.TagNotFoundException
- if field is not foundTypeCastException
- if value cannot be casted to field typevoid setDecimal(int tag, ScaledDecimal value)
tag
- - integer tag id of the field.value
- - value of the field.TagNotFoundException
- if field is not foundTypeCastException
- if value cannot be casted to field typevoid setMonthYear(int tag, MonthYear value)
tag
- - integer tag id of the field.value
- - value of the field.TagNotFoundException
- if field is not foundTypeCastException
- if value cannot be casted to field typevoid setVarData(int tag, byte[] value)
tag
- - integer tag id of the field.value
- - value of the field.TagNotFoundException
- if field is absent in the FieldSetTypeCastException
- if requested field is not variable length data fieldvoid setBytes(int tag, byte[] value)
tag
- - integer tag id of the field.value
- - value of the field.TagNotFoundException
- if field is absent in the FieldSet.boolean tryGetBoolean(int tag, AtomicBoolean ref)
tag
- - integer tag id of the fieldref
- - reference type variable to store return value of the fieldboolean tryGetChar(int tag, AtomicInteger ref)
tag
- - integer tag id of the fieldref
- - reference type variable to store return value of the fieldboolean tryGetByte(int tag, AtomicInteger ref)
tag
- - integer tag id of the fieldref
- - reference type variable to store return value of the fieldboolean tryGetUnsignedByte(int tag, AtomicInteger ref)
tag
- - integer tag id of the fieldref
- - reference type variable to store return value of the fieldboolean tryGetShort(int tag, AtomicInteger ref)
tag
- - integer tag id of the fieldref
- - reference type variable to store return value of the fieldboolean tryGetUnsignedShort(int tag, AtomicInteger ref)
tag
- - integer tag id of the fieldref
- - reference type variable to store return value of the fieldboolean tryGetInt(int tag, AtomicInteger ref)
tag
- - integer tag id of the fieldref
- - reference type variable to store return value of the fieldboolean tryGetUnsignedInt(int tag, AtomicLong ref)
tag
- - integer tag id of the fieldref
- - reference type variable to store return value of the fieldboolean tryGetLong(int tag, AtomicLong ref)
tag
- - integer tag id of the fieldref
- - reference type variable to store return value of the fieldBigInteger tryGetUnsignedLong(int tag)
tag
- - integer tag id of the fieldString tryGetString(int tag)
tag
- - integer tag id of the fieldboolean tryGetDecimal(int tag, ScaledDecimal ref)
tag
- - integer tag id of the field.ref
- - variable to store the field value.
o cannot be null. Value of o will be rewritten.boolean tryGetMonthYear(int tag, MonthYear o)
tag
- - integer tag id of the field.o
- - variable to store the field value.
o cannot be null. Value of o will be rewritten.IGroup getGroup(int tag)
tag
- - integer tag id of the group.TagNotFoundException
- if there is no such field or groupTypeCastException
- if requested tagged object is not a groupIGroup tryGetGroup(int tag)
tag
- - integer tag id of the group.byte[] tryGetVarData(int tag)
tag
- - integer tag id of the field.byte[] tryGetBytes(int tag)
tag
- - integer tag id of the field.boolean tryGetValuePtr(int tag, ValuePtr ref)
tag
- - integer tag id of the field.ref
- - object to store value.void reset(int tag)
tag
- - integer tag id of the field.String toFixString(char separator)
separator
- for fieldsIFieldSet getParent()
boolean hasTag(int tag)
tag
- tag to check.boolean hasFieldTag(int tag)
tag
- tag to check.boolean hasGroupTag(int tag)
tag
- tag to check.boolean hasVarDataTag(int tag)
tag
- tag to check.SbeTimestamp getTimestamp(int tag, SbeTimestamp ref)
boolean tryGetTimestamp(int tag, SbeTimestamp ref)
void setTimestamp(int tag, SbeTimestamp value)
ScaledDecimal createNullDecimal(int tag, ScaledDecimal ref)
tag
- Tag of the field which null value is requested.ref
- Object to fill (optional)boolean isNullDecimal(int tag, ScaledDecimal value)
tag
- Tag of the field.value
- Value to check.MonthYear createNullMonthYear(int tag, MonthYear ref)
tag
- field of the MonthYear type.ref
- object to fill with null data.boolean isNullMonthYear(int tag, MonthYear value)
tag
- Tag of the field.value
- Value to check.SbeTimestamp createNullTimestamp(int tag, SbeTimestamp ref)
tag
- field of the MonthYear type.ref
- object to fill with null data.boolean isNullTimestamp(int tag, SbeTimestamp value)
tag
- Tag of the field.value
- Value to check.Object createEmptyStandardComposite(int tag, Object ref)
tag
- Tag of the field.ref
- Object to fill with null value. The object type must correspond to the field type.boolean isNullStandardComposite(int tag, Object ref)
tag
- Tag of the field.ref
- Value to check.<T> T getCustomComposite(int tag, T ref)
T
- Type of the custom composite.tag
- Tag of teh fieldref
- Custom composite object to fill.<T> boolean tryGetCustomComposite(int tag, T ref)
tag
- - integer tag id of the field.ref
- - variable to store the field value.
ref cannot be null. Value of ref will be rewritten.<T> void setCustomComposite(int tag, T value)
tag
- - integer tag id of the field.value
- - value of the field.TagNotFoundException
- if field is not foundTypeCastException
- if value cannot be casted to field typeCopyright © 2005–2024 Onix Solutions. All rights reserved.