commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1127077 - /commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/annotations/rules/CallParam.java
Date Tue, 24 May 2011 14:24:26 GMT
Author: simonetripodi
Date: Tue May 24 14:24:26 2011
New Revision: 1127077

URL: http://svn.apache.org/viewvc?rev=1127077&view=rev
Log:
added attributeName, fromStack and stackIndex properties

Modified:
    commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/annotations/rules/CallParam.java

Modified: commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/annotations/rules/CallParam.java
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/annotations/rules/CallParam.java?rev=1127077&r1=1127076&r2=1127077&view=diff
==============================================================================
--- commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/annotations/rules/CallParam.java
(original)
+++ commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/annotations/rules/CallParam.java
Tue May 24 14:24:26 2011
@@ -56,6 +56,27 @@ public @interface CallParam
     String namespaceURI() default "";
 
     /**
+     * The attribute from which to save the parameter value.
+     *
+     * @return the attribute from which to save the parameter value
+     */
+    String attributeName() default "";
+
+    /**
+     * Flags the parameter to be set from the stack.
+     * 
+     * @return true if the parameter has to be set from the stack, false otherwise
+     */
+    boolean fromStack() default false;
+
+    /**
+     * Sets the position of the object from the top of the stack.
+     *
+     * @return The position of the object from the top of the stack
+     */
+    int stackIndex() default 0;
+
+    /**
      * Defines several {@code @CallParam} annotations on the same element.
      * 
      * @see CallParam



Mime
View raw message