Ejemplo n.º 1
0
        /// <summary>
        /// Adds a new rule disabling in this dictionary
        /// </summary>
        /// <param name="rule"></param>
        public void AppendRuleDisabling(Rules.Rule rule)
        {
            Rules.RuleDisabling disabling = (Rules.RuleDisabling)Generated.acceptor.getFactory().createRuleDisabling();

            disabling.Name = rule.Name;
            disabling.setRule(rule.FullName);
            appendRuleDisablings(disabling);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Adds a model element in this model element
 /// </summary>
 /// <param name="copy"></param>
 public override void AddModelElement(Utils.IModelElement element)
 {
     {
         Types.NameSpace item = element as Types.NameSpace;
         if (item != null)
         {
             appendNameSpaces(item);
         }
     }
     {
         Rules.RuleDisabling item = element as Rules.RuleDisabling;
         if (item != null)
         {
             appendRuleDisablings(item);
         }
     }
     {
         Tests.Frame item = element as Tests.Frame;
         if (item != null)
         {
             appendTests(item);
         }
     }
 }