com.epam.fix.message
Class FIXFieldListUtil

java.lang.Object
  extended by com.epam.fix.message.FIXFieldListUtil

public class FIXFieldListUtil
extends Object

FIXFieldList helper class.


Method Summary
static boolean isEqualIgnoreOrder(FIXFieldList message1, FIXFieldList message2)
          Compares two message, the order of tag is ignored.
static boolean isGapFill(FIXFieldList message)
          Returns true if message has the 123 tag and value is equals 'Y'.
static boolean isIgnorableMsg(FIXFieldList message)
          Methods checks if message has 4 or A type.
static boolean isLogin(byte[] type)
          Deprecated. 
static boolean isLogin(FIXFieldList message)
          Checks if message type is login.
static boolean isLogout(byte[] type)
          Deprecated. 
static boolean isLogout(FIXFieldList message)
          Checks if message type is logout.
static boolean isMessageType(FIXFieldList message, byte[] msgType)
          Checks the message type.
static boolean isMessageType(FIXFieldList message, String msgType)
          Deprecated. 
static boolean isPosDup(FIXFieldList message)
          Returns true if message has the 43 tag.
static boolean isResetLogon(FIXFieldList message)
          Returns true if message is logon and has 34=1 and 141=Y
static boolean isSeqReset(byte[] type)
          Deprecated. 
static boolean isSeqReset(FIXFieldList message)
          Checks if message type is logout.
static boolean isTagValueEquals(FIXFieldList message, int tag, byte[] value)
          Checks is tag exist and value equals.
static boolean isTagValueEquals(FIXFieldList message, int tag, String value)
          Checks is tag exist and value equals.
static boolean isTagValueEquals(FIXField field, String value)
          Compare Field's raw value to passed String constant.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isMessageType

@Deprecated
public static boolean isMessageType(FIXFieldList message,
                                               String msgType)
Deprecated. 

Checks the message type.

Parameters:
message - the message
msgType - the message type

isMessageType

public static boolean isMessageType(FIXFieldList message,
                                    byte[] msgType)
Checks the message type.

Parameters:
message - the message
msgType - the message type

isTagValueEquals

public static boolean isTagValueEquals(FIXFieldList message,
                                       int tag,
                                       byte[] value)
Checks is tag exist and value equals.

Parameters:
message - the message
tag - the tag id
value - the tag value

isTagValueEquals

public static boolean isTagValueEquals(FIXFieldList message,
                                       int tag,
                                       String value)
Checks is tag exist and value equals.

Parameters:
message - the message
tag - the tag id
value - the tag value

isEqualIgnoreOrder

public static boolean isEqualIgnoreOrder(FIXFieldList message1,
                                         FIXFieldList message2)
Compares two message, the order of tag is ignored.

Parameters:
message1 - the message
message2 - the message

isTagValueEquals

public static boolean isTagValueEquals(FIXField field,
                                       String value)
Compare Field's raw value to passed String constant.

Parameters:
field - the field
value - the String constant

isPosDup

public static boolean isPosDup(FIXFieldList message)
Returns true if message has the 43 tag.

Parameters:
message - the message

isGapFill

public static boolean isGapFill(FIXFieldList message)
Returns true if message has the 123 tag and value is equals 'Y'.

Parameters:
message - the message

isLogin

@Deprecated
public static boolean isLogin(byte[] type)
Deprecated. 

Checks if type is login.

Parameters:
type - the array of bytes

isLogin

public static boolean isLogin(FIXFieldList message)
Checks if message type is login.

Parameters:
message - FIX message

isLogout

@Deprecated
public static boolean isLogout(byte[] type)
Deprecated. 

Checks if type is logout.

Parameters:
type - the array of bytes

isLogout

public static boolean isLogout(FIXFieldList message)
Checks if message type is logout.

Parameters:
message - FIX message

isSeqReset

@Deprecated
public static boolean isSeqReset(byte[] type)
Deprecated. 

Checks if type is logout.

Parameters:
type - the array of bytes

isSeqReset

public static boolean isSeqReset(FIXFieldList message)
Checks if message type is logout.

Parameters:
message - FIX message

isIgnorableMsg

public static boolean isIgnorableMsg(FIXFieldList message)
Methods checks if message has 4 or A type.

Parameters:
message - the message
Returns:
true if it is

isResetLogon

public static boolean isResetLogon(FIXFieldList message)
                            throws FieldNotFoundException
Returns true if message is logon and has 34=1 and 141=Y

Parameters:
message - the message
Throws:
FieldNotFoundException


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