/** * Constructor for top-level Rules objects. Exactly one of these must * be created and installed into the Digester instance as the Rules * object before parsing starts. */ public PluginRules() { this(new RulesBase()); }
/** * Return the <code>Rules</code> implementation object containing our * rules collection and associated matching policy. If none has been * established, a default implementation will be created and returned. */ public Rules getRules() { if (this.rules == null) { this.rules = new RulesBase(); this.rules.setDigester(this); } return (this.rules); }
decoratedRules = new RulesBase(); } else { decoratedRules = rulesFactory.newRules(digester, pluginClass);
/** 创建默认的<code>Rules</code>. */ public ContextSensitiveRules() { this(new RulesBase()); }
/** * Constructor for top-level Rules objects. Exactly one of these must * be created and installed into the Digester instance as the Rules * object before parsing starts. */ public PluginRules() { this(new RulesBase()); }
/** * Return the <code>Rules</code> implementation object containing our * rules collection and associated matching policy. If none has been * established, a default implementation will be created and returned. */ public Rules getRules() { if (this.rules == null) { this.rules = new RulesBase(); this.rules.setDigester(this); } return (this.rules); }
decoratedRules = new RulesBase(); } else { decoratedRules = rulesFactory.newRules(digester, pluginClass);