You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by si...@apache.org on 2011/05/28 13:26:59 UTC
svn commit: r1128603 -
/commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/BeanPropertySetterRule.java
Author: simonetripodi
Date: Sat May 28 11:26:59 2011
New Revision: 1128603
URL: http://svn.apache.org/viewvc?rev=1128603&view=rev
Log:
propertyName field can be final
added propertyName getter
Modified:
commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/BeanPropertySetterRule.java
Modified: commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/BeanPropertySetterRule.java
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/BeanPropertySetterRule.java?rev=1128603&r1=1128602&r2=1128603&view=diff
==============================================================================
--- commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/BeanPropertySetterRule.java (original)
+++ commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/BeanPropertySetterRule.java Sat May 28 11:26:59 2011
@@ -76,7 +76,7 @@ public class BeanPropertySetterRule
/**
* Set this property on the top object.
*/
- protected String propertyName = null;
+ private final String propertyName;
/**
* The body text used to set the property.
@@ -86,6 +86,16 @@ public class BeanPropertySetterRule
// --------------------------------------------------------- Public Methods
/**
+ * Returns the property name associated to this setter rule.
+ *
+ * @return The property name associated to this setter rule
+ */
+ public String getPropertyName()
+ {
+ return propertyName;
+ }
+
+ /**
* {@inheritDoc}
*/
@Override