Table of Contents

Class StaticPattern<T>

Namespace
NMF.Transformations.Linq
Assembly
NMF.Transformations.dll

Denotes a static pattern used as input for a transformation rule

public class StaticPattern<T> : ITransformationRulePattern<T>, ITransformationRulePattern, ITransformationPattern

Type Parameters

T
Inheritance
StaticPattern<T>
Implements
Inherited Members

Constructors

StaticPattern(Func<ITransformationContext, IEnumerable<T>>)

Creates a new static pattern to fire transformation rule executions

public StaticPattern(Func<ITransformationContext, IEnumerable<T>> selector)

Parameters

selector Func<ITransformationContext, IEnumerable<T>>

A function that selects the inputs for the transformation rule

Properties

Selector

Gets the function to select inputs for the target rule

public Func<ITransformationContext, IEnumerable<T>> Selector { get; set; }

Property Value

Func<ITransformationContext, IEnumerable<T>>

TargetRule

Gets or sets the transformation rule that is the target for the current transformation rule pattern

public GeneralTransformationRule<T> TargetRule { get; set; }

Property Value

GeneralTransformationRule<T>

Methods

CreatePattern(ITransformationContext)

Applies the current pattern to the given transformation context

public ITransformationPatternContext CreatePattern(ITransformationContext context)

Parameters

context ITransformationContext

The transformation context in which the pattern should be applied

Returns

ITransformationPatternContext

A transformation pattern context object that represents the pattern within the given transformation context