Class OrValidateOperator
The logical OR operator.
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.Validators.Condition.Operators
Assembly: FixAntenna.Validation.dll
Syntax
public class OrValidateOperator : AbstractCondition, ICondition
Constructors
OrValidateOperator(ICondition, ICondition, Boolean)
Creates the OrValidateOperator
.
Declaration
public OrValidateOperator(ICondition operand1, ICondition operand2, bool isGroup)
Parameters
Type | Name | Description |
---|---|---|
ICondition | operand1 | the first operand |
ICondition | operand2 | the second operand |
System.Boolean | isGroup | the group tag |
Methods
GetOperand1()
Gets the first operand.
Declaration
public virtual ICondition GetOperand1()
Returns
Type | Description |
---|---|
ICondition |
GetOperand2()
Gets the second operand.
Declaration
public virtual ICondition GetOperand2()
Returns
Type | Description |
---|---|
ICondition |
GetTags()
Gets tags from operands.
Declaration
public override IList<int> GetTags()
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<System.Int32> |
Overrides
IsGroupTags()
Returns true, if one of all operand is group.
Declaration
public override bool IsGroupTags()
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
IsRequired(FixMessage)
Returns true, if both operands are required.
Declaration
public override bool IsRequired(FixMessage msg)
Parameters
Type | Name | Description |
---|---|---|
FixMessage | msg |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
SetGroupTags(Boolean)
Sets group flag.
Declaration
public override void SetGroupTags(bool isGroup)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isGroup | the group flag |
Overrides
ValidateCondition(Int32, FixMessage, String, IDictionary<Int32, ICondition>, Boolean)
Returns true, if one of the operators returns true.
The example of use: existtags(T$1) OR existtags(T$2).
Declaration
public override bool ValidateCondition(int validateTag, FixMessage msg, string msgType, IDictionary<int, ICondition> tagsMap, bool inversion)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | validateTag | the validate tag |
FixMessage | msg | |
System.String | msgType | the message type |
System.Collections.Generic.IDictionary<System.Int32, ICondition> | tagsMap | All tags with conditional for current part of FIXMessage. |
System.Boolean | inversion | Inversion: if true all validations are doing in invert order. |
Returns
Type | Description |
---|---|
System.Boolean |