public static class FixBlockExtendedX.FixBlockExtended extends Object implements FixBlock
Modifier and Type | Method and Description |
---|---|
boolean |
append(int tag,
StringBuilder builder)
Appends field value to the specified
StringBuilder . |
FixBlock |
assemble(ByteBuffer buffer)
Assembles the FIX message to the target byte buffer.
|
FixBlock |
assemble(FlatMessage flatMessage)
Assembles the FIX message to the target
FlatMessage . |
boolean |
contains(int tag)
Returns whether the field with the specified tag number is set.
|
boolean |
contains(int tag,
boolean nested)
Returns whether the field with the specified tag number is set.
|
boolean |
containsSame(int tag,
byte[] expectedValue,
int offset,
int length)
Returns whether the field corresponding to the given tag exists and have the same value.
|
boolean |
containsSame(int tag,
CharSequence expectedValue)
Returns whether the field corresponding to the given tag exists and have the same value.
|
String |
get(int tag)
Returns the field value as string.
|
boolean |
get(int tag,
ValuePtr value)
Returns field value as
ValuePtr using provided value object instance. |
BigDecimal |
getBigDecimal(int tag)
Returns the field value as
BigDecimal . |
boolean |
getBoolean(int tag) |
byte[] |
getBytes(int tag)
Returns the field value as a byte array.
|
char |
getChar(int tag)
Returns the field value as character.
|
double |
getDouble(int tag)
Returns the field value as double.
|
Group |
getGroup(int tag)
Returns the repeating group.
|
boolean |
getHighResolutionTimestamp(int tag,
HighResolutionTimestamp value,
TimestampFormat format)
Returns field value as
HighResolutionTimestamp using provided value object instance and parsed using
specified TimestampFormat format. |
HighResolutionTimestamp |
getHighResolutionTimestamp(int tag,
TimestampFormat format)
Returns field value as
HighResolutionTimestamp parsed using specified TimestampFormat format. |
int |
getInteger(int tag)
Returns the field value as integer.
|
DateTimeHelperX.DateTimeHelper.DateOnly |
getLocalMktDate(int tag) |
long |
getLong(int tag)
Returns the field value as long.
|
DateTimeHelperX.DateTimeHelper.MonthYear |
getMonthYear(int tag) |
static char[] |
getMultipleCharValues(FixBlock fixBlock,
int tag) |
static String[] |
getMultipleStringValues(FixBlock fixBlock,
int tag) |
int |
getNumberOfGroups()
Returns number of repeating groups defined on the current level excluding nested repeating groups.
|
ScaledDecimal |
getScaledDecimal(int tag)
Returns field value as
ScaledDecimal . |
boolean |
getScaledDecimal(int tag,
ScaledDecimal value)
Returns field value as
ScaledDecimal using provided value object instance. |
int |
getSize()
Returns the number of tag/value pairs excluding nested repeating groups.
|
DateTimeHelperX.DateTimeHelper.TZTimeOnlyInfo |
getTzTimeOnly(int tag) |
DateTimeHelperX.DateTimeHelper.TZTimestampInfo |
getTzTimestamp(int tag) |
DateTimeHelperX.DateTimeHelper.DateOnly |
getUtcDateOnly(int tag) |
DateTimeHelperX.DateTimeHelper.TZTimeOnlyInfo |
getUtcTimeOnly(int tag) |
DateTimeHelperX.DateTimeHelper.TZTimestampInfo |
getUtcTimestamp(int tag) |
LocalDateTime |
getUTCTimestamp(int tag)
Returns field value as
LocalDateTime . |
ValuePtr |
getValuePtr(int tag)
Returns field value as
ValuePtr . |
boolean |
hasFlag(int tag)
Returns the flag value.
|
boolean |
hasGroup(int tag)
Returns whether repeating group belongs to the fix block and actually exists.
|
static boolean |
hasMultipleValues(FixBlock fixBlock,
int tag) |
Iterator<Field> |
iterator() |
Iterator<Group> |
iteratorOverGroups()
Returns an iterator over groups of the current level excludes nested repeating groups.
|
static String |
makeMultipleCharValueString(char[] value) |
static String |
makeMultipleStringValueString(String[] value) |
boolean |
remove(int tag)
Removes the field with the specified tag number.
|
FixBlock |
set(int tag,
BigDecimal value)
Sets the field value as
BigDecimal using provided value object instance. |
FixBlock |
set(int tag,
byte[] buffer)
Sets the field value.
|
FixBlock |
set(int tag,
byte[] buffer,
int valueLength)
Sets the field value.
|
FixBlock |
set(int tag,
byte[] buffer,
int valueOffset,
int valueLength)
Sets the field value.
|
FixBlock |
set(int tag,
ByteBuffer buffer)
Sets
ByteBuffer field value. |
FixBlock |
set(int tag,
char value)
Sets the field value as character.
|
FixBlock |
set(int tag,
CharSequence value)
Sets the field value as string.
|
FixBlock |
set(int tag,
double value)
Sets the double field value.
|
FixBlock |
set(int tag,
double value,
int precision)
Sets the field value as double.
|
FixBlock |
set(int tag,
HighResolutionTimestamp value,
TimestampFormat format)
Sets the field value as
HighResolutionTimestamp formatting it using specified TimestampFormat format. |
FixBlock |
set(int tag,
int value)
Sets the field value as integer.
|
FixBlock |
set(int tag,
LocalDateTime localDateTime)
Sets the field value as
LocalDateTime formatting it to timestamp. |
FixBlock |
set(int tag,
long value)
Sets the long field value.
|
FixBlock |
set(int tag,
ScaledDecimal value)
Sets
ScaledDecimal field value. |
FixBlock |
set(int tag,
ValuePtr value)
Sets
ValuePtr field value. |
FixBlock |
setBoolean(int tag,
boolean value) |
FixBlock |
setFlag(int tag,
boolean value)
Sets the flag tag value - "Y" or "N".
|
FixBlock |
setGroup(Group srcGroup)
Copies an entire repeating group from one fix block to another.
|
Group |
setGroup(int tag,
int numberOfInstances)
Creates a new repeating group or changes the number of instances in the existing repeating group.
|
void |
setLocalMktDate(int tag,
DateTimeHelperX.DateTimeHelper.DateOnly dateOnly) |
void |
setMonthYear(int tag,
DateTimeHelperX.DateTimeHelper.MonthYear monthYear) |
FixBlock |
setTimestamp(int tag,
long timeMillis)
Sets the field value as timestamp.
|
void |
setTzTimeOnly(int tag,
DateTimeHelperX.DateTimeHelper.TZTimeOnlyInfo timeOnly) |
void |
setTzTimestamp(int tag,
DateTimeHelperX.DateTimeHelper.TZTimestampInfo timestamp) |
void |
setUtcDateOnly(int tag,
DateTimeHelperX.DateTimeHelper.DateOnly dateOnly) |
void |
setUtcTimeOnly(int tag,
DateTimeHelperX.DateTimeHelper.TZTimeOnlyInfo timeOnly) |
void |
setUtcTimestamp(int tag,
DateTimeHelperX.DateTimeHelper.TZTimestampInfo timestamp) |
static char[] |
splitForCharsBySpaces(String str) |
static String[] |
splitForStringsBySpaces(String str) |
String |
toFixString()
Returns string representation of the message.
|
String |
toJson()
Returns string representation of the message in JSON format.
|
String |
toString(char delimiter)
Returns string representation of the message using specified delimiter.
|
String |
toString(char delimiter,
Message.StringFormat format)
Returns string representation of the message using specified delimiter and format.
|
String |
toString(Message.StringFormat format)
Returns string representation of the message using specified format.
|
String |
toXml()
Returns string representation of the message in pretty XML format.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public FixBlock assemble(FlatMessage flatMessage)
FixBlock
FlatMessage
.assemble
in interface FixBlock
flatMessage
- target FlatMessage
public FixBlock assemble(ByteBuffer buffer)
FixBlock
public boolean remove(int tag)
FixBlock
public boolean contains(int tag)
FixBlock
public boolean contains(int tag, boolean nested)
FixBlock
public boolean containsSame(int tag, CharSequence expectedValue)
FixBlock
containsSame
in interface FixBlock
tag
- field tag numberexpectedValue
- expected valuetrue
in case exits, false
otherwisepublic boolean containsSame(int tag, byte[] expectedValue, int offset, int length)
FixBlock
containsSame
in interface FixBlock
tag
- field tag numberexpectedValue
- expected valueoffset
- expected value offsetlength
- expected value lengthtrue
in case exits, false
otherwisepublic char getChar(int tag)
FixBlock
FixBlock.contains(int)
.public FixBlock set(int tag, char value)
FixBlock
set
in interface FixBlock
tag
- field tag numbervalue
- field valueFixBlock.contains(int)
to check if the field had a value.public int getInteger(int tag)
FixBlock
FixBlock.contains(int)
.getInteger
in interface FixBlock
tag
- field tag numberInteger.MAX_VALUE
if it is not setpublic FixBlock set(int tag, int value)
FixBlock
set
in interface FixBlock
tag
- field tag numbervalue
- field valueFixBlock.contains(int)
to check if the field had a value.public long getLong(int tag)
FixBlock
FixBlock.contains(int)
.public FixBlock set(int tag, long value)
FixBlock
set
in interface FixBlock
tag
- field tag numbervalue
- field valueFixBlock.contains(int)
to check if the field had a value.public double getDouble(int tag)
FixBlock
FixBlock.contains(int)
.
public FixBlock set(int tag, double value)
FixBlock
set
in interface FixBlock
tag
- field tag numbervalue
- field valueFixBlock.contains(int)
to check if the field had a value.public FixBlock set(int tag, double value, int precision)
FixBlock
set
in interface FixBlock
tag
- field tag numbervalue
- field valueprecision
- the number of digits in decimal partFixBlock.contains(int)
to check if the field had a value.public BigDecimal getBigDecimal(int tag)
FixBlock
BigDecimal
.
FixBlock.contains(int)
.getBigDecimal
in interface FixBlock
tag
- field tag numberBigDecimal
, null
if it is not setpublic FixBlock set(int tag, BigDecimal value)
FixBlock
BigDecimal
using provided value object instance.set
in interface FixBlock
tag
- field tag numbervalue
- field valueFixBlock.contains(int)
to check if the field had a value.public ScaledDecimal getScaledDecimal(int tag)
FixBlock
ScaledDecimal
.getScaledDecimal
in interface FixBlock
tag
- field tag numbernull
if it is not availablepublic boolean getScaledDecimal(int tag, ScaledDecimal value)
FixBlock
ScaledDecimal
using provided value object instance.getScaledDecimal
in interface FixBlock
tag
- field tag numbervalue
- field valuepublic FixBlock set(int tag, ScaledDecimal value)
FixBlock
ScaledDecimal
field value.set
in interface FixBlock
tag
- field tag numbervalue
- field valueFixBlock.contains(int)
to check if the field had a value.public FixBlock setTimestamp(int tag, long timeMillis)
FixBlock
setTimestamp
in interface FixBlock
tag
- field tag numbertimeMillis
- time in millisecondsFixBlock.contains(int)
to check if the field had a value.public LocalDateTime getUTCTimestamp(int tag)
FixBlock
LocalDateTime
.getUTCTimestamp
in interface FixBlock
tag
- field tag numbernull
if it is not availablepublic FixBlock set(int tag, LocalDateTime localDateTime)
FixBlock
LocalDateTime
formatting it to timestamp.set
in interface FixBlock
tag
- field tag numberlocalDateTime
- field valueFixBlock.contains(int)
to check if the field had a value.public HighResolutionTimestamp getHighResolutionTimestamp(int tag, TimestampFormat format)
FixBlock
HighResolutionTimestamp
parsed using specified TimestampFormat
format.getHighResolutionTimestamp
in interface FixBlock
tag
- field tag numberformat
- format to be used during parsingnull
if it is not availablepublic boolean getHighResolutionTimestamp(int tag, HighResolutionTimestamp value, TimestampFormat format)
FixBlock
HighResolutionTimestamp
using provided value object instance and parsed using
specified TimestampFormat
format.getHighResolutionTimestamp
in interface FixBlock
tag
- field tag numbervalue
- field valueformat
- format to be used during parsingpublic FixBlock set(int tag, HighResolutionTimestamp value, TimestampFormat format)
FixBlock
HighResolutionTimestamp
formatting it using specified TimestampFormat
format.set
in interface FixBlock
tag
- field tag numbervalue
- field valueformat
- format to be used for formattingFixBlock.contains(int)
to check if the field had a value.public String get(int tag)
FixBlock
public FixBlock set(int tag, CharSequence value)
FixBlock
set
in interface FixBlock
tag
- field tag numbervalue
- field valueFixBlock.contains(int)
to check if the field had a value.public ValuePtr getValuePtr(int tag)
FixBlock
ValuePtr
.
getValuePtr
in interface FixBlock
tag
- field tag numberValuePtr.isSet()
to check whether value is setpublic boolean get(int tag, ValuePtr value)
FixBlock
ValuePtr
using provided value object instance.
public FixBlock set(int tag, ValuePtr value)
FixBlock
ValuePtr
field value.set
in interface FixBlock
tag
- field tag numbervalue
- value pointerFixBlock.contains(int)
to check if the field had a value.public FixBlock set(int tag, ByteBuffer buffer)
FixBlock
ByteBuffer
field value.set
in interface FixBlock
tag
- field tag numberbuffer
- field valueFixBlock.contains(int)
to check if the field had a value.public byte[] getBytes(int tag)
FixBlock
public FixBlock set(int tag, byte[] buffer)
FixBlock
set
in interface FixBlock
tag
- field tag numberbuffer
- byte bufferFixBlock.contains(int)
to check if the field had a value.public FixBlock set(int tag, byte[] buffer, int valueLength)
FixBlock
set
in interface FixBlock
tag
- field tag numberbuffer
- byte buffervalueLength
- value length in the bufferFixBlock.contains(int)
to check if the field had a value.public FixBlock set(int tag, byte[] buffer, int valueOffset, int valueLength)
FixBlock
set
in interface FixBlock
tag
- field tag numberbuffer
- byte buffervalueOffset
- value offset in the buffervalueLength
- value length in the bufferFixBlock.contains(int)
to check if the field had a value.public boolean append(int tag, StringBuilder builder)
FixBlock
StringBuilder
.public boolean hasFlag(int tag)
FixBlock
public FixBlock setFlag(int tag, boolean value)
FixBlock
setFlag
in interface FixBlock
tag
- field tag numbervalue
- true
for "Y", false
for "N"FixBlock.contains(int)
to check if the field had a value.public boolean hasGroup(int tag)
FixBlock
public Group getGroup(int tag)
FixBlock
public Group setGroup(int tag, int numberOfInstances)
FixBlock
public FixBlock setGroup(Group srcGroup)
FixBlock
public int getNumberOfGroups()
FixBlock
getNumberOfGroups
in interface FixBlock
public int getSize()
FixBlock
public String toJson()
FixBlock
public String toXml()
FixBlock
public String toFixString()
FixBlock
toFixString
in interface FixBlock
public String toString(char delimiter)
FixBlock
Message.StringFormat.TAG_NUMBER
.public String toString(Message.StringFormat format)
FixBlock
FixParserUtil.DELIM_CHAR
.public String toString(char delimiter, Message.StringFormat format)
FixBlock
public Iterator<Group> iteratorOverGroups()
FixBlock
iteratorOverGroups
in interface FixBlock
public DateTimeHelperX.DateTimeHelper.MonthYear getMonthYear(int tag)
public void setMonthYear(int tag, DateTimeHelperX.DateTimeHelper.MonthYear monthYear)
public DateTimeHelperX.DateTimeHelper.TZTimestampInfo getUtcTimestamp(int tag)
public void setUtcTimestamp(int tag, DateTimeHelperX.DateTimeHelper.TZTimestampInfo timestamp)
public DateTimeHelperX.DateTimeHelper.TZTimeOnlyInfo getUtcTimeOnly(int tag)
public void setUtcTimeOnly(int tag, DateTimeHelperX.DateTimeHelper.TZTimeOnlyInfo timeOnly)
public DateTimeHelperX.DateTimeHelper.DateOnly getUtcDateOnly(int tag)
public void setUtcDateOnly(int tag, DateTimeHelperX.DateTimeHelper.DateOnly dateOnly)
public DateTimeHelperX.DateTimeHelper.DateOnly getLocalMktDate(int tag)
public void setLocalMktDate(int tag, DateTimeHelperX.DateTimeHelper.DateOnly dateOnly)
public DateTimeHelperX.DateTimeHelper.TZTimeOnlyInfo getTzTimeOnly(int tag)
public void setTzTimeOnly(int tag, DateTimeHelperX.DateTimeHelper.TZTimeOnlyInfo timeOnly)
public DateTimeHelperX.DateTimeHelper.TZTimestampInfo getTzTimestamp(int tag)
public void setTzTimestamp(int tag, DateTimeHelperX.DateTimeHelper.TZTimestampInfo timestamp)
public boolean getBoolean(int tag)
public FixBlock setBoolean(int tag, boolean value)
public static char[] splitForCharsBySpaces(String str)
public static boolean hasMultipleValues(FixBlock fixBlock, int tag)
public static char[] getMultipleCharValues(FixBlock fixBlock, int tag)
public static String makeMultipleCharValueString(char[] value)
Copyright © 2005–2024 Onix Solutions. All rights reserved.