Class MessageDefinitionsUtils
java.lang.Object
com.epam.fix.validation.engine.utils.definitions.AbstractFIXDefinition<Msgdef>
com.epam.fix.validation.engine.utils.definitions.MessageDefinitionsUtils
- All Implemented Interfaces:
FixMessageDefinitions<Msgdef>
- Author:
- Serhiy_Zahriychuk Date: Sep 9, 2008
-
Constructor Summary
ConstructorsConstructorDescriptionMessageDefinitionsUtils
(com.epam.fix.dictionary.Dictionaries msgdefList) Constructor MessageTypes creates a new MessageTypes instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if contains input message type in dictionary of FIX protocolget()
Returns the collection of values of this Map.Gets element from map by keygetMessageTypeByName
(String msgType) Method returns messageType by name of messageMethod getMessageTypesgetRequiredTags
(String messageType, BlockDefinitionsUtils blockDefinitionsUtils) Method getRequiredTag returns the requiredTag of this FixDefMap object.getRequiredTags
(List fieldList, BlockDefinitionsUtils blockDefinitionsUtils) Method getRequiredTag returns the requiredTag of this FixDefMap object.boolean
isMessageTypeExist
(String messageType) void
Puts the element into map.
-
Constructor Details
-
MessageDefinitionsUtils
public MessageDefinitionsUtils(com.epam.fix.dictionary.Dictionaries msgdefList) Constructor MessageTypes creates a new MessageTypes instance.- Parameters:
msgdefList
- of type List
-
-
Method Details
-
getMessageTypes
Method getMessageTypes- Returns:
- Set
- See Also:
-
getRequiredTags
Method getRequiredTag returns the requiredTag of this FixDefMap object.- Parameters:
fieldList
- List of field,groups and blocksblockDefinitionsUtils
- Block definition util- Returns:
- the requiredTag (type int[]) of this FixDefMap object.
-
getRequiredTags
public List<Integer> getRequiredTags(String messageType, BlockDefinitionsUtils blockDefinitionsUtils) Method getRequiredTag returns the requiredTag of this FixDefMap object.- Parameters:
messageType
- Type of messageblockDefinitionsUtils
- Block definition util- Returns:
- the requiredTag (type int[]) of this FixDefMap object.
- Throws:
MessageDefinitionsException
- if message does not exist
-
get
Description copied from interface:FixMessageDefinitions
Gets element from map by key- Parameters:
messageType
- of type String- Returns:
- instance of T
-
isMessageTypeExist
-
put
Description copied from interface:FixMessageDefinitions
Puts the element into map.- Parameters:
t
- the list of elements
-
get
Description copied from interface:FixMessageDefinitions
Returns the collection of values of this Map.- Returns:
- the messageDefs (type Collection
) of this MessageTypes object.
-
contains
Description copied from interface:FixMessageDefinitions
Checks if contains input message type in dictionary of FIX protocol- Parameters:
messageType
- Message Type- Returns:
- boolean true if contains
-
getMessageTypeByName
Method returns messageType by name of message- Parameters:
msgType
- Name of message- Returns:
- Type of Message
- Throws:
MessageDefinitionsException
- if message does not exist
-