commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@apache.org
Subject cvs commit: jakarta-commons/digester/src/java/org/apache/commons/digester RulesBase.java
Date Tue, 29 Oct 2002 20:17:11 GMT
craigmcc    2002/10/29 12:17:11

  Modified:    digester/src/java/org/apache/commons/digester RulesBase.java
  Log:
  A little preventive medicine -- pass on any setting of the Digester to be
  associated with this Rules instance to our Rule instances.
  
  PR: Bugzilla #13891
  Submitted by:	elyb1 at horacemann.com
  
  Revision  Changes    Path
  1.9       +12 -4     jakarta-commons/digester/src/java/org/apache/commons/digester/RulesBase.java
  
  Index: RulesBase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/digester/src/java/org/apache/commons/digester/RulesBase.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- RulesBase.java	10 Jul 2002 18:12:33 -0000	1.8
  +++ RulesBase.java	29 Oct 2002 20:17:11 -0000	1.9
  @@ -146,6 +146,11 @@
       public void setDigester(Digester digester) {
   
           this.digester = digester;
  +        Iterator items = rules.iterator();
  +        while (items.hasNext()) {
  +            Rule item = (Rule) items.next();
  +            item.setDigester(digester);
  +        }
   
       }
   
  @@ -194,6 +199,9 @@
           }
           list.add(rule);
           rules.add(rule);
  +        if (this.digester != null) {
  +            rule.setDigester(this.digester);
  +        }
           if (this.namespaceURI != null) {
               rule.setNamespaceURI(this.namespaceURI);
           }
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message