commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1071998 - in /commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3: rules/AbstractRulesImpl.java rules/WithDefaultsRulesWrapper.java spi/Rules.java
Date Fri, 18 Feb 2011 14:03:26 GMT
Author: simonetripodi
Date: Fri Feb 18 14:03:26 2011
New Revision: 1071998

URL: http://svn.apache.org/viewvc?rev=1071998&view=rev
Log:
added a method to retrieve the associated Digester instance assciated to the given Rules

Modified:
    commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rules/AbstractRulesImpl.java
    commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rules/WithDefaultsRulesWrapper.java
    commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/spi/Rules.java

Modified: commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rules/AbstractRulesImpl.java
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rules/AbstractRulesImpl.java?rev=1071998&r1=1071997&r2=1071998&view=diff
==============================================================================
--- commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rules/AbstractRulesImpl.java
(original)
+++ commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rules/AbstractRulesImpl.java
Fri Feb 18 14:03:26 2011
@@ -69,4 +69,11 @@ abstract class AbstractRulesImpl impleme
         }
     }
 
+    /**
+     * {@inheritDoc}
+     */
+    public Digester getDigester() {
+        return this.digester;
+    }
+
 }

Modified: commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rules/WithDefaultsRulesWrapper.java
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rules/WithDefaultsRulesWrapper.java?rev=1071998&r1=1071997&r2=1071998&view=diff
==============================================================================
--- commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rules/WithDefaultsRulesWrapper.java
(original)
+++ commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/rules/WithDefaultsRulesWrapper.java
Fri Feb 18 14:03:26 2011
@@ -72,7 +72,9 @@ public class WithDefaultsRulesWrapper im
         this.wrappedRules = wrappedRules;
     }
 
-    /** Sets digeseter using these Rules */
+    /**
+     * {@inheritDoc}
+     */
     public void setDigester(Digester digester) {
         wrappedRules.setDigester(digester);
         for (Rule rule : defaultRules) {
@@ -80,6 +82,13 @@ public class WithDefaultsRulesWrapper im
         }
     }
 
+    /**
+     * {@inheritDoc}
+     */
+    public Digester getDigester() {
+        return this.wrappedRules.getDigester();
+    }
+
     /** Gets Rule's which will be fired when the wrapped implementation returns no matches
*/
     public List<Rule> getDefaults() {
         return defaultRules;

Modified: commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/spi/Rules.java
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/spi/Rules.java?rev=1071998&r1=1071997&r2=1071998&view=diff
==============================================================================
--- commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/spi/Rules.java
(original)
+++ commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/spi/Rules.java
Fri Feb 18 14:03:26 2011
@@ -72,4 +72,11 @@ public interface Rules {
      */
     void setDigester(Digester digester);
 
+    /**
+     * Returns the Digester instance with which this Rules instance is associated.
+     *
+     * @return The Digester instance with which this Rules instance is associated
+     */
+    Digester getDigester();
+
 }



Mime
View raw message