public class ValidationEngine extends Object implements IMessageValidator
Constructor and Description |
---|
ValidationEngine(IValidatorContainer validators)
Constructor Validator creates a new Validator instance.
|
ValidationEngine(IValidatorContainer validators,
boolean isContentValidation)
Constructor Validator creates a new Validator instance.
|
Modifier and Type | Method and Description |
---|---|
static void |
preloadDictionary(com.epam.fixengine.configuration.FIXVersionContainer fixVersionContainer,
boolean replaceData)
Pre-loads dictionaries from path
uriToDictionary . |
static void |
preloadDictionary(FIXVersion version,
String uriToDictionary,
boolean replaceData)
Pre-loads dictionaries from path
uriToDictionary . |
static void |
preloadDictionary(FIXVersion version,
String uriToDictionary,
boolean isExternalResource,
boolean replaceData)
Deprecated.
@see #preloadDictionary(FIXVersion version, String uriToDictionary, boolean replaceData)
|
static void |
preloadDictionary(String dictionaryID,
FIXVersion version,
String uriToDictionary,
boolean replaceData)
Pre-loads dictionaries from path
uriToDictionary . |
void |
setContentValidation(boolean contentValidation)
Enable/disable content validation.
|
String |
toString() |
FIXErrorContainer |
validateFIXMessage(FIXFieldList message)
Validates the fix message.
|
FIXErrorContainer |
validateFIXMessage(String msgType,
FIXFieldList message)
Method validateFIXMessage validates the FIXMessage.
|
public ValidationEngine(IValidatorContainer validators, boolean isContentValidation)
validators
- of type ListisContentValidation
- Indicates that will be validation only content
of FIXMessage.public ValidationEngine(IValidatorContainer validators)
validators
- of type Listpublic FIXErrorContainer validateFIXMessage(FIXFieldList message)
IMessageValidator
validateFIXMessage
in interface IMessageValidator
message
- the fix messagepublic FIXErrorContainer validateFIXMessage(String msgType, FIXFieldList message)
validateFIXMessage
in interface IMessageValidator
msgType
- of type Stringmessage
- of type FIXFieldListpublic static void preloadDictionary(com.epam.fixengine.configuration.FIXVersionContainer fixVersionContainer, boolean replaceData)
uriToDictionary
. If uriToDictionary
is empty or null.fixVersionContainer
- Version of FIX dictionary.replaceData
- If true
systems replace the old dictionary(if old dictionary is null system create new dictionary with input elements.)public static void preloadDictionary(FIXVersion version, String uriToDictionary, boolean replaceData)
uriToDictionary
. If uriToDictionary
is empty or null.version
- Version of FIX dictionary.uriToDictionary
- Path to the dictionary. If path empty or null system loads dictionary from the class path.replaceData
- If true
systems replace the old dictionary(if old dictionary is null system create new dictionary with input elements.)
In other way system adds input elements or replace if found the differences in the same elements.public static void preloadDictionary(String dictionaryID, FIXVersion version, String uriToDictionary, boolean replaceData)
uriToDictionary
. If uriToDictionary
is empty or null.dictionaryID
- Unique ID of dictionaryversion
- Version of FIX dictionary.uriToDictionary
- Path to the dictionary. If path empty or null system loads dictionary from the class path.replaceData
- If true
systems replace the old dictionary(if old dictionary is null system create new dictionary with input elements.)
In other way system adds input elements or replace if found the differences in the same elements.@Deprecated public static void preloadDictionary(FIXVersion version, String uriToDictionary, boolean isExternalResource, boolean replaceData)
uriToDictionary
. If uriToDictionary
is empty or null.version
- Version of FIX dictionary.uriToDictionary
- Path to the dictionary. If path empty or null system loads dictionary from the class path.isExternalResource
- the flagreplaceData
- If true
systems replace the old dictionary(if old dictionary is null system create new dictionary with input elements.)
In other way system adds input elements or replace if found the differences in the same elements.
NOTE: isExternalResource parameters is not used eny more. By default path is interpreted as external.
To define classpath resource need to add "classpath:" prefix.public void setContentValidation(boolean contentValidation)
setContentValidation
in interface IMessageValidator
contentValidation
- Copyright © 2000–2022 EPAM Systems. All rights reserved.