Search Results for

    Show / Hide Table of Contents

    Class FilterExpression

    Base class for filter expressions. Expressions can be atomic or composed.

    Inheritance
    object
    FilterExpression
    AtomicExpression
    ComposedExpression
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Sdl.LanguagePlatform.TranslationMemory
    Assembly: Sdl.LanguagePlatform.TranslationMemory.dll
    Syntax
    [DataContract]
    [KnownType(typeof(ComposedExpression))]
    [KnownType(typeof(AtomicExpression))]
    public abstract class FilterExpression

    Constructors

    FilterExpression()

    Declaration
    protected FilterExpression()

    Methods

    Evaluate(ITypedKeyValueContainer)

    Evaluates a filter expression for a given a set of field values.

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

    A set of field values.

    Returns
    Type Description
    bool

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

    Validate(IFieldDefinitions, bool)

    Validates the filter expression against the provided field definitions.

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

    The field definitions to validate against.

    bool 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
    bool

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

    In this article
    • Constructors
      • FilterExpression()
    • Methods
      • Evaluate(ITypedKeyValueContainer)
      • Validate(IFieldDefinitions, bool)
    Back to top Generated by DocFX