Save This Page
Home » apache-tomcat-6.0.16-src » org.apache » tomcat » util » digester » [javadoc | source]
org.apache.tomcat.util.digester
public class: CallParamRule [javadoc | source]
java.lang.Object
   org.apache.tomcat.util.digester.Rule
      org.apache.tomcat.util.digester.CallParamRule

Direct Known Subclasses:
    CallParamMultiRule

Rule implementation that saves a parameter for use by a surrounding CallMethodRule.

This parameter may be:

Field Summary
protected  String attributeName    The attribute from which to save the parameter value 
protected  int paramIndex    The zero-relative index of the parameter we are saving. 
protected  boolean fromStack    Is the parameter to be set from the stack? 
protected  int stackIndex    The position of the object from the top of the stack 
protected  ArrayStack bodyTextStack    Stack is used to allow nested body text to be processed. Lazy creation. 
Fields inherited from org.apache.tomcat.util.digester.Rule:
digester,  namespaceURI
Constructor:
 public CallParamRule(int paramIndex) 
 public CallParamRule(Digester digester,
    int paramIndex) 
    Construct a "call parameter" rule that will save the body text of this element as the parameter value.
    Parameters:
    digester - The associated Digester
    paramIndex - The zero-relative parameter number
 public CallParamRule(int paramIndex,
    String attributeName) 
    Construct a "call parameter" rule that will save the value of the specified attribute as the parameter value.
    Parameters:
    paramIndex - The zero-relative parameter number
    attributeName - The name of the attribute to save
 public CallParamRule(int paramIndex,
    boolean fromStack) 
 public CallParamRule(int paramIndex,
    int stackIndex) 
 public CallParamRule(Digester digester,
    int paramIndex,
    String attributeName) 
    Construct a "call parameter" rule that will save the value of the specified attribute as the parameter value.
    Parameters:
    digester - The associated Digester
    paramIndex - The zero-relative parameter number
    attributeName - The name of the attribute to save
Method from org.apache.tomcat.util.digester.CallParamRule Summary:
begin,   body,   end,   toString
Methods from org.apache.tomcat.util.digester.Rule:
begin,   begin,   body,   body,   end,   end,   finish,   getDigester,   getNamespaceURI,   setDigester,   setNamespaceURI
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.tomcat.util.digester.CallParamRule Detail:
 public  void begin(Attributes attributes) throws Exception 
    Process the start of this element.
 public  void body(String bodyText) throws Exception 
    Process the body text of this element.
 public  void end(String namespace,
    String name) 
    Process any body texts now.
 public String toString() 
    Render a printable version of this Rule.