Class TransformationEngine
- Namespace
- NMF.Transformations
- Assembly
- NMF.Transformations.dll
This class provides methods to execute transformations
public static class TransformationEngine
- Inheritance
-
TransformationEngine
- Inherited Members
Methods
ProcessMany<TIn>(IEnumerable<TIn>, ITransformationEngineContext)
Processes the input argument using the provided transformation
public static void ProcessMany<TIn>(IEnumerable<TIn> inputs, ITransformationEngineContext context) where TIn : class
Parameters
inputsIEnumerable<TIn>The input parameters
contextITransformationEngineContextThe context that should be used (must not be null)
Type Parameters
TInThe type of the input argument
ProcessMany<TIn>(IEnumerable<TIn>, ITransformationEngineContext, GeneralTransformationRule<TIn>)
Processes the input argument using the provided transformation
public static void ProcessMany<TIn>(IEnumerable<TIn> inputs, ITransformationEngineContext context, GeneralTransformationRule<TIn> startRule) where TIn : class
Parameters
inputsIEnumerable<TIn>The input parameters
contextITransformationEngineContextThe context that should be used (must not be null)
startRuleGeneralTransformationRule<TIn>The rule that should be started with. If this is null, an applicable rule is found.
Type Parameters
TInThe type of the input argument
ProcessMany<TIn>(IEnumerable<TIn>, Transformation)
Processes the input argument using the provided transformation
public static void ProcessMany<TIn>(IEnumerable<TIn> inputs, Transformation transformation) where TIn : class
Parameters
inputsIEnumerable<TIn>The input parameter
transformationTransformationThe transformation that shall be used for this operation (must not be null, but can be uninitialized)
Type Parameters
TInThe type of the input argument
ProcessMany<TIn1, TIn2>(IEnumerable<Tuple<TIn1, TIn2>>, ITransformationEngineContext)
Processes the input arguments using the provided transformation
public static void ProcessMany<TIn1, TIn2>(IEnumerable<Tuple<TIn1, TIn2>> inputs, ITransformationEngineContext context) where TIn1 : class where TIn2 : class
Parameters
inputsIEnumerable<Tuple<TIn1, TIn2>>The input parameters
contextITransformationEngineContextThe context that should be used (must not be null).
Type Parameters
TIn1The type of the first input argument
TIn2The 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
public static void ProcessMany<TIn1, TIn2>(IEnumerable<Tuple<TIn1, TIn2>> inputs, ITransformationEngineContext context, GeneralTransformationRule<TIn1, TIn2> startRule) where TIn1 : class where TIn2 : class
Parameters
inputsIEnumerable<Tuple<TIn1, TIn2>>The input parameters
contextITransformationEngineContextThe context that should be used (must not be null).
startRuleGeneralTransformationRule<TIn1, TIn2>The rule that should be started with. If this is null, an applicable rule is found.
Type Parameters
TIn1The type of the first input argument
TIn2The type of the second input argument
ProcessMany<TIn1, TIn2>(IEnumerable<Tuple<TIn1, TIn2>>, Transformation)
Processes the input arguments using the provided transformation
public static void ProcessMany<TIn1, TIn2>(IEnumerable<Tuple<TIn1, TIn2>> inputs, Transformation transformation) where TIn1 : class where TIn2 : class
Parameters
inputsIEnumerable<Tuple<TIn1, TIn2>>The input parameters
transformationTransformationThe transformation that shall be used for this operation (must not be null, but can be uninitialized)
Type Parameters
TIn1The type of the first input argument
TIn2The type of the second input argument
Process<TIn>(TIn, ITransformationEngineContext)
Processes the input argument using the provided transformation
public static void Process<TIn>(TIn input, ITransformationEngineContext context) where TIn : class
Parameters
inputTInThe input parameter
contextITransformationEngineContextThe context that should be used (must not be null)
Type Parameters
TInThe type of the input argument
Process<TIn>(TIn, ITransformationEngineContext, GeneralTransformationRule<TIn>)
Processes the input argument using the provided transformation
public static void Process<TIn>(TIn input, ITransformationEngineContext context, GeneralTransformationRule<TIn> startRule) where TIn : class
Parameters
inputTInThe input parameter
contextITransformationEngineContextThe context that should be used (must not be null)
startRuleGeneralTransformationRule<TIn>The rule that should be started with. If this is null, an applicable rule is found.
Type Parameters
TInThe type of the input argument
Process<TIn>(TIn, Transformation)
Processes the input argument using the provided transformation
public static void Process<TIn>(TIn input, Transformation transformation) where TIn : class
Parameters
inputTInThe input parameter
transformationTransformationThe transformation that shall be used for this operation (must not be null, but can be uninitialized)
Type Parameters
TInThe type of the input argument
Process<TIn1, TIn2>(TIn1, TIn2, ITransformationEngineContext)
Processes the input arguments using the provided transformation
public static void Process<TIn1, TIn2>(TIn1 input1, TIn2 input2, ITransformationEngineContext context) where TIn1 : class where TIn2 : class
Parameters
input1TIn1The first input parameter
input2TIn2The second input parameter
contextITransformationEngineContextThe context that should be used (must not be null).
Type Parameters
TIn1The type of the first input argument
TIn2The type of the second input argument
Process<TIn1, TIn2>(TIn1, TIn2, ITransformationEngineContext, GeneralTransformationRule<TIn1, TIn2>)
Processes the input arguments using the provided transformation
public static void Process<TIn1, TIn2>(TIn1 input1, TIn2 input2, ITransformationEngineContext context, GeneralTransformationRule<TIn1, TIn2> startRule) where TIn1 : class where TIn2 : class
Parameters
input1TIn1The first input parameter
input2TIn2The second input parameter
contextITransformationEngineContextThe context that should be used (must not be null).
startRuleGeneralTransformationRule<TIn1, TIn2>The rule that should be started with. If this is null, an applicable rule is found.
Type Parameters
TIn1The type of the first input argument
TIn2The type of the second input argument
Process<TIn1, TIn2>(TIn1, TIn2, Transformation)
Processes the input arguments using the provided transformation
public static void Process<TIn1, TIn2>(TIn1 input1, TIn2 input2, Transformation transformation) where TIn1 : class where TIn2 : class
Parameters
input1TIn1The first input parameter
input2TIn2The second input parameter
transformationTransformationThe transformation that shall be used for this operation (must not be null, but can be uninitialized)
Type Parameters
TIn1The type of the first input argument
TIn2The type of the second input argument
TransformMany<TOut>(IEnumerable<object[]>, Type[], ITransformationEngineContext)
Transforms the input argument into an output using the provided transformation
public static IEnumerable<TOut> TransformMany<TOut>(IEnumerable<object[]> inputs, Type[] types, ITransformationEngineContext context) where TOut : class
Parameters
inputsIEnumerable<object[]>The input parameters
typesType[]The types of the elements within the collection refered to in the inputs parameter
contextITransformationEngineContextThe context that should be used (must not be null).
Returns
- IEnumerable<TOut>
The output from the transformation
Type Parameters
TOutThe desired output type
TransformMany<TOut>(IEnumerable<object[]>, Type[], ITransformationEngineContext, GeneralTransformationRule)
Transforms the input argument into an output using the provided transformation
public static IEnumerable<TOut> TransformMany<TOut>(IEnumerable<object[]> inputs, Type[] types, ITransformationEngineContext context, GeneralTransformationRule startRule) where TOut : class
Parameters
inputsIEnumerable<object[]>The input parameters
typesType[]The types of the elements within the collection refered to in the inputs parameter
contextITransformationEngineContextThe context that should be used (must not be null).
startRuleGeneralTransformationRuleThe rule that should be started with. If this is null, an applicable rule is found.
Returns
- IEnumerable<TOut>
The output from the transformation
Type Parameters
TOutThe desired output type
TransformMany<TOut>(IEnumerable<object[]>, Type[], Transformation)
Transforms the input argument into an output using the provided transformation
public static IEnumerable<TOut> TransformMany<TOut>(IEnumerable<object[]> inputs, Type[] types, Transformation transformation) where TOut : class
Parameters
inputsIEnumerable<object[]>The input parameters
typesType[]The types of the elements within the collection refered to in the inputs parameter
transformationTransformationThe transformation that shall be used for this operation (must not be null, but can be uninitialized)
Returns
- IEnumerable<TOut>
The output from the transformation
Type Parameters
TOutThe desired output type
TransformMany<TIn, TOut>(IEnumerable<TIn>, ITransformationEngineContext)
Transforms the input argument into an output using the provided transformation
public static IEnumerable<TOut> TransformMany<TIn, TOut>(IEnumerable<TIn> inputs, ITransformationEngineContext context) where TIn : class where TOut : class
Parameters
inputsIEnumerable<TIn>The input parameters
contextITransformationEngineContextThe context that should be used (must not be null).
Returns
- IEnumerable<TOut>
The output from the transformation
Type Parameters
TInThe type of the input argument
TOutThe desired output type
TransformMany<TIn, TOut>(IEnumerable<TIn>, ITransformationEngineContext, TransformationRuleBase<TIn, TOut>)
Transforms the input argument into an output using the provided transformation
public static IEnumerable<TOut> TransformMany<TIn, TOut>(IEnumerable<TIn> inputs, ITransformationEngineContext context, TransformationRuleBase<TIn, TOut> startRule) where TIn : class where TOut : class
Parameters
inputsIEnumerable<TIn>The input parameters
contextITransformationEngineContextThe context that should be used (must not be null).
startRuleTransformationRuleBase<TIn, TOut>The rule that should be started with. If this is null, an applicable rule is found.
Returns
- IEnumerable<TOut>
The output from the transformation
Type Parameters
TInThe type of the input argument
TOutThe desired output type
TransformMany<TIn, TOut>(IEnumerable<TIn>, Transformation)
Transforms the input argument into an output using the provided transformation
public static IEnumerable<TOut> TransformMany<TIn, TOut>(IEnumerable<TIn> inputs, Transformation transformation) where TIn : class where TOut : class
Parameters
inputsIEnumerable<TIn>The input parameters
transformationTransformationThe transformation that shall be used for this operation (must not be null, but can be uninitialized)
Returns
- IEnumerable<TOut>
The output from the transformation
Type Parameters
TInThe type of the input argument
TOutThe desired output type
TransformMany<TIn1, TIn2, TOut>(IEnumerable<Tuple<TIn1, TIn2>>, ITransformationEngineContext)
Transforms the input arguments into an output using the provided transformation
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
inputsIEnumerable<Tuple<TIn1, TIn2>>The input parameters
contextITransformationEngineContextThe context that should be used (must not be null)
Returns
- IEnumerable<TOut>
The output from the transformation
Type Parameters
TIn1The type of the first input argument
TIn2The type of the second input argument
TOutThe 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
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
inputsIEnumerable<Tuple<TIn1, TIn2>>The first input parameters
contextITransformationEngineContextThe context that should be used (must not be null)
startRuleTransformationRuleBase<TIn1, TIn2, TOut>The rule that should be started with. If this is null, an applicable rule is found.
Returns
- IEnumerable<TOut>
The output from the transformation
Type Parameters
TIn1The type of the first input argument
TIn2The type of the second input argument
TOutThe desired output type
TransformMany<TIn1, TIn2, TOut>(IEnumerable<Tuple<TIn1, TIn2>>, Transformation)
Transforms the input arguments into an output using the provided transformation
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
inputsIEnumerable<Tuple<TIn1, TIn2>>The input parameters
transformationTransformationThe transformation that shall be used for this operation (must not be null, but can be uninitialized)
Returns
- IEnumerable<TOut>
The output from the transformation
Type Parameters
TIn1The type of the first input argument
TIn2The type of the second input argument
TOutThe desired output type
Transform<TOut>(object[], ITransformationEngineContext)
Transforms the input argument into an output using the provided transformation
public static TOut Transform<TOut>(object[] input, ITransformationEngineContext context) where TOut : class
Parameters
inputobject[]The input parameter
contextITransformationEngineContextThe context that should be used (must not be null).
Returns
- TOut
The output from the transformation
Type Parameters
TOutThe desired output type
Transform<TOut>(object[], ITransformationEngineContext, GeneralTransformationRule)
Transforms the input argument into an output using the provided transformation
public static TOut Transform<TOut>(object[] input, ITransformationEngineContext context, GeneralTransformationRule startRule) where TOut : class
Parameters
inputobject[]The input parameter
contextITransformationEngineContextThe context that should be used (must not be null).
startRuleGeneralTransformationRuleThe rule that should be started with. If this is null, an applicable rule is found.
Returns
- TOut
The output from the transformation
Type Parameters
TOutThe desired output type
Transform<TOut>(object[], Transformation)
Transforms the input argument into an output using the provided transformation
public static TOut Transform<TOut>(object[] input, Transformation transformation) where TOut : class
Parameters
inputobject[]The input parameter
transformationTransformationThe transformation that shall be used for this operation (must not be null, but can be uninitialized)
Returns
- TOut
The output from the transformation
Type Parameters
TOutThe desired output type
Transform<TIn, TOut>(TIn, ITransformationEngineContext)
Transforms the input argument into an output using the provided transformation
public static TOut Transform<TIn, TOut>(TIn input, ITransformationEngineContext context) where TIn : class where TOut : class
Parameters
inputTInThe input parameter
contextITransformationEngineContextThe context that should be used (must not be null).
Returns
- TOut
The output from the transformation
Type Parameters
TInThe type of the input argument
TOutThe desired output type
Transform<TIn, TOut>(TIn, ITransformationEngineContext, TransformationRuleBase<TIn, TOut>)
Transforms the input argument into an output using the provided transformation
public static TOut Transform<TIn, TOut>(TIn input, ITransformationEngineContext context, TransformationRuleBase<TIn, TOut> startRule) where TIn : class where TOut : class
Parameters
inputTInThe input parameter
contextITransformationEngineContextThe context that should be used (must not be null).
startRuleTransformationRuleBase<TIn, TOut>The rule that should be started with. If this is null, an applicable rule is found.
Returns
- TOut
The output from the transformation
Type Parameters
TInThe type of the input argument
TOutThe desired output type
Transform<TIn, TOut>(TIn, Transformation)
Transforms the input argument into an output using the provided transformation
public static TOut Transform<TIn, TOut>(TIn input, Transformation transformation) where TIn : class where TOut : class
Parameters
inputTInThe input parameter
transformationTransformationThe transformation that shall be used for this operation (must not be null, but can be uninitialized)
Returns
- TOut
The output from the transformation
Type Parameters
TInThe type of the input argument
TOutThe desired output type
Transform<TIn1, TIn2, TOut>(TIn1, TIn2, ITransformationEngineContext)
Transforms the input arguments into an output using the provided transformation
public static TOut Transform<TIn1, TIn2, TOut>(TIn1 input1, TIn2 input2, ITransformationEngineContext context) where TIn1 : class where TIn2 : class where TOut : class
Parameters
input1TIn1The first input parameter
input2TIn2The second input parameter
contextITransformationEngineContextThe context that should be used (must not be null)
Returns
- TOut
The output from the transformation
Type Parameters
TIn1The type of the first input argument
TIn2The type of the second input argument
TOutThe 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
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
input1TIn1The first input parameter
input2TIn2The second input parameter
contextITransformationEngineContextThe context that should be used (must not be null)
startRuleTransformationRuleBase<TIn1, TIn2, TOut>The rule that should be started with. If this is null, an applicable rule is found.
Returns
- TOut
The output from the transformation
Type Parameters
TIn1The type of the first input argument
TIn2The type of the second input argument
TOutThe desired output type
Transform<TIn1, TIn2, TOut>(TIn1, TIn2, Transformation)
Transforms the input arguments into an output using the provided transformation
public static TOut Transform<TIn1, TIn2, TOut>(TIn1 input1, TIn2 input2, Transformation transformation) where TIn1 : class where TIn2 : class where TOut : class
Parameters
input1TIn1The first input parameter
input2TIn2The second input parameter
transformationTransformationThe transformation that shall be used for this operation (must not be null, but can be uninitialized)
Returns
- TOut
The output from the transformation
Type Parameters
TIn1The type of the first input argument
TIn2The type of the second input argument
TOutThe desired output type