|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.apache.struts.digester.Rule
|
+--org.apache.struts.digester.CallMethodRule
Rule implementation that calls a method on the top (parent)
object, passing arguments collected from subsequent
CallParamRule rules or from the body of this
element.
| Field Summary | |
protected java.lang.String |
bodyText
The body text collected from this element. |
protected java.lang.String |
methodName
The method name to call on the parent object. |
protected int |
paramCount
The number of parameters to collect from MethodParam rules. |
protected java.lang.Class[] |
paramTypes
The parameter types of the parameters to be collected. |
| Fields inherited from class org.apache.struts.digester.Rule |
digester |
| Constructor Summary | |
CallMethodRule(Digester digester,
java.lang.String methodName,
int paramCount)
Construct a "call method" rule with the specified method name. |
|
CallMethodRule(Digester digester,
java.lang.String methodName,
int paramCount,
java.lang.Class[] paramTypes)
Construct a "call method" rule with the specified method name. |
|
CallMethodRule(Digester digester,
java.lang.String methodName,
int paramCount,
java.lang.String[] paramTypes)
Construct a "call method" rule with the specified method name. |
|
| Method Summary | |
void |
begin(org.xml.sax.AttributeList attributes)
Process the start of this element. |
void |
body(java.lang.String bodyText)
Process the body text of this element. |
void |
end()
Process the end of this element. |
void |
finish()
Clean up after parsing is complete. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected java.lang.String bodyText
protected java.lang.String methodName
protected int paramCount
MethodParam rules.
If this value is zero, a single parameter will be collected from the
body of this element.protected java.lang.Class[] paramTypes
| Constructor Detail |
public CallMethodRule(Digester digester,
java.lang.String methodName,
int paramCount)
digester - The associated DigestermethodName - Method name of the parent method to callparamCount - The number of parameters to collect, or
zero for a single argument from the body of this element.
public CallMethodRule(Digester digester,
java.lang.String methodName,
int paramCount,
java.lang.String[] paramTypes)
digester - The associated DigestermethodName - Method name of the parent method to callparamCount - The number of parameters to collect, or
zero for a single argument from the body of ths elementparamTypes - The Java class names of the arguments
(if you wish to use a primitive type, specify the corresonding
Java wrapper class instead, such as java.lang.Boolean
for a boolean parameter)
public CallMethodRule(Digester digester,
java.lang.String methodName,
int paramCount,
java.lang.Class[] paramTypes)
digester - The associated DigestermethodName - Method name of the parent method to callparamCount - The number of parameters to collect, or
zero for a single argument from the body of ths elementparamTypes - The Java classes that represent the
parameter types of the method arguments
(if you wish to use a primitive type, specify the corresonding
Java wrapper class instead, such as java.lang.Boolean.TYPE
for a boolean parameter)| Method Detail |
public void begin(org.xml.sax.AttributeList attributes)
throws java.lang.Exception
begin in class Ruleattributes - The attribute list for this element
public void body(java.lang.String bodyText)
throws java.lang.Exception
body in class RulebodyText - The body text of this element
public void end()
throws java.lang.Exception
end in class Rule
public void finish()
throws java.lang.Exception
finish in class Rule
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||