Example #1
0
        private readonly List <Rule> subRules;                        // NOSONAR NOPMD we need specific interface

        public Rule(RuleBuilder ruleBuilder)
        {
            this.cat            = ruleBuilder.cat;
            this.closedMatcher  = ruleBuilder.closedMatcher;
            this.elementMatcher = ruleBuilder.elementMatcher;
            this.zoomMax        = ruleBuilder.zoomMax;
            this.zoomMin        = ruleBuilder.zoomMin;

            this.renderInstructions = new List <RenderInstruction>(4);
            this.subRules           = new List <Rule>(4);
        }
Example #2
0
 internal NegativeRule(RuleBuilder ruleBuilder, AttributeMatcher attributeMatcher) : base(ruleBuilder)
 {
     this.attributeMatcher = attributeMatcher;
 }
 internal PositiveRule(RuleBuilder ruleBuilder, AttributeMatcher keyMatcher, AttributeMatcher valueMatcher) : base(ruleBuilder)
 {
     this.keyMatcher   = keyMatcher;
     this.valueMatcher = valueMatcher;
 }