Class MessageDefinitionsUtils
Inheritance
Implements
Inherited Members
Namespace: FixAntenna.Fix.Validation.Engine.Utils.Definitions
Assembly: FixAntenna.Validation.dll
Syntax
public sealed class MessageDefinitionsUtils : IFixMessageDefinitions<Msgdef>
Constructors
MessageDefinitionsUtils(Dictionaries)
Constructor MessageTypes creates a new MessageTypes instance.
Declaration
public MessageDefinitionsUtils(Dictionaries dictionariesContainer)
Parameters
Type | Name | Description |
---|---|---|
Dictionaries | dictionariesContainer |
Methods
Contains(String)
Checks if Contains input message type in dictionary of FIX protocol
Declaration
public bool Contains(string messageType)
Parameters
Type | Name | Description |
---|---|---|
System.String | messageType | Message Type |
Returns
Type | Description |
---|---|
System.Boolean | boolean true if Contains |
Get()
Returns the collection of values of this Map.
Declaration
public ICollection<Msgdef> Get()
Returns
Type | Description |
---|---|
System.Collections.Generic.ICollection<Msgdef> | the messageDefs of this MessageTypes object. |
Get(String)
Gets element from map by key
Declaration
public Msgdef Get(string messageType)
Parameters
Type | Name | Description |
---|---|---|
System.String | messageType | of type String |
Returns
Type | Description |
---|---|
Msgdef | instance of T |
GetMessageTypeByName(String)
Method returns messageType by name of message
Declaration
public string GetMessageTypeByName(string msgType)
Parameters
Type | Name | Description |
---|---|---|
System.String | msgType | Name of message |
Returns
Type | Description |
---|---|
System.String | Type of Message |
Exceptions
Type | Condition |
---|---|
MessageDefinitionsException | if message does not exist |
GetMessageTypes()
Method GetMessageTypes
Declaration
public ISet<string> GetMessageTypes()
Returns
Type | Description |
---|---|
System.Collections.Generic.ISet<System.String> |
See Also
GetRequiredTags(IList<Object>, BlockDefinitionsUtils)
Method getRequiredTag returns the requiredTag of this FixDefMap object.
Declaration
public IList<int> GetRequiredTags(IList<object> fieldList, BlockDefinitionsUtils blockDefinitionsUtils)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<System.Object> | fieldList | List of field,groups and blocks |
BlockDefinitionsUtils | blockDefinitionsUtils | Block definition util |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<System.Int32> | the requiredTag of this FixDefMap object. |
GetRequiredTags(String, BlockDefinitionsUtils)
Method getRequiredTag returns the requiredTag of this FixDefMap object.
Declaration
public IList<int> GetRequiredTags(string messageType, BlockDefinitionsUtils blockDefinitionsUtils)
Parameters
Type | Name | Description |
---|---|---|
System.String | messageType | Type of message |
BlockDefinitionsUtils | blockDefinitionsUtils | Block definition util |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<System.Int32> | the requiredTag of this FixDefMap object. |
Exceptions
Type | Condition |
---|---|
MessageDefinitionsException | if message does not exist |
IsMessageTypeExist(String)
Declaration
public bool IsMessageTypeExist(string messageType)
Parameters
Type | Name | Description |
---|---|---|
System.String | messageType |
Returns
Type | Description |
---|---|
System.Boolean |
Put(IList<Msgdef>)
Puts the element into map.
Declaration
public void Put(IList<Msgdef> elements)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<Msgdef> | elements |