public PipelineDeclaration(string name, string selector, InputDeclaration input, TransformationDeclaration transformation, OutputDeclaration ouputer)
 {
     Name           = name;
     Transformation = transformation;
     Selector       = selector;
     Output         = ouputer;
     Input          = input;
 }
        public static TransformationDeclaration Parse(JObject transformationObject)
        {
            var name        = transformationObject.GetStringPropertyValue("name");
            var generator   = transformationObject.GetStringPropertyValue("generator");
            var inputObject = transformationObject.GetValue("input") as JObject;

            var result = new TransformationDeclaration
            {
                Name          = name,
                GeneratorName = generator
            };

            return(result);
        }
        public static PipelineDeclaration Parse(JObject pipelineObject)
        {
            var pipelineName         = pipelineObject.GetStringPropertyValue("name");
            var selectorText         = pipelineObject.GetStringPropertyValue("selector");
            var transformationObject = pipelineObject.GetValue("transformation") as JObject;
            var inputObject          = pipelineObject.GetValue("input") as JObject;
            var outputerObject       = pipelineObject.GetValue("output") as JObject;

            var transformation = TransformationDeclaration.Parse(transformationObject);
            var output         = OutputDeclaration.Parse(outputerObject);
            var input          = InputDeclaration.Parse(inputObject);

            var pipeline = new PipelineDeclaration(
                pipelineName,
                selectorText,
                input,
                transformation,
                output);

            return(pipeline);
        }
 internal void SetParent(TransformationDeclaration parent)
 {
     Parent = parent;
 }