|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.epam.fix.validation.engine.ValidationEngine
public class ValidationEngine
Validator provides functionality for validation FIX message using custom validators.
| Constructor Summary | |
|---|---|
ValidationEngine(IValidatorContainer validators)
Constructor Validator creates a new Validator instance. |
|
ValidationEngine(IValidatorContainer validators,
boolean isContentValidation)
Constructor Validator creates a new Validator instance. |
|
| Method Summary | |
|---|---|
static void |
preloadDictionary(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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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 List| Method Detail |
|---|
public FIXErrorContainer validateFIXMessage(FIXFieldList message)
IMessageValidator
validateFIXMessage in interface IMessageValidatormessage - the fix message
public FIXErrorContainer validateFIXMessage(String msgType,
FIXFieldList message)
validateFIXMessage in interface IMessageValidatormsgType - of type Stringmessage - of type FIXFieldList
public static void preloadDictionary(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 IMessageValidatorcontentValidation - public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||