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/24 16:24:26 UTC
svn commit: r1127077 -
/commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/annotations/rules/CallParam.java
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