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

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

This parameter may be:

    since: 1.4 -
Field Summary
protected  String attributeName    The attribute which we are attempting to match 
protected  int paramIndex    The zero-relative index of the parameter we are saving. 
protected  Object param    The parameter we wish to pass to the method call 
Fields inherited from org.apache.tomcat.util.digester.Rule:
digester,  namespaceURI
Constructor:
 public ObjectParamRule(int paramIndex,
    Object param) 
    Construct a "call parameter" rule that will save the given Object as the parameter value.
    Parameters:
    paramIndex - The zero-relative parameter number
    param - the parameter to pass along
 public ObjectParamRule(int paramIndex,
    String attributeName,
    Object param) 
    Construct a "call parameter" rule that will save the given Object as the parameter value, provided that the specified attribute exists.
    Parameters:
    paramIndex - The zero-relative parameter number
    attributeName - The name of the attribute to match
    param - the parameter to pass along
Method from org.apache.tomcat.util.digester.ObjectParamRule Summary:
begin,   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.ObjectParamRule Detail:
 public  void begin(String namespace,
    String name,
    Attributes attributes) throws Exception 
    Process the start of this element.
 public String toString() 
    Render a printable version of this Rule.