com.epam.fix.validation
Class DummyMessageValidator

java.lang.Object
  extended by com.epam.fix.validation.DummyMessageValidator
All Implemented Interfaces:
MessageValidator

public class DummyMessageValidator
extends Object
implements MessageValidator

The dummy message validator implementation. This validator used instead of real validator.


Constructor Summary
DummyMessageValidator()
           
 
Method Summary
static MessageValidator getInstance()
           
 void setContentValidation(boolean isContentValidation)
          Sets the content validation flag.
 ValidationResult validate(FIXFieldList message)
          Validates the message.
 void validate(FIXFieldList message, ValidationResult result)
          Validates the message.
 ValidationResult validateContent(String msgType, FIXFieldList content)
          Validates the content of message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyMessageValidator

public DummyMessageValidator()
Method Detail

getInstance

public static MessageValidator getInstance()

validateContent

public ValidationResult validateContent(String msgType,
                                        FIXFieldList content)
Description copied from interface: MessageValidator
Validates the content of message.

Specified by:
validateContent in interface MessageValidator
Parameters:
msgType - the message type
content - the content of message

setContentValidation

public void setContentValidation(boolean isContentValidation)
Description copied from interface: MessageValidator
Sets the content validation flag.

Specified by:
setContentValidation in interface MessageValidator
Parameters:
isContentValidation - the content validation flag

validate

public ValidationResult validate(FIXFieldList message)
Description copied from interface: MessageValidator
Validates the message.

Specified by:
validate in interface MessageValidator
Parameters:
message - the fix message
Returns:
the result contains the errors collection if it exists.

validate

public void validate(FIXFieldList message,
                     ValidationResult result)
Description copied from interface: MessageValidator
Validates the message.

Specified by:
validate in interface MessageValidator
Parameters:
message - the ValidationResult object to avoid GC
result - the fix message


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