org.apache.commons.digester3.annotations.rules
Annotation Type CallParam


@Documented
@Retention(value=RUNTIME)
@Target(value=PARAMETER)
@DigesterRule(reflectsRule=CallParamRule.class,
              handledBy=CallParamHandler.class)
public @interface CallParam

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

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

Required Element Summary
 String pattern
          The element matching pattern.
 
Optional Element Summary
 String attributeName
          The attribute from which to save the parameter value.
 boolean fromStack
          Flags the parameter to be set from the stack.
 String namespaceURI
          The namespace URI for which this Rule is relevant, if any.
 int stackIndex
          Sets the position of the object from the top of the stack.
 

Element Detail

pattern

public abstract String pattern
The element matching pattern.

namespaceURI

public abstract String namespaceURI
The namespace URI for which this Rule is relevant, if any.

Since:
3.0
Default:
""

attributeName

public abstract String attributeName
The attribute from which to save the parameter value.

Since:
3.0
Default:
""

fromStack

public abstract boolean fromStack
Flags the parameter to be set from the stack.

Since:
3.0
Default:
false

stackIndex

public abstract int stackIndex
Sets the position of the object from the top of the stack.

Since:
3.0
Default:
0


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