Class TransformationEngine
This class provides methods to execute transformations
Inherited Members
Namespace: NMF.Transformations
Assembly: NMF.Transformations.dll
Syntax
public static class TransformationEngine
Methods
| Edit this page View SourceProcessMany<TIn>(IEnumerable<TIn>, ITransformationEngineContext)
Processes the input argument using the provided transformation
Declaration
public static void ProcessMany<TIn>(IEnumerable<TIn> inputs, ITransformationEngineContext context) where TIn : class
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<TIn> | inputs | The input parameters |
ITransformationEngineContext | context | The context that should be used (must not be null) |
Type Parameters
Name | Description |
---|---|
TIn | The type of the input argument |
ProcessMany<TIn>(IEnumerable<TIn>, ITransformationEngineContext, GeneralTransformationRule<TIn>)
Processes the input argument using the provided transformation
Declaration
public static void ProcessMany<TIn>(IEnumerable<TIn> inputs, ITransformationEngineContext context, GeneralTransformationRule<TIn> startRule) where TIn : class
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<TIn> | inputs | The input parameters |
ITransformationEngineContext | context | The context that should be used (must not be null) |
GeneralTransformationRule<TIn> | startRule | The rule that should be started with. If this is null, an applicable rule is found. |
Type Parameters
Name | Description |
---|---|
TIn | The type of the input argument |
ProcessMany<TIn>(IEnumerable<TIn>, Transformation)
Processes the input argument using the provided transformation
Declaration
public static void ProcessMany<TIn>(IEnumerable<TIn> inputs, Transformation transformation) where TIn : class
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<TIn> | inputs | The input parameter |
Transformation | transformation | The transformation that shall be used for this operation (must not be null, but can be uninitialized) |
Type Parameters
Name | Description |
---|---|
TIn | The type of the input argument |
ProcessMany<TIn1, TIn2>(IEnumerable<Tuple<TIn1, TIn2>>, ITransformationEngineContext)
Processes the input arguments using the provided transformation
Declaration
public static void ProcessMany<TIn1, TIn2>(IEnumerable<Tuple<TIn1, TIn2>> inputs, ITransformationEngineContext context) where TIn1 : class where TIn2 : class
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Tuple<TIn1, TIn2>> | inputs | The input parameters |
ITransformationEngineContext | context | The context that should be used (must not be null). |
Type Parameters
Name | Description |
---|---|
TIn1 | The type of the first input argument |
TIn2 | The type of the second input argument |
ProcessMany<TIn1, TIn2>(IEnumerable<Tuple<TIn1, TIn2>>, ITransformationEngineContext, GeneralTransformationRule<TIn1, TIn2>)
Processes the input arguments using the provided transformation
Declaration
public static void ProcessMany<TIn1, TIn2>(IEnumerable<Tuple<TIn1, TIn2>> inputs, ITransformationEngineContext context, GeneralTransformationRule<TIn1, TIn2> startRule) where TIn1 : class where TIn2 : class
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Tuple<TIn1, TIn2>> | inputs | The input parameters |
ITransformationEngineContext | context | The context that should be used (must not be null). |
GeneralTransformationRule<TIn1, TIn2> | startRule | The rule that should be started with. If this is null, an applicable rule is found. |
Type Parameters
Name | Description |
---|---|
TIn1 | The type of the first input argument |
TIn2 | The type of the second input argument |
ProcessMany<TIn1, TIn2>(IEnumerable<Tuple<TIn1, TIn2>>, Transformation)
Processes the input arguments using the provided transformation
Declaration
public static void ProcessMany<TIn1, TIn2>(IEnumerable<Tuple<TIn1, TIn2>> inputs, Transformation transformation) where TIn1 : class where TIn2 : class
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Tuple<TIn1, TIn2>> | inputs | The input parameters |
Transformation | transformation | The transformation that shall be used for this operation (must not be null, but can be uninitialized) |
Type Parameters
Name | Description |
---|---|
TIn1 | The type of the first input argument |
TIn2 | The type of the second input argument |
Process<TIn>(TIn, ITransformationEngineContext)
Processes the input argument using the provided transformation
Declaration
public static void Process<TIn>(TIn input, ITransformationEngineContext context) where TIn : class
Parameters
Type | Name | Description |
---|---|---|
TIn | input | The input parameter |
ITransformationEngineContext | context | The context that should be used (must not be null) |
Type Parameters
Name | Description |
---|---|
TIn | The type of the input argument |
Process<TIn>(TIn, ITransformationEngineContext, GeneralTransformationRule<TIn>)
Processes the input argument using the provided transformation
Declaration
public static void Process<TIn>(TIn input, ITransformationEngineContext context, GeneralTransformationRule<TIn> startRule) where TIn : class
Parameters
Type | Name | Description |
---|---|---|
TIn | input | The input parameter |
ITransformationEngineContext | context | The context that should be used (must not be null) |
GeneralTransformationRule<TIn> | startRule | The rule that should be started with. If this is null, an applicable rule is found. |
Type Parameters
Name | Description |
---|---|
TIn | The type of the input argument |
Process<TIn>(TIn, Transformation)
Processes the input argument using the provided transformation
Declaration
public static void Process<TIn>(TIn input, Transformation transformation) where TIn : class
Parameters
Type | Name | Description |
---|---|---|
TIn | input | The input parameter |
Transformation | transformation | The transformation that shall be used for this operation (must not be null, but can be uninitialized) |
Type Parameters
Name | Description |
---|---|
TIn | The type of the input argument |
Process<TIn1, TIn2>(TIn1, TIn2, ITransformationEngineContext)
Processes the input arguments using the provided transformation
Declaration
public static void Process<TIn1, TIn2>(TIn1 input1, TIn2 input2, ITransformationEngineContext context) where TIn1 : class where TIn2 : class
Parameters
Type | Name | Description |
---|---|---|
TIn1 | input1 | The first input parameter |
TIn2 | input2 | The second input parameter |
ITransformationEngineContext | context | The context that should be used (must not be null). |
Type Parameters
Name | Description |
---|---|
TIn1 | The type of the first input argument |
TIn2 | The type of the second input argument |
Process<TIn1, TIn2>(TIn1, TIn2, ITransformationEngineContext, GeneralTransformationRule<TIn1, TIn2>)
Processes the input arguments using the provided transformation
Declaration
public static void Process<TIn1, TIn2>(TIn1 input1, TIn2 input2, ITransformationEngineContext context, GeneralTransformationRule<TIn1, TIn2> startRule) where TIn1 : class where TIn2 : class
Parameters
Type | Name | Description |
---|---|---|
TIn1 | input1 | The first input parameter |
TIn2 | input2 | The second input parameter |
ITransformationEngineContext | context | The context that should be used (must not be null). |
GeneralTransformationRule<TIn1, TIn2> | startRule | The rule that should be started with. If this is null, an applicable rule is found. |
Type Parameters
Name | Description |
---|---|
TIn1 | The type of the first input argument |
TIn2 | The type of the second input argument |
Process<TIn1, TIn2>(TIn1, TIn2, Transformation)
Processes the input arguments using the provided transformation
Declaration
public static void Process<TIn1, TIn2>(TIn1 input1, TIn2 input2, Transformation transformation) where TIn1 : class where TIn2 : class
Parameters
Type | Name | Description |
---|---|---|
TIn1 | input1 | The first input parameter |
TIn2 | input2 | The second input parameter |
Transformation | transformation | The transformation that shall be used for this operation (must not be null, but can be uninitialized) |
Type Parameters
Name | Description |
---|---|
TIn1 | The type of the first input argument |
TIn2 | The type of the second input argument |
TransformMany<TOut>(IEnumerable<object[]>, Type[], ITransformationEngineContext)
Transforms the input argument into an output using the provided transformation
Declaration
public static IEnumerable<TOut> TransformMany<TOut>(IEnumerable<object[]> inputs, Type[] types, ITransformationEngineContext context) where TOut : class
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<object[]> | inputs | The input parameters |
Type[] | types | The types of the elements within the collection refered to in the inputs parameter |
ITransformationEngineContext | context | The context that should be used (must not be null). |
Returns
Type | Description |
---|---|
IEnumerable<TOut> | The output from the transformation |
Type Parameters
Name | Description |
---|---|
TOut | The desired output type |
TransformMany<TOut>(IEnumerable<object[]>, Type[], ITransformationEngineContext, GeneralTransformationRule)
Transforms the input argument into an output using the provided transformation
Declaration
public static IEnumerable<TOut> TransformMany<TOut>(IEnumerable<object[]> inputs, Type[] types, ITransformationEngineContext context, GeneralTransformationRule startRule) where TOut : class
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<object[]> | inputs | The input parameters |
Type[] | types | The types of the elements within the collection refered to in the inputs parameter |
ITransformationEngineContext | context | The context that should be used (must not be null). |
GeneralTransformationRule | startRule | The rule that should be started with. If this is null, an applicable rule is found. |
Returns
Type | Description |
---|---|
IEnumerable<TOut> | The output from the transformation |
Type Parameters
Name | Description |
---|---|
TOut | The desired output type |
TransformMany<TOut>(IEnumerable<object[]>, Type[], Transformation)
Transforms the input argument into an output using the provided transformation
Declaration
public static IEnumerable<TOut> TransformMany<TOut>(IEnumerable<object[]> inputs, Type[] types, Transformation transformation) where TOut : class
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<object[]> | inputs | The input parameters |
Type[] | types | The types of the elements within the collection refered to in the inputs parameter |
Transformation | transformation | The transformation that shall be used for this operation (must not be null, but can be uninitialized) |
Returns
Type | Description |
---|---|
IEnumerable<TOut> | The output from the transformation |
Type Parameters
Name | Description |
---|---|
TOut | The desired output type |
TransformMany<TIn, TOut>(IEnumerable<TIn>, ITransformationEngineContext)
Transforms the input argument into an output using the provided transformation
Declaration
public static IEnumerable<TOut> TransformMany<TIn, TOut>(IEnumerable<TIn> inputs, ITransformationEngineContext context) where TIn : class where TOut : class
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<TIn> | inputs | The input parameters |
ITransformationEngineContext | context | The context that should be used (must not be null). |
Returns
Type | Description |
---|---|
IEnumerable<TOut> | The output from the transformation |
Type Parameters
Name | Description |
---|---|
TIn | The type of the input argument |
TOut | The desired output type |
TransformMany<TIn, TOut>(IEnumerable<TIn>, ITransformationEngineContext, TransformationRuleBase<TIn, TOut>)
Transforms the input argument into an output using the provided transformation
Declaration
public static IEnumerable<TOut> TransformMany<TIn, TOut>(IEnumerable<TIn> inputs, ITransformationEngineContext context, TransformationRuleBase<TIn, TOut> startRule) where TIn : class where TOut : class
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<TIn> | inputs | The input parameters |
ITransformationEngineContext | context | The context that should be used (must not be null). |
TransformationRuleBase<TIn, TOut> | startRule | The rule that should be started with. If this is null, an applicable rule is found. |
Returns
Type | Description |
---|---|
IEnumerable<TOut> | The output from the transformation |
Type Parameters
Name | Description |
---|---|
TIn | The type of the input argument |
TOut | The desired output type |
TransformMany<TIn, TOut>(IEnumerable<TIn>, Transformation)
Transforms the input argument into an output using the provided transformation
Declaration
public static IEnumerable<TOut> TransformMany<TIn, TOut>(IEnumerable<TIn> inputs, Transformation transformation) where TIn : class where TOut : class
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<TIn> | inputs | The input parameters |
Transformation | transformation | The transformation that shall be used for this operation (must not be null, but can be uninitialized) |
Returns
Type | Description |
---|---|
IEnumerable<TOut> | The output from the transformation |
Type Parameters
Name | Description |
---|---|
TIn | The type of the input argument |
TOut | The desired output type |
TransformMany<TIn1, TIn2, TOut>(IEnumerable<Tuple<TIn1, TIn2>>, ITransformationEngineContext)
Transforms the input arguments into an output using the provided transformation
Declaration
public static IEnumerable<TOut> TransformMany<TIn1, TIn2, TOut>(IEnumerable<Tuple<TIn1, TIn2>> inputs, ITransformationEngineContext context) where TIn1 : class where TIn2 : class where TOut : class
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Tuple<TIn1, TIn2>> | inputs | The input parameters |
ITransformationEngineContext | context | The context that should be used (must not be null) |
Returns
Type | Description |
---|---|
IEnumerable<TOut> | The output from the transformation |
Type Parameters
Name | Description |
---|---|
TIn1 | The type of the first input argument |
TIn2 | The type of the second input argument |
TOut | The desired output type |
TransformMany<TIn1, TIn2, TOut>(IEnumerable<Tuple<TIn1, TIn2>>, ITransformationEngineContext, TransformationRuleBase<TIn1, TIn2, TOut>)
Transforms the input arguments into an output using the provided transformation
Declaration
public static IEnumerable<TOut> TransformMany<TIn1, TIn2, TOut>(IEnumerable<Tuple<TIn1, TIn2>> inputs, ITransformationEngineContext context, TransformationRuleBase<TIn1, TIn2, TOut> startRule) where TIn1 : class where TIn2 : class where TOut : class
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Tuple<TIn1, TIn2>> | inputs | The first input parameters |
ITransformationEngineContext | context | The context that should be used (must not be null) |
TransformationRuleBase<TIn1, TIn2, TOut> | startRule | The rule that should be started with. If this is null, an applicable rule is found. |
Returns
Type | Description |
---|---|
IEnumerable<TOut> | The output from the transformation |
Type Parameters
Name | Description |
---|---|
TIn1 | The type of the first input argument |
TIn2 | The type of the second input argument |
TOut | The desired output type |
TransformMany<TIn1, TIn2, TOut>(IEnumerable<Tuple<TIn1, TIn2>>, Transformation)
Transforms the input arguments into an output using the provided transformation
Declaration
public static IEnumerable<TOut> TransformMany<TIn1, TIn2, TOut>(IEnumerable<Tuple<TIn1, TIn2>> inputs, Transformation transformation) where TIn1 : class where TIn2 : class where TOut : class
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Tuple<TIn1, TIn2>> | inputs | The input parameters |
Transformation | transformation | The transformation that shall be used for this operation (must not be null, but can be uninitialized) |
Returns
Type | Description |
---|---|
IEnumerable<TOut> | The output from the transformation |
Type Parameters
Name | Description |
---|---|
TIn1 | The type of the first input argument |
TIn2 | The type of the second input argument |
TOut | The desired output type |
Transform<TOut>(object[], ITransformationEngineContext)
Transforms the input argument into an output using the provided transformation
Declaration
public static TOut Transform<TOut>(object[] input, ITransformationEngineContext context) where TOut : class
Parameters
Type | Name | Description |
---|---|---|
object[] | input | The input parameter |
ITransformationEngineContext | context | The context that should be used (must not be null). |
Returns
Type | Description |
---|---|
TOut | The output from the transformation |
Type Parameters
Name | Description |
---|---|
TOut | The desired output type |
Transform<TOut>(object[], ITransformationEngineContext, GeneralTransformationRule)
Transforms the input argument into an output using the provided transformation
Declaration
public static TOut Transform<TOut>(object[] input, ITransformationEngineContext context, GeneralTransformationRule startRule) where TOut : class
Parameters
Type | Name | Description |
---|---|---|
object[] | input | The input parameter |
ITransformationEngineContext | context | The context that should be used (must not be null). |
GeneralTransformationRule | startRule | The rule that should be started with. If this is null, an applicable rule is found. |
Returns
Type | Description |
---|---|
TOut | The output from the transformation |
Type Parameters
Name | Description |
---|---|
TOut | The desired output type |
Transform<TOut>(object[], Transformation)
Transforms the input argument into an output using the provided transformation
Declaration
public static TOut Transform<TOut>(object[] input, Transformation transformation) where TOut : class
Parameters
Type | Name | Description |
---|---|---|
object[] | input | The input parameter |
Transformation | transformation | The transformation that shall be used for this operation (must not be null, but can be uninitialized) |
Returns
Type | Description |
---|---|
TOut | The output from the transformation |
Type Parameters
Name | Description |
---|---|
TOut | The desired output type |
Transform<TIn, TOut>(TIn, ITransformationEngineContext)
Transforms the input argument into an output using the provided transformation
Declaration
public static TOut Transform<TIn, TOut>(TIn input, ITransformationEngineContext context) where TIn : class where TOut : class
Parameters
Type | Name | Description |
---|---|---|
TIn | input | The input parameter |
ITransformationEngineContext | context | The context that should be used (must not be null). |
Returns
Type | Description |
---|---|
TOut | The output from the transformation |
Type Parameters
Name | Description |
---|---|
TIn | The type of the input argument |
TOut | The desired output type |
Transform<TIn, TOut>(TIn, ITransformationEngineContext, TransformationRuleBase<TIn, TOut>)
Transforms the input argument into an output using the provided transformation
Declaration
public static TOut Transform<TIn, TOut>(TIn input, ITransformationEngineContext context, TransformationRuleBase<TIn, TOut> startRule) where TIn : class where TOut : class
Parameters
Type | Name | Description |
---|---|---|
TIn | input | The input parameter |
ITransformationEngineContext | context | The context that should be used (must not be null). |
TransformationRuleBase<TIn, TOut> | startRule | The rule that should be started with. If this is null, an applicable rule is found. |
Returns
Type | Description |
---|---|
TOut | The output from the transformation |
Type Parameters
Name | Description |
---|---|
TIn | The type of the input argument |
TOut | The desired output type |
Transform<TIn, TOut>(TIn, Transformation)
Transforms the input argument into an output using the provided transformation
Declaration
public static TOut Transform<TIn, TOut>(TIn input, Transformation transformation) where TIn : class where TOut : class
Parameters
Type | Name | Description |
---|---|---|
TIn | input | The input parameter |
Transformation | transformation | The transformation that shall be used for this operation (must not be null, but can be uninitialized) |
Returns
Type | Description |
---|---|
TOut | The output from the transformation |
Type Parameters
Name | Description |
---|---|
TIn | The type of the input argument |
TOut | The desired output type |
Transform<TIn1, TIn2, TOut>(TIn1, TIn2, ITransformationEngineContext)
Transforms the input arguments into an output using the provided transformation
Declaration
public static TOut Transform<TIn1, TIn2, TOut>(TIn1 input1, TIn2 input2, ITransformationEngineContext context) where TIn1 : class where TIn2 : class where TOut : class
Parameters
Type | Name | Description |
---|---|---|
TIn1 | input1 | The first input parameter |
TIn2 | input2 | The second input parameter |
ITransformationEngineContext | context | The context that should be used (must not be null) |
Returns
Type | Description |
---|---|
TOut | The output from the transformation |
Type Parameters
Name | Description |
---|---|
TIn1 | The type of the first input argument |
TIn2 | The type of the second input argument |
TOut | The desired output type |
Transform<TIn1, TIn2, TOut>(TIn1, TIn2, ITransformationEngineContext, TransformationRuleBase<TIn1, TIn2, TOut>)
Transforms the input arguments into an output using the provided transformation
Declaration
public static TOut Transform<TIn1, TIn2, TOut>(TIn1 input1, TIn2 input2, ITransformationEngineContext context, TransformationRuleBase<TIn1, TIn2, TOut> startRule) where TIn1 : class where TIn2 : class where TOut : class
Parameters
Type | Name | Description |
---|---|---|
TIn1 | input1 | The first input parameter |
TIn2 | input2 | The second input parameter |
ITransformationEngineContext | context | The context that should be used (must not be null) |
TransformationRuleBase<TIn1, TIn2, TOut> | startRule | The rule that should be started with. If this is null, an applicable rule is found. |
Returns
Type | Description |
---|---|
TOut | The output from the transformation |
Type Parameters
Name | Description |
---|---|
TIn1 | The type of the first input argument |
TIn2 | The type of the second input argument |
TOut | The desired output type |
Transform<TIn1, TIn2, TOut>(TIn1, TIn2, Transformation)
Transforms the input arguments into an output using the provided transformation
Declaration
public static TOut Transform<TIn1, TIn2, TOut>(TIn1 input1, TIn2 input2, Transformation transformation) where TIn1 : class where TIn2 : class where TOut : class
Parameters
Type | Name | Description |
---|---|---|
TIn1 | input1 | The first input parameter |
TIn2 | input2 | The second input parameter |
Transformation | transformation | The transformation that shall be used for this operation (must not be null, but can be uninitialized) |
Returns
Type | Description |
---|---|
TOut | The output from the transformation |
Type Parameters
Name | Description |
---|---|
TIn1 | The type of the first input argument |
TIn2 | The type of the second input argument |
TOut | The desired output type |