Search Results for

    Show / Hide Table of Contents

    Class ComposedExpression

    Represents a boolean composed expression. The operator can be AND, OR and NOT and the operands can be either atomic expressions or other composed expressions.

    Inheritance
    System.Object
    FilterExpression
    ComposedExpression
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Sdl.LanguagePlatform.TranslationMemory
    Assembly: Sdl.LanguagePlatform.TranslationMemory.dll
    Syntax
    public class ComposedExpression : FilterExpression

    Constructors

    ComposedExpression(FilterExpression, ComposedExpression.Operator, FilterExpression)

    Initializes a new instance of the ComposedExpression class with the specified operator and left and right operands.

    Declaration
    public ComposedExpression(FilterExpression leftOperand, ComposedExpression.Operator op, FilterExpression rightOperand)
    Parameters
    Type Name Description
    FilterExpression leftOperand

    The left operand.

    ComposedExpression.Operator op

    The operator.

    FilterExpression rightOperand

    The right operand.

    Properties

    LeftOperand

    Gets or sets the left operand of this composed expression. Can only be null if the expression is used with the NOT operator.

    Declaration
    public FilterExpression LeftOperand { get; set; }
    Property Value
    Type Description
    FilterExpression

    Op

    Gets or sets the operator of this composed expression.

    Declaration
    public ComposedExpression.Operator Op { get; set; }
    Property Value
    Type Description
    ComposedExpression.Operator

    RightOperand

    Gets or sets the right operand of this composed expression. Cannot be null.

    Declaration
    public FilterExpression RightOperand { get; set; }
    Property Value
    Type Description
    FilterExpression

    Methods

    Evaluate(ITypedKeyValueContainer)

    See Evaluate(ITypedKeyValueContainer)

    Declaration
    public override bool Evaluate(ITypedKeyValueContainer values)
    Parameters
    Type Name Description
    ITypedKeyValueContainer values

    A set of field values.

    Returns
    Type Description
    System.Boolean

    true if the field values satisfy the expression, false otherwise.

    Overrides
    FilterExpression.Evaluate(ITypedKeyValueContainer)

    ToString()

    System.Object.ToString()
    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    A string representation of the object, for display purposes.

    Overrides
    System.Object.ToString()

    Validate(IFieldDefinitions, Boolean)

    See Validate(IFieldDefinitions, Boolean)

    Declaration
    public override bool Validate(IFieldDefinitions fields, bool throwIfInvalid)
    Parameters
    Type Name Description
    IFieldDefinitions fields

    The field definitions to validate against.

    System.Boolean throwIfInvalid

    If true, an exception will be thrown if invalid field names are encountered. If false, the return value will be set to false without an exception being thrown.

    Returns
    Type Description
    System.Boolean

    true if the filter expression is valid, given the provided field definitions. false otherwise.

    Overrides
    FilterExpression.Validate(IFieldDefinitions, Boolean)

    On this page

    • Constructors
      • ComposedExpression(FilterExpression, ComposedExpression.Operator, FilterExpression)
    • Properties
      • LeftOperand
      • Op
      • RightOperand
    • Methods
      • Evaluate(ITypedKeyValueContainer)
      • ToString()
      • Validate(IFieldDefinitions, Boolean)
    Back to top Generated by DocFX