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

java.lang.Object
  extended by com.epam.fix.validation.engine.utils.definitions.AbstractFIXDefinition<Blockdef>
      extended by com.epam.fix.validation.engine.utils.definitions.BlockDefinitionsUtils
All Implemented Interfaces:
FixMessageDefinitions<Blockdef>

public final class BlockDefinitionsUtils
extends AbstractFIXDefinition<Blockdef>

Author:
Serhiy_Zahriychuk Date: Sep 9, 2008

Constructor Summary
BlockDefinitionsUtils(Dictionaries dictionariesContainer)
          Creates the BlockDefinitionsUtils.
 
Method Summary
 boolean contains(String blockName)
          Checks if block with name blockName exists.
 Collection<Blockdef> get()
          Gets the collection of block.
 Blockdef get(String blockName)
          Gets the block.
 Set<String> getMessageTypes()
          Gets set of block
 List<Integer> getRequiredTags(String blockName)
          Gets required tags for message.
 void put(List blocks)
          Puts the blocks to the map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockDefinitionsUtils

public BlockDefinitionsUtils(Dictionaries dictionariesContainer)
Creates the BlockDefinitionsUtils.

Parameters:
dictionariesContainer - the dictionary
Method Detail

getMessageTypes

public Set<String> getMessageTypes()
Gets set of block

Returns:
the messageTypes (type Set) of this FixDefMap object.

getRequiredTags

public List<Integer> getRequiredTags(String blockName)
Gets required tags for message.

Parameters:
blockName - the block name

put

public void put(List blocks)
Puts the blocks to the map.

Parameters:
blocks - the block collection

get

public Collection<Blockdef> get()
Gets the collection of block.

Returns:
the messageDefs (type Collection) of this MessageTypes object.

get

public Blockdef get(String blockName)
Gets the block.

Parameters:
blockName - the block name
Returns:
instance of T

contains

public boolean contains(String blockName)
Checks if block with name blockName exists.

Parameters:
blockName - the block name
Returns:
boolean true if contains


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