com.epam.fix.validation.engine.utils.definitions
Class MessageDefinitionsUtils

java.lang.Object
  extended by com.epam.fix.validation.engine.utils.definitions.AbstractFIXDefinition<Msgdef>
      extended by 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 Summary
MessageDefinitionsUtils(Dictionaries msgdefList)
          Constructor MessageTypes creates a new MessageTypes instance.
 
Method Summary
 boolean contains(String messageType)
          Checks if contains input message type in dictionary of FIX protocol
 Collection<Msgdef> get()
          Returns the collection of values of this Map.
 Msgdef get(String messageType)
          Gets element from map by key
 String getMessageTypeByName(String msgType)
          Method returns messageType by name of message
 Set<String> getMessageTypes()
          Method getMessageTypes
 List<Integer> getRequiredTags(List fieldList, BlockDefinitionsUtils blockDefinitionsUtils)
          Method getRequiredTag returns the requiredTag of this FixDefMap object.
 List<Integer> getRequiredTags(String messageType, BlockDefinitionsUtils blockDefinitionsUtils)
          Method getRequiredTag returns the requiredTag of this FixDefMap object.
 boolean isMessageTypeExist(String messageType)
           
 void put(List t)
          Puts the element into map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageDefinitionsUtils

public MessageDefinitionsUtils(Dictionaries msgdefList)
Constructor MessageTypes creates a new MessageTypes instance.

Parameters:
msgdefList - of type List
Method Detail

getMessageTypes

public Set<String> getMessageTypes()
Method getMessageTypes

Returns:
Set
See Also:
FixMessageDefinitions.getMessageTypes()

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


Copyright © 2000-2014 EPAM Systems. All Rights Reserved.