Class StaticPattern<T>
Denotes a static pattern used as input for a transformation rule
Inherited Members
Namespace: NMF.Transformations.Linq
Assembly: NMF.Transformations.dll
Syntax
public class StaticPattern<T> : ITransformationRulePattern<T>, ITransformationRulePattern, ITransformationPattern
Type Parameters
Name | Description |
---|---|
T |
Constructors
| Edit this page View SourceStaticPattern(Func<ITransformationContext, IEnumerable<T>>)
Creates a new static pattern to fire transformation rule executions
Declaration
public StaticPattern(Func<ITransformationContext, IEnumerable<T>> selector)
Parameters
Type | Name | Description |
---|---|---|
Func<ITransformationContext, IEnumerable<T>> | selector | A function that selects the inputs for the transformation rule |
Properties
| Edit this page View SourceSelector
Gets the function to select inputs for the target rule
Declaration
public Func<ITransformationContext, IEnumerable<T>> Selector { get; set; }
Property Value
Type | Description |
---|---|
Func<ITransformationContext, IEnumerable<T>> |
TargetRule
Gets or sets the transformation rule that is the target for the current transformation rule pattern
Declaration
public GeneralTransformationRule<T> TargetRule { get; set; }
Property Value
Type | Description |
---|---|
GeneralTransformationRule<T> |
Methods
| Edit this page View SourceCreatePattern(ITransformationContext)
Applies the current pattern to the given transformation context
Declaration
public ITransformationPatternContext CreatePattern(ITransformationContext context)
Parameters
Type | Name | Description |
---|---|---|
ITransformationContext | context | The transformation context in which the pattern should be applied |
Returns
Type | Description |
---|---|
ITransformationPatternContext | A transformation pattern context object that represents the pattern within the given transformation context |