public FlowRuleParameters(XmlConfigFile config, string flowRuleName, FlowRuleType type) { this.config = config; this.SourceAttributeNames = new List <string>(); this.Transforms = new List <Transform>(); this.MergeValues = flowRuleName.StartsWith("!"); if (this.MergeValues) { flowRuleName = flowRuleName.Remove(0, 1); } this.GetAliasDefinition(flowRuleName); if (this.aliasDefinition == null) { this.flowRuleDescription = flowRuleName; } else { this.flowRuleDescription = this.aliasDefinition.FlowRuleDefinition; } this.FlowRuleType = type; this.ValidateFlowRuleName(); this.GetSourceAttributes(); this.GetTargetAttribute(); this.GetTransforms(); }
private FlowRuleParameters GetParameters(string flowRuleName, FlowRuleType type) { if (!this.flowRuleParamCache.ContainsKey(flowRuleName)) { this.flowRuleParamCache.Add(flowRuleName, new FlowRuleParameters(this.config, flowRuleName, type)); } return(this.flowRuleParamCache[flowRuleName]); }