commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1065738 - /commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/RulesBinderImpl.java
Date Mon, 31 Jan 2011 20:14:04 GMT
Author: simonetripodi
Date: Mon Jan 31 20:14:04 2011
New Revision: 1065738

URL: http://svn.apache.org/viewvc?rev=1065738&view=rev
Log:
added setBeanProperty() 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=1065738&r1=1065737&r2=1065738&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
Mon Jan 31 20:14:04 2011
@@ -270,8 +270,28 @@ final class RulesBinderImpl implements R
                 };
             }
 
+            /**
+             * 
+             */
             public BeanPropertySetterBuilder setBeanProperty() {
-                return null;
+                return new BeanPropertySetterBuilder() {
+
+                    private String propertyName;
+
+                    public BeanPropertySetterRule get() {
+                        return new BeanPropertySetterRule(this.propertyName);
+                    }
+
+                    public LinkedRuleBuilder then() {
+                        return mainBuilder;
+                    }
+
+                    public BeanPropertySetterBuilder withName(String propertyName) {
+                        this.propertyName = propertyName;
+                        return this;
+                    }
+
+                };
             }
 
             public <T> ObjectParamBuilder objectParam(T paramObj) {



Mime
View raw message