Class AbstractValidator
General interface to provide creating of validators for an application.
Inheritance
System.Object
AbstractValidator
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: FixAntenna.Fix.Validation.Engine
Assembly: FixAntenna.Validation.dll
Syntax
public abstract class AbstractValidator : IValidator
Constructors
AbstractValidator(FixUtil)
Declaration
public AbstractValidator(FixUtil util)
Parameters
Type | Name | Description |
---|---|---|
FixUtil | util |
Fields
FixErrorBuilder
Declaration
protected static FixErrorBuilder FixErrorBuilder
Field Value
Type | Description |
---|---|
FixErrorBuilder |
Util
Declaration
protected FixUtil Util
Field Value
Type | Description |
---|---|
FixUtil |
Methods
GetUtil()
Gets fix util.
Declaration
public virtual FixUtil GetUtil()
Returns
Type | Description |
---|---|
FixUtil | FixUtil |
IsHeader(Int32)
Declaration
public virtual bool IsHeader(int tag)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | tag |
Returns
Type | Description |
---|---|
System.Boolean |
IsHeaderOrTrailer(Int32)
Declaration
public virtual bool IsHeaderOrTrailer(int tag)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | tag |
Returns
Type | Description |
---|---|
System.Boolean |
IsMessageTypeExist(String)
Declaration
public virtual bool IsMessageTypeExist(string msgType)
Parameters
Type | Name | Description |
---|---|---|
System.String | msgType |
Returns
Type | Description |
---|---|
System.Boolean |
IsTrailer(Int32)
Declaration
public virtual bool IsTrailer(int tag)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | tag |
Returns
Type | Description |
---|---|
System.Boolean |
Validate(String, IValidationFixMessage, Boolean)
Method "validate" validates of FIX message and returns list of errors of validation process.
Declaration
public abstract FixErrorContainer Validate(string msgType, IValidationFixMessage message, bool isContentValidation)
Parameters
Type | Name | Description |
---|---|---|
System.String | msgType | Type of Message. |
IValidationFixMessage | message | FIX Message. |
System.Boolean | isContentValidation | If true that is mean that will be validation only content of FIX message, without header or trailer. |
Returns
Type | Description |
---|---|
FixErrorContainer | List of errors of validation, if process of validationg is done successeful method returns empty list of errors. |