org.apache.commons.digester.annotations.rules
Annotation Type StackCallParam


@Documented
@Retention(value=RUNTIME)
@Target(value=PARAMETER)
@DigesterRule(reflectsRule=CallParamRule.class,
              providedBy=StackCallParamRuleProvider.class)
public @interface StackCallParam

Methods arguments annotated with StackCallParam will be bound with CallParamRule digester rule.

Since:
2.1
See Also:
Digester.addCallParam(String,int,int)

Required Element Summary
 String pattern
          The element matching pattern.
 
Optional Element Summary
 int stackIndex
          The call parameter to the stackIndex'th object down the stack, where 0 is the top of the stack, 1 the next element down and so on.
 

Element Detail

pattern

public abstract String pattern
The element matching pattern.

Returns:
the element matching pattern.

stackIndex

public abstract int stackIndex
The call parameter to the stackIndex'th object down the stack, where 0 is the top of the stack, 1 the next element down and so on.

Returns:
the stackIndex'th object down the stack.
Default:
0


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.