public final class FIXUtil extends Object
Modifier and Type | Field and Description |
---|---|
protected static FIXErrorBuilder |
fixErrorBuilder |
Modifier and Type | Method and Description |
---|---|
static String |
commentToHtmlStr(Comment comment) |
int |
countLengthForGroupUnit(FIXField[] message,
int indexOfGroupTags,
int startGroupTag,
FIXField lengthOfGroupTag,
Set<Integer> stackOfGroupsTag,
String messageType,
int rootGroupStartTag)
Counts the group length.
|
int |
countLengthForGroupUnit(FIXFieldList message,
int indexOfGroupTags,
int startGroupTag,
FIXField lengthOfGroupTag,
Set<Integer> stackOfGroupsTag,
String messageType,
int rootGroupStartTag)
Counts the group length.
|
int |
countLengthForOneGroupUnit(FIXField[] message,
int indexOfGroupTags,
int startGroupTag,
FIXField lengthOfGroupTag,
Set<Integer> stackOfGroupsTag,
String messageType,
int rootGroupStartTag)
Counts the group length.
|
int |
countLengthForOneGroupUnit(FIXFieldList message,
int indexOfGroupTags,
int startGroupTag,
FIXField lengthOfGroupTag,
Set<Integer> stackOfGroupsTag,
String messageType,
int rootGroupStartTag)
Counts the group length.
|
static String |
descrToHtmlStr(Descr descr) |
Group |
findGroup(String msgType,
int startTagId)
Find group by start tag.
|
int[] |
getAllTags()
Gets tags.
|
BlockDefinitionsUtils |
getBlockDefUtils()
Method getBlockDefUtils returns the blockDefUtils of this FixUtils
object.
|
Map<String,IConditionalMessage> |
getConditionalCache()
Gets conditional cache.
|
Field |
getField(String msgType,
Integer tag)
Gets the field.
|
Fielddef[] |
getFieldDef()
Gets fields.
|
Fielddef |
getFieldDefByName(String name)
Gets field.
|
Fielddef |
getFieldDefByTag(int tag)
Gets field.
|
List<Fielddef> |
getFieldDefs(List<?> fieldsWithGroupsAndBlocks,
boolean useGroupTags)
Gets the collection of field defs.
|
List<Object> |
getFieldDefsHier(List<?> fieldsWithGroupsAndBlocks)
Gets the collection of field defs.
|
List<Field> |
getFields(List<?> list)
Returns list of tags of fields from input list.
|
List<Field> |
getFields(String messageType)
Returns list of tags of fields from input list.
|
List<Fielddef> |
getFieldsByMessageType(String messageType)
Gets fields for message.
|
List<Integer> |
getFieldsTags(List<?> list)
Returns list of tags of fields from input list.
|
int |
getFieldTagByName(String name)
Gets field tag.
|
String |
getFieldTypeByFieldName(String name)
Gets field type by field name.
|
String |
getFieldTypeByFieldTag(int tag)
Gets field type by field tag.
|
com.epam.fix.dictionary.Dictionaries |
getFixdic()
Method getFixdic returns the fixdic of this FixUtils object.
|
List<Object> |
getGroupContent(String msgType,
int startTagId)
Get repeating group content.
|
List<Fielddef> |
getGroupFieldDefs(String msgType,
int startTagId)
Get all field defs in repeating group.
|
GroupsCache |
getGroupsCache(String msgType) |
Map<Integer,Field> |
getGroupsTags(String msgType,
int groupTag,
FIXFieldList fieldList,
boolean withInternalGroup)
Gets group tags.
|
Map<Integer,Field> |
getGroupTagsWithInternalGroups(String msgType,
int groupTag,
FIXFieldList fieldList)
Gets group tags, the returned result includes the inner groups.
|
Map<Integer,Field> |
getGroupTagsWithOutInternalGroups(String msgType,
int tag,
FIXFieldList fieldList)
Gets group tags, the returned result does not include the inner groups.
|
MessageDefinitionsUtils |
getMessageDefUtils()
Method getDefUtils returns the defUtils of this FixUtils object.
|
List<Object> |
getMessageFieldDefHier(String msgType)
Get message type field def hierarchy.
|
Set<Integer> |
getRequiredTagsForMessage(String msgType)
Method getRequiredTagsForMessage returns array of required tags, or empty
array if message does not have required tags.
|
Blockdef |
getSmhDef()
Method getSmhDef returns the smhDef of this FixUtils object.
|
Blockdef |
getSmtDef()
Method getSmtDef returns the smtDef of this FixUtils object.
|
int |
getStartTagForGroup(String msgType,
int tag)
Returns start tag for group by goup tag.
|
GroupTagInfo |
getTagInfoAboutGroup(List<Object> fieldOrDescrOrAlias,
int tag) |
List<Integer> |
getTagsByMsgType(String messageType)
Gets tags for message.
|
Valblockdef |
getValblockdef(String idRef)
Gets valblockdef by idRef.
|
List<Valblockdef> |
getValblockdefs()
Gets val blocks.
|
FIXVersion |
getVersion()
Gets fix version.
|
com.epam.fixengine.configuration.FIXVersionContainer |
getVersionContainer() |
boolean |
hasRequiredTagInMessage(List<?> list,
FIXFieldList fieldList)
Checks if fields list of message contains tags from block
|
boolean |
hasRequiredTagInMessage(List<?> list,
FIXFieldList fieldList,
boolean withInternalGroup) |
boolean |
isGroupTag(String msgType,
int groupTag)
Checks if group
groupTag defined for message type msgType |
boolean |
isHeader(int tag) |
boolean |
isKnownTag(int tag)
Checks if tag exist.
|
boolean |
isMessageContainField(String messageType,
int tag)
Checks if message body contain tag.
|
boolean |
isRequiredTag(String msgType,
Integer tag)
Checks if tag is required for message type.
|
boolean |
isTagDefinedForMessage(String msgType,
int tagNum)
Method isTagDefinedForMessage, verifies whether the tag is present in a
message by type of message.
|
boolean |
isTagDefinedForMessageOrBlock(String shortName,
int tagNum)
Verifies whether the tag is defines for message by type of message
|
boolean |
isTrailer(int tag) |
protected static FIXErrorBuilder fixErrorBuilder
public List<Valblockdef> getValblockdefs()
public int[] getAllTags()
public boolean isHeader(int tag)
public boolean isTrailer(int tag)
public Fielddef[] getFieldDef()
public Map<String,IConditionalMessage> getConditionalCache()
public List<Integer> getTagsByMsgType(String messageType)
messageType
- the message type of messagepublic List<Fielddef> getFieldsByMessageType(String messageType)
messageType
- the message type of messagepublic FIXVersion getVersion()
public com.epam.fixengine.configuration.FIXVersionContainer getVersionContainer()
public Fielddef getFieldDefByTag(int tag)
tag
- the tagpublic Fielddef getFieldDefByName(String name)
name
- the field namepublic int getFieldTagByName(String name)
name
- the field namepublic String getFieldTypeByFieldName(String name)
name
- the field namepublic String getFieldTypeByFieldTag(int tag)
tag
- the filed tag.public Group findGroup(String msgType, int startTagId)
msgType
- the message type.startTagId
- the start tag if repeating group.public List<Object> getGroupContent(String msgType, int startTagId)
msgType
- the message type.startTagId
- the start tag if repeating group.public List<Fielddef> getGroupFieldDefs(String msgType, int startTagId)
msgType
- the message type.startTagId
- the start tag if repeating group.public List<Object> getMessageFieldDefHier(String msgType)
msgType
- the message type.public boolean isTagDefinedForMessage(String msgType, int tagNum)
msgType
- the message typetagNum
- the num of tagpublic Set<Integer> getRequiredTagsForMessage(String msgType)
msgType
- the type of messageMessageDefinitionsException
- if message does not existpublic boolean isTagDefinedForMessageOrBlock(String shortName, int tagNum)
shortName
- the type of messagetagNum
- the tagtrue
if defines, otherwise false
public boolean hasRequiredTagInMessage(List<?> list, FIXFieldList fieldList)
list
- the list of field of blockfieldList
- the field list of messagepublic boolean hasRequiredTagInMessage(List<?> list, FIXFieldList fieldList, boolean withInternalGroup)
public Map<Integer,Field> getGroupTagsWithInternalGroups(String msgType, int groupTag, FIXFieldList fieldList)
msgType
- the message typegroupTag
- the group tagfieldList
- the list of fieldspublic Map<Integer,Field> getGroupTagsWithOutInternalGroups(String msgType, int tag, FIXFieldList fieldList)
msgType
- the message typetag
- the tagfieldList
- the list of fieldspublic Map<Integer,Field> getGroupsTags(String msgType, int groupTag, FIXFieldList fieldList, boolean withInternalGroup)
msgType
- the message typegroupTag
- the group tagfieldList
- the list of fieldswithInternalGroup
- if flag is true the inner groups will be includedpublic boolean isKnownTag(int tag)
tag
- the tagpublic boolean isGroupTag(String msgType, int groupTag)
groupTag
defined for message type msgType
groupTag
- the group tagmsgType
- the message typepublic int getStartTagForGroup(String msgType, int tag)
msgType
- Type of message.tag
- Tag of Group length.public MessageDefinitionsUtils getMessageDefUtils()
public BlockDefinitionsUtils getBlockDefUtils()
public com.epam.fix.dictionary.Dictionaries getFixdic()
public Blockdef getSmhDef()
public Blockdef getSmtDef()
public List<Object> getFieldDefsHier(List<?> fieldsWithGroupsAndBlocks)
fieldsWithGroupsAndBlocks
- the collection with fields, groups and blockspublic List<Fielddef> getFieldDefs(List<?> fieldsWithGroupsAndBlocks, boolean useGroupTags)
fieldsWithGroupsAndBlocks
- the collection with fields, groups and blocksuseGroupTags
- the flag provides to include the fields of group to result collectionpublic List<Integer> getFieldsTags(List<?> list)
list
- Input listpublic List<Field> getFields(List<?> list)
list
- Input listpublic List<Field> getFields(String messageType)
messageType
- the type of FIX Message.public GroupTagInfo getTagInfoAboutGroup(List<Object> fieldOrDescrOrAlias, int tag)
public int countLengthForGroupUnit(FIXField[] message, int indexOfGroupTags, int startGroupTag, FIXField lengthOfGroupTag, Set<Integer> stackOfGroupsTag, String messageType, int rootGroupStartTag)
message
- the messageindexOfGroupTags
- the index of group tagstartGroupTag
- the start group taglengthOfGroupTag
- the length of group tagstackOfGroupsTag
- the group tagsmessageType
- the message typerootGroupStartTag
- the root group start tagpublic int countLengthForGroupUnit(FIXFieldList message, int indexOfGroupTags, int startGroupTag, FIXField lengthOfGroupTag, Set<Integer> stackOfGroupsTag, String messageType, int rootGroupStartTag)
message
- the messageindexOfGroupTags
- the index of group tagstartGroupTag
- the start group taglengthOfGroupTag
- the length of group tagstackOfGroupsTag
- the group tagsmessageType
- the message typerootGroupStartTag
- the root group start tagpublic int countLengthForOneGroupUnit(FIXField[] message, int indexOfGroupTags, int startGroupTag, FIXField lengthOfGroupTag, Set<Integer> stackOfGroupsTag, String messageType, int rootGroupStartTag)
message
- the messageindexOfGroupTags
- the index of group tagstartGroupTag
- the start group taglengthOfGroupTag
- the length of group tagstackOfGroupsTag
- the group tagsmessageType
- the message typerootGroupStartTag
- the root group start tagpublic int countLengthForOneGroupUnit(FIXFieldList message, int indexOfGroupTags, int startGroupTag, FIXField lengthOfGroupTag, Set<Integer> stackOfGroupsTag, String messageType, int rootGroupStartTag)
message
- the messageindexOfGroupTags
- the index of group tagstartGroupTag
- the start group taglengthOfGroupTag
- the length of group tagstackOfGroupsTag
- the group tagsmessageType
- the message typerootGroupStartTag
- the root group start tagpublic Field getField(String msgType, Integer tag)
msgType
- the message typetag
- the tagpublic boolean isRequiredTag(String msgType, Integer tag)
msgType
- the message typetag
- the tagpublic GroupsCache getGroupsCache(String msgType)
public boolean isMessageContainField(String messageType, int tag)
messageType
- the message typetag
- the tagpublic Valblockdef getValblockdef(String idRef)
idRef
- the id ref nameCopyright © 2000–2022 EPAM Systems. All rights reserved.