com.epam.fix.validation.engine.validators
Class RequiredFieldValidator

java.lang.Object
  extended by com.epam.fix.validation.engine.AbstractValidator
      extended by com.epam.fix.validation.engine.validators.RequiredFieldValidator
All Implemented Interfaces:
IValidator

public class RequiredFieldValidator
extends AbstractValidator

Author:
Serhiy_Zahriychuk Date: Sep 9, 2008

Field Summary
 
Fields inherited from class com.epam.fix.validation.engine.AbstractValidator
fixErrorBuilder, util
 
Constructor Summary
RequiredFieldValidator(FIXUtil util)
          Constructor RequiredFieldValidator creates a new RequiredFieldValidator instance.
 
Method Summary
 FIXErrorContainer validate(String msgType, IValidationFIXMessage message, boolean isContentValidation)
          Method "validate" validates of FIX message and returns list of errors of validation process.
 
Methods inherited from class com.epam.fix.validation.engine.AbstractValidator
getUtil, isHeader, isHeaderOrTrailer, isMessageTypeExist, isTrailer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequiredFieldValidator

public RequiredFieldValidator(FIXUtil util)
Constructor RequiredFieldValidator creates a new RequiredFieldValidator instance.

Parameters:
util - of type FixUtils
Method Detail

validate

public FIXErrorContainer validate(String msgType,
                                  IValidationFIXMessage message,
                                  boolean isContentValidation)
Description copied from class: AbstractValidator
Method "validate" validates of FIX message and returns list of errors of validation process.

Specified by:
validate in interface IValidator
Specified by:
validate in class AbstractValidator
Parameters:
msgType - Type of Message.
message - FIX Message.
isContentValidation - If true that is mean that will be validation only content of FIX message, without header or trailer.
Returns:
List of errors of validation, if process of validationg is done successeful method returns empty list of errors.


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