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>

public final class MessageDefinitionsUtils extends AbstractFIXDefinition<Msgdef>
Author:
Serhiy_Zahriychuk Date: Sep 9, 2008
  • 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

      public Set<String> getMessageTypes()
      Method getMessageTypes
      Returns:
      Set
      See Also:
    • getRequiredTags

      public List<Integer> getRequiredTags(List fieldList, BlockDefinitionsUtils blockDefinitionsUtils)
      Method getRequiredTag returns the requiredTag of this FixDefMap object.
      Parameters:
      fieldList - List of field,groups and blocks
      blockDefinitionsUtils - 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 message
      blockDefinitionsUtils - Block definition util
      Returns:
      the requiredTag (type int[]) of this FixDefMap object.
      Throws:
      MessageDefinitionsException - if message does not exist
    • get

      public Msgdef get(String messageType)
      Description copied from interface: FixMessageDefinitions
      Gets element from map by key
      Parameters:
      messageType - of type String
      Returns:
      instance of T
    • isMessageTypeExist

      public boolean isMessageTypeExist(String messageType)
    • put

      public void put(List t)
      Description copied from interface: FixMessageDefinitions
      Puts the element into map.
      Parameters:
      t - the list of elements
    • get

      public Collection<Msgdef> get()
      Description copied from interface: FixMessageDefinitions
      Returns the collection of values of this Map.
      Returns:
      the messageDefs (type Collection) of this MessageTypes object.
    • contains

      public boolean contains(String messageType)
      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

      public String getMessageTypeByName(String msgType)
      Method returns messageType by name of message
      Parameters:
      msgType - Name of message
      Returns:
      Type of Message
      Throws:
      MessageDefinitionsException - if message does not exist