Class ValidationEngine
Validator provides functionality for validation FIX message using custom validators.
Inheritance
Implements
Inherited Members
Namespace: FixAntenna.Fix.Validation.Engine
Assembly: FixAntenna.Validation.dll
Syntax
public class ValidationEngine : IFixMessageValidator
Constructors
ValidationEngine(IValidatorContainer)
Constructor Validator creates a new Validator instance.
Declaration
public ValidationEngine(IValidatorContainer validators)
Parameters
Type | Name | Description |
---|---|---|
IValidatorContainer | validators |
ValidationEngine(IValidatorContainer, Boolean)
Constructor Validator creates a new Validator instance.
Declaration
public ValidationEngine(IValidatorContainer validators, bool isContentValidation)
Parameters
Type | Name | Description |
---|---|---|
IValidatorContainer | validators | |
System.Boolean | isContentValidation | Indicates that will be validation only content of FIXMessage. |
Methods
PreloadDictionary(FixVersion, String, Boolean)
Pre-loads dictionaries from path uriToDictionary
. If uriToDictionary
is empty or null.
Declaration
public static void PreloadDictionary(FixVersion version, string uriToDictionary, bool replaceData)
Parameters
Type | Name | Description |
---|---|---|
FixVersion | version | Version of FIX dictionary. |
System.String | uriToDictionary | Path to the dictionary. If path empty or null system loads dictionary from the class path. |
System.Boolean | replaceData | If |
PreloadDictionary(FixVersionContainer, Boolean)
Pre-loads dictionaries from path uriToDictionary
. If uriToDictionary
is empty or null.
Declaration
public static void PreloadDictionary(FixVersionContainer fixVersionContainer, bool replaceData)
Parameters
Type | Name | Description |
---|---|---|
FixVersionContainer | fixVersionContainer | Version of FIX dictionary. |
System.Boolean | replaceData | If |
PreloadDictionary(String, FixVersion, String, Boolean)
Pre-loads dictionaries from path uriToDictionary
. If uriToDictionary
is empty or null.
Declaration
public static void PreloadDictionary(string dictionaryId, FixVersion version, string uriToDictionary, bool replaceData)
Parameters
Type | Name | Description |
---|---|---|
System.String | dictionaryId | Unique ID of dictionary |
FixVersion | version | Version of FIX dictionary. |
System.String | uriToDictionary | Path to the dictionary. If path empty or null system loads dictionary from the class path. |
System.Boolean | replaceData | If |
SetContentValidation(Boolean)
Enable/disable content validation.
Declaration
public virtual void SetContentValidation(bool contentValidation)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | contentValidation |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
ValidateFixMessage(FixMessage)
Declaration
public virtual FixErrorContainer ValidateFixMessage(FixMessage message)
Parameters
Type | Name | Description |
---|---|---|
FixMessage | message |
Returns
Type | Description |
---|---|
FixErrorContainer |
ValidateFixMessage(String, FixMessage)
Method validateFIXMessage validates the FIXMessage.
Declaration
public virtual FixErrorContainer ValidateFixMessage(string msgType, FixMessage message)
Parameters
Type | Name | Description |
---|---|---|
System.String | msgType | of type String |
FixMessage | message | of type FixMessage |
Returns
Type | Description |
---|---|
FixErrorContainer | List of errors of validation , if validate is successful method returns empty list |