DefaultSeparator
Constructor and Description |
---|
Group(IFieldSet parent,
int numInGroupTag)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
IGroup |
clone()
Creates a copy of the repeating group instance, including part of underlying byte array with group 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.
|
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 |
getEndOfGroupOffset()
Returns offset of the last byte of the repeating group data in underlying data array.
|
int |
getLength()
Gets number of entries in the repeating group.
|
MonthYear |
getMonthYear(int tag)
Gets date field value by tag.
|
int |
getOffset()
Returns offset of the first byte of the repeating group data in underlying data array.
|
IFieldSet |
getParent()
Returns field set parent.
|
int |
getPos()
Gets current entry index.
|
int |
getSize()
IFieldSet implementation: will be implemented by ClassGen
|
int |
getSizeFromOffset(byte[] data,
int beginHeaderOffset)
Returns size of entire group in a case the group contains nested var-legth data.
|
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 |
hasNext()
IGroup implementation
|
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.
|
boolean |
next()
Moves repeating group to the next entry if it is possible.
|
void |
notifyBufferUpdate(byte[] data,
int pointOfModify,
int sizeDelta) |
abstract void |
notifyFieldSetBufferUpdate(byte[] data,
int pointOfModify,
int sizeDelta) |
void |
rewind()
Resets repeating group to the initial state, when item position is
before the first element (pos value = -1).
|
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 |
setLength(int newLength)
Sets new number of entries in the repeating group.
|
boolean |
setPos(int pos)
Sets current entry index.
|
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
contains, createEmptyStandardComposite, createNullDecimal, createNullMonthYear, createNullTimestamp, dataTags, fieldTags, getBoolean, getBuffer, 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 Group(IFieldSet parent, int numInGroupTag)
parent
- parent field setnumInGroupTag
- group number of instances tagpublic int getOffset()
IGroup
public int getSize()
public boolean hasNext()
public boolean next()
IGroup
public void rewind()
IGroup
public int getPos()
IGroup
public boolean setPos(int pos)
IGroup
public int getLength()
IGroup
public int getEndOfGroupOffset()
IGroup
getEndOfGroupOffset
in interface IGroup
public int getSizeFromOffset(byte[] data, int beginHeaderOffset)
data
- The data to use for the counting.beginHeaderOffset
- Offset of the group header in the data provided.public String toFixString(char separator)
toFixString
in interface IFieldSet
separator
- for fieldspublic IGroup clone()
public void setLength(int newLength)
IGroup
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.