Modifier and Type | Class and Description |
---|---|
static class |
Message.StringFormat
Collection of flags which affect the way FIX message is converted to string representation.
|
Constructor and Description |
---|
Message()
Constructs an empty message.
|
Message(byte[] rawMsg)
Constructs a message by parsing the given raw message.
|
Message(byte[] rawMsg,
int length)
Constructs a message by parsing the given raw message.
|
Message(byte[] rawMsg,
int length,
int messageValidationFlags)
Constructs a message by parsing the given raw message.
|
Message(ByteBuffer rawMsg)
Constructs a message by parsing the given raw message.
|
Message(ByteBuffer rawMsg,
int messageValidationFlags)
Constructs a message by parsing the given raw message.
|
Message(JsonObject jsonObj)
Constructs a message by parsing the given json object.
|
Message(Message message)
Constructs the exact copy of the given message.
|
Message(String rawMsg)
Constructs a message by parsing the given raw message.
|
Message(String rawMsg,
int messageValidationFlags)
Constructs a message by parsing the given raw message.
|
Message(Version version,
byte[] rawMsg)
Constructs a message by parsing the given raw message according to the specified version.
|
Message(Version version,
byte[] rawMsg,
int length,
int messageValidationFlags)
Constructs a message by parsing the given raw message according to the specified version.
|
Message(Version version,
ByteBuffer rawMsg)
Constructs a message by parsing the given raw message according to the specified version.
|
Message(Version version,
FlatMessage flatMsg,
int messageValidationFlags)
Constructs a message by iterating over the given
FlatMessage according to the specified version. |
Message(Version version,
JsonObject jsonObj)
Constructs a message by parsing the given json object according to the specified version.
|
Message(Version version,
String rawMsg)
Constructs a message by parsing the given raw message according to the specified version.
|
Message(Version version,
String rawMsg,
int messageValidationFlags)
Constructs a message by parsing the given raw message according to the specified version.
|
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 |
checkType(char expectedType)
Checks whether the message have the specified MsgType(35).
|
boolean |
checkType(String expectedType)
Checks whether the message have the specified MsgType(35).
|
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.
|
static Message |
create(char type,
Version version)
Creates a message according to the specified type and version.
|
static Message |
create(char type,
Version version,
int messageValidationFlags)
Creates a message according to the specified type and version.
|
static Message |
create(String type,
Version version)
Creates a message according to the specified type and version.
|
static Message |
create(String type,
Version version,
int messageValidationFlags)
Creates a message according to the specified type and version.
|
boolean |
equals(Object o) |
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 . |
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.
|
long |
getLong(int tag)
Returns the field value as long.
|
String |
getName()
Returns message name.
|
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. |
String |
getSenderCompID()
Returns assigned value used to identify firm sending message (the SenderCompID (tag=49) field value).
|
long |
getSeqNum()
Returns message sequence number (the MsgSeqNum (tag=34) field value).
|
int |
getSize()
Returns the number of tag/value pairs excluding nested repeating groups.
|
String |
getTargetCompID()
Returns assigned value used to identify receiving firm (the TargetCompID (tag=56) field value).
|
String |
getType()
Returns message type (the MsgType (tag=35) field value).
|
LocalDateTime |
getUTCTimestamp(int tag)
Returns field value as
LocalDateTime . |
ValuePtr |
getValuePtr(int tag)
Returns field value as
ValuePtr . |
Version |
getVersion()
FIX protocol version used for parsing the message.
|
boolean |
hasFlag(int tag)
Returns the flag value.
|
boolean |
hasGroup(int tag)
Returns whether repeating group belongs to the fix block and actually exists.
|
int |
hashCode() |
void |
init(byte[] rawMsg,
int messageValidationFlags)
Initializes the message by parsing the given raw message.
|
void |
init(byte[] rawMsg,
int length,
int messageValidationFlags)
Initializes the message by parsing the given raw message.
|
void |
init(char type,
Version version)
Initializes the message according to the specified type and version.
|
void |
init(char type,
Version version,
int messageValidationFlags)
Initializes the message according to the specified type and version.
|
void |
init(JsonObject jsonObj)
Initializes the message by parsing the given json object.
|
void |
init(Message message)
Initializes the message with exact copy of the given message.
|
void |
init(String rawMsg)
Initializes the message by parsing the given raw message.
|
void |
init(String rawMsg,
int messageValidationFlags)
Initializes the message by parsing the given raw message.
|
void |
init(String type,
Version version)
Initializes the message according to the specified type and version.
|
void |
init(String type,
Version version,
int messageValidationFlags)
Initializes the message according to the specified type and version.
|
void |
init(Version version,
byte[] rawMsg,
int length,
int messageValidationFlags)
Initializes the message by parsing the given raw message according to the specified version.
|
void |
init(Version version,
FlatMessage flatMessage,
int messageValidationFlags)
Initializes the message by iterating over the given
FlatMessage according to the specified version. |
void |
init(Version version,
JsonObject jsonObj)
Initializes the message by parsing the given json object according to the specified version.
|
boolean |
isOriginal()
Returns whether PossDupFlag(43) is not set or set to 'N' or 'n'.
|
boolean |
isSessionLevel()
Returns whether this message belongs to FIX session level.
|
Iterator<Field> |
iterator() |
Iterator<Group> |
iteratorOverGroups()
Returns an iterator over groups of the current level excludes nested repeating groups.
|
Iterator<Field> |
iteratorOverRawMsg()
Returns an iterator over a raw FIX message as set of fields.
|
boolean |
remove(int tag)
Removes the field with the specified tag number.
|
Message |
reset()
Resets to the clean, non-initialized state.
|
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[] value,
int offset,
int length)
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 value)
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 |
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.
|
Message |
setSenderCompID(CharSequence newValue)
Sets assigned value used to identify firm sending message (the SenderCompID (tag=49) field value).
|
Message |
setSeqNum(long value)
Sets message sequence number (the MsgSeqNum (tag=34) field value).
|
Message |
setTargetCompID(CharSequence newValue)
Sets assigned value used to identify receiving firm (the TargetCompID (tag=56) field value).
|
FixBlock |
setTimestamp(int tag,
long timeMillis)
Sets the field value as timestamp.
|
Stream<Field> |
stream()
Returns stream that contains all fields of the current level without groups.
|
Stream<Group> |
streamOverGroups()
Returns stream thta contains groups of the current level.
|
String |
toFixString()
Returns string representation of the message.
|
String |
toJson()
Returns string representation of the message in JSON format.
|
String |
toString()
Returns string representation of the message.
|
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.
|
Message |
updateChecksum()
Calculates and updates the CheckSum(10) field value.
|
Message |
validate()
Performs message validation.
|
Message |
validate(int validationFlags)
Validates the message.
|
forEach, spliterator
public Message()
public Message(Message message)
message
- source message to copyNullPointerException
- if message == null
public Message(JsonObject jsonObj)
MessageValidationFlags.None
message validation flag is used.
jsonObj
- json object
with FIX messageNullPointerException
- if jsonObj == null
public Message(String rawMsg)
MessageValidationFlags.None
message validation flag is used.
rawMsg
- raw FIX message in the tag=value formNullPointerException
- if rawMsg == null
public Message(ByteBuffer rawMsg)
MessageValidationFlags.None
message validation flag is used.
rawMsg
- raw FIX message in the tag=value formNullPointerException
- if rawMsg == null
public Message(byte[] rawMsg)
MessageValidationFlags.None
message validation flag is used.
rawMsg
- raw FIX message in the tag=value formNullPointerException
- if rawMsg == null
public Message(byte[] rawMsg, int length)
MessageValidationFlags.None
message validation flag is used.
rawMsg
- raw FIX message in the tag=value formlength
- message length in bytesNullPointerException
- if rawMsg == null
public Message(String rawMsg, int messageValidationFlags)
rawMsg
- raw FIX message in the tag=value formmessageValidationFlags
- message validation flags see MessageValidationFlags
NullPointerException
- if rawMsg == null
public Message(ByteBuffer rawMsg, int messageValidationFlags)
rawMsg
- raw FIX message in the tag=value formmessageValidationFlags
- message validation flags see MessageValidationFlags
NullPointerException
- if rawMsg == null
public Message(byte[] rawMsg, int length, int messageValidationFlags)
rawMsg
- raw FIX message in the tag=value formlength
- message length in bytesmessageValidationFlags
- message validation flags see MessageValidationFlags
NullPointerException
- if rawMsg == null
public Message(Version version, JsonObject jsonObj)
MessageValidationFlags.None
message validation flag is used.
version
- FIX versionjsonObj
- json object
with FIX messageNullPointerException
- if @{code version == null} or @{code jsonObj == null}IllegalArgumentException
- if @{code version == Version.UNKNOWN}public Message(Version version, String rawMsg)
MessageValidationFlags.None
message validation flag is used.
version
- FIX versionrawMsg
- raw FIX message in the tag=value formNullPointerException
- if version == null
or rawMsg == null
IllegalArgumentException
- if version == Version.UNKNOWN
public Message(Version version, ByteBuffer rawMsg)
MessageValidationFlags.None
message validation flag is used.
version
- FIX versionrawMsg
- raw FIX message in the tag=value formNullPointerException
- if version == null
or rawMsg == null
IllegalArgumentException
- if version == Version.UNKNOWN
public Message(Version version, byte[] rawMsg)
MessageValidationFlags.None
message validation flag is used.
version
- FIX versionrawMsg
- raw FIX message in the tag=value formNullPointerException
- if version == null
or rawMsg == null
IllegalArgumentException
- if version == Version.UNKNOWN
public Message(Version version, String rawMsg, int messageValidationFlags)
version
- FIX versionrawMsg
- raw FIX message in the tag=value formmessageValidationFlags
- message validation flags see MessageValidationFlags
NullPointerException
- if version == null
or rawMsg == null
IllegalArgumentException
- if version == Version.UNKNOWN
public Message(Version version, byte[] rawMsg, int length, int messageValidationFlags)
version
- FIX versionrawMsg
- raw FIX message in the tag=value formlength
- message length in bytesmessageValidationFlags
- message validation flags see MessageValidationFlags
NullPointerException
- if version == null
or rawMsg == null
IllegalArgumentException
- if version == Version.UNKNOWN
public Message(Version version, FlatMessage flatMsg, int messageValidationFlags)
FlatMessage
according to the specified version.version
- FIX versionflatMsg
- FlatMessage
messageValidationFlags
- message validation flags see MessageValidationFlags
NullPointerException
- if version == null
or flatMsg == null
IllegalArgumentException
- if version == Version.UNKNOWN
public static Message create(char type, Version version)
MessageValidationFlags.None
message validation flag is used.
type
- message type, MsgType(35) field valueversion
- FIX versionNullPointerException
- if @{code version == null} or @{code type == null}IllegalArgumentException
- if @{code version == Version.UNKNOWN}public static Message create(String type, Version version)
MessageValidationFlags.None
message validation flag is used.
type
- message type, MsgType(35) field valueversion
- FIX versionNullPointerException
- if @{code version == null} or @{code type == null}IllegalArgumentException
- if @{code version == Version.UNKNOWN}public static Message create(String type, Version version, int messageValidationFlags)
type
- message type, MsgType(35) field valueversion
- FIX versionmessageValidationFlags
- message validation flags see MessageValidationFlags
NullPointerException
- if @{code version == null} or @{code type == null}IllegalArgumentException
- if @{code version == Version.UNKNOWN}public static Message create(char type, Version version, int messageValidationFlags)
type
- message type, MsgType(35) field valueversion
- FIX versionmessageValidationFlags
- message validation flags see MessageValidationFlags
NullPointerException
- if @{code version == null} or @{code type == null}IllegalArgumentException
- if @{code version == Version.UNKNOWN}public void init(Message message)
message
- source message to copyNullPointerException
- if message == null
public void init(JsonObject jsonObj)
MessageValidationFlags.None
message validation flag is used.
jsonObj
- json object
with FIX messageNullPointerException
- if jsonObj == null
public void init(String rawMsg)
MessageValidationFlags.None
message validation flag is used.
rawMsg
- raw FIX message in the tag=value formNullPointerException
- if rawMsg == null
public void init(String rawMsg, int messageValidationFlags)
rawMsg
- raw FIX message in the tag=value formmessageValidationFlags
- message validation flags see MessageValidationFlags
NullPointerException
- if rawMsg == null
public void init(byte[] rawMsg, int messageValidationFlags)
rawMsg
- raw FIX message in the tag=value formmessageValidationFlags
- message validation flags see MessageValidationFlags
NullPointerException
- if rawMsg == null
public void init(byte[] rawMsg, int length, int messageValidationFlags)
rawMsg
- raw FIX message in the tag=value formlength
- message length in bytesmessageValidationFlags
- message validation flags see MessageValidationFlags
NullPointerException
- if rawMsg == null
public void init(Version version, byte[] rawMsg, int length, int messageValidationFlags)
version
- FIX versionrawMsg
- raw FIX message in the tag=value formlength
- message length in bytesmessageValidationFlags
- message validation flags see MessageValidationFlags
NullPointerException
- if @{code version == null} or @{code rawMsg == null}IllegalArgumentException
- if @{code version == Version.UNKNOWN}public final void init(Version version, FlatMessage flatMessage, int messageValidationFlags)
FlatMessage
according to the specified version.version
- FIX versionflatMessage
- flat FIX messagemessageValidationFlags
- message validation flags see MessageValidationFlags
NullPointerException
- if @{code version == null} or @{code flatMessage == null}IllegalArgumentException
- if @{code version == Version.UNKNOWN}public void init(Version version, JsonObject jsonObj)
MessageValidationFlags.None
message validation flag is used.
version
- FIX versionjsonObj
- json object
with FIX messageNullPointerException
- if @{code version == null} or @{code jsonObj == null}IllegalArgumentException
- if @{code version == Version.UNKNOWN}public void init(char type, Version version)
MessageValidationFlags.None
message validation flag is used.
type
- message type, MsgType(35) field valueversion
- FIX versionNullPointerException
- if @{code version == null} or @{code type == null}IllegalArgumentException
- if @{code version == Version.UNKNOWN}public void init(String type, Version version)
MessageValidationFlags.None
message validation flag is used.
type
- message type, MsgType(35) field valueversion
- FIX versionNullPointerException
- if @{code version == null} or @{code type == null}IllegalArgumentException
- if @{code version == Version.UNKNOWN}public void init(String type, Version version, int messageValidationFlags)
type
- message type, MsgType(35) field valueversion
- FIX versionmessageValidationFlags
- message validation flags see MessageValidationFlags
NullPointerException
- if @{code version == null} or @{code type == null}IllegalArgumentException
- if @{code version == Version.UNKNOWN}public void init(char type, Version version, int messageValidationFlags)
type
- message type, MsgType(35) field valueversion
- FIX versionmessageValidationFlags
- message validation flags see MessageValidationFlags
NullPointerException
- if @{code version == null} or @{code type == null}IllegalArgumentException
- if @{code version == Version.UNKNOWN}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 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 FixBlock set(int tag, byte[] value, int offset, int length)
FixBlock
set
in interface FixBlock
tag
- field tag numbervalue
- byte bufferoffset
- value offset in the bufferlength
- value length in the bufferFixBlock.contains(int)
to check if the field had a value.public String toJson()
FixBlock
public String toXml()
FixBlock
public Message reset()
public String getName()
public Version getVersion()
Note: The version value can be different from the value of BeginString field.
public String getSenderCompID()
public Message setSenderCompID(CharSequence newValue)
newValue
- SenderCompIDpublic String getTargetCompID()
public Message setTargetCompID(CharSequence newValue)
newValue
- TargetCompIDpublic boolean checkType(char expectedType)
expectedType
- expected message typepublic boolean checkType(String expectedType)
expectedType
- expected message typepublic String getType()
public Message validate()
ParserException
- if the message is not validpublic Message validate(int validationFlags)
validationFlags
- validation flags see MessageValidationFlags
ParserException
- if the message is not validpublic long getSeqNum()
public Message setSeqNum(long value)
value
- message sequence numberpublic boolean isSessionLevel()
public boolean isOriginal()
public Message updateChecksum()
public Iterator<Field> iteratorOverRawMsg()
Note: Before any modifications to a FIX message the set of fields will be in the same order as they are received/parsed and will include duplicates.
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 value)
FixBlock
LocalDateTime
formatting it to timestamp.set
in interface FixBlock
tag
- field tag numbervalue
- 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 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 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 toFixString()
FixBlock
toFixString
in interface FixBlock
public String toString()
Message.StringFormat.TAG_NUMBER
.
Default delimiter is FixParserUtil.DELIM_CHAR
.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 Stream<Field> stream()
FixBlock
public Stream<Group> streamOverGroups()
FixBlock
streamOverGroups
in interface FixBlock
Copyright © 2005–2024 Onix Solutions. All rights reserved.