示例#1
0
 public CompareQuery(XElement inputxml, ILinkTarget owner) : base(owner)
 {
     this._querylist = new QueryPriorityList(this);
     this._processingwrangler.Separator = string.Empty;
     this._reprocess = true;
     this.LoadXml(inputxml);
 }
示例#2
0
 public Conditional(XElement inputxml, ILinkTarget targetoption)
 {
     this._linktargetoption = targetoption;
     this._ruleset          = new RuleSet(targetoption);
     this._sourcequerylist  = new QueryPriorityList(this._linktargetoption);
     this._resultquerylist  = new QueryPriorityList(this._linktargetoption);
     this.LoadXml(inputxml);
 }
示例#3
0
        protected new void LoadXml(XElement inputxml)
        {
            base.LoadXml(inputxml);

            foreach (XElement element in inputxml.Elements())
            {
                string xname = element.Name.ToString();

                if (xname.Equals("IF", StringComparison.OrdinalIgnoreCase) == true)
                {
                    Conditional newcondition = new Conditional(element, this._linktarget);
                    this._conditions.Add(newcondition);
                }
                else if (xname.Equals("ELSE", StringComparison.OrdinalIgnoreCase) == true)
                {
                    this._else = new QueryPriorityList(element, this._linktarget);
                }
            }
        }