commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1065926 - /commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/RulesBinderImpl.java
Date Tue, 01 Feb 2011 06:58:17 GMT
Author: simonetripodi
Date: Tue Feb  1 06:58:17 2011
New Revision: 1065926

URL: http://svn.apache.org/viewvc?rev=1065926&view=rev
Log:
added the callParamPath() method implementation

Modified:
    commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/RulesBinderImpl.java

Modified: commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/RulesBinderImpl.java
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/RulesBinderImpl.java?rev=1065926&r1=1065925&r2=1065926&view=diff
==============================================================================
--- commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/RulesBinderImpl.java
(original)
+++ commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/RulesBinderImpl.java
Tue Feb  1 06:58:17 2011
@@ -407,8 +407,28 @@ final class RulesBinderImpl implements R
                 });
             }
 
+            /**
+             * 
+             */
             public PathCallParamBuilder callParamPath() {
-                return null;
+                return this.addProvider(new PathCallParamBuilder() {
+
+                    private int paramIndex = 0;
+
+                    public PathCallParamRule get() {
+                        return setNamespaceAndReturn(new PathCallParamRule(this.paramIndex));
+                    }
+
+                    public LinkedRuleBuilder then() {
+                        return mainBuilder;
+                    }
+
+                    public PathCallParamBuilder ofIndex(int paramIndex) {
+                        this.paramIndex = paramIndex;
+                        return this;
+                    }
+
+                });
             }
 
             public CallParamBuilder callParam() {



Mime
View raw message