Package com.epam.fix.validation.engine
Class AbstractValidator
java.lang.Object
com.epam.fix.validation.engine.AbstractValidator
- All Implemented Interfaces:
IValidator
- Direct Known Subclasses:
ConditionalValidator
,DuplicatedFieldValidator
,FieldAllowedInMessageValidator
,FieldOrderValidator
,FieldsDefinitionsTypeValidator
,GroupValidator
,MessageTypeValidator
,MessageWelformedValidator
,RequiredFieldValidator
General interface to provide creating of validators for an application.
- Author:
- Serhiy_Zahriychuk Date: Sep 9, 2008
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetUtil()
Gets fix util.protected boolean
isHeader
(int tag) protected boolean
isHeaderOrTrailer
(int tag) protected boolean
isMessageTypeExist
(String msgType) protected boolean
isTrailer
(int tag) abstract FIXErrorContainer
validate
(String msgType, IValidationFIXMessage fixMessage, boolean isContentValidation) Method "validate" validates of FIX message and returns list of errors of validation process.
-
Field Details
-
fixErrorBuilder
-
util
-
-
Constructor Details
-
AbstractValidator
-
-
Method Details
-
validate
public abstract FIXErrorContainer validate(String msgType, IValidationFIXMessage fixMessage, boolean isContentValidation) Method "validate" validates of FIX message and returns list of errors of validation process.- Specified by:
validate
in interfaceIValidator
- Parameters:
msgType
- Type of Message.fixMessage
- 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.
-
isHeader
protected boolean isHeader(int tag) -
isTrailer
protected boolean isTrailer(int tag) -
isHeaderOrTrailer
protected boolean isHeaderOrTrailer(int tag) -
isMessageTypeExist
-
getUtil
Gets fix util.- Returns:
- FIXUtil
-