|
|||||||||
| Home >> All >> org >> cantaloop >> tools >> [ digester overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.cantaloop.tools.digester
Class CallParamRule

java.lang.Objectorg.cantaloop.tools.digester.Rule
org.cantaloop.tools.digester.CallParamRule
- public class CallParamRule
- extends Rule
Rule implementation that saves a parameter from either an attribute of this element, or from the element body, to be used in a call generated by a surrounding CallMethodRule rule.
- Version:
- $Revision: 1.1 $ $Date: 2002/03/28 02:23:16 $
| Field Summary | |
protected java.lang.String |
attributeName
The attribute from which to save the parameter value |
protected java.lang.String |
bodyText
The body text collected from this element. |
protected int |
paramIndex
The zero-relative index of the parameter we are saving. |
| Fields inherited from class org.cantaloop.tools.digester.Rule |
digester |
| Constructor Summary | |
CallParamRule(Digester digester,
int paramIndex)
Construct a "call parameter" rule that will save the body text of this element as the parameter value. |
|
CallParamRule(Digester digester,
int paramIndex,
java.lang.String attributeName)
Construct a "call parameter" rule that will save the value of the specified attribute as the parameter value. |
|
| 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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
attributeName
protected java.lang.String attributeName
- The attribute from which to save the parameter value
bodyText
protected java.lang.String bodyText
- The body text collected from this element.
paramIndex
protected int paramIndex
- The zero-relative index of the parameter we are saving.
| Constructor Detail |
CallParamRule
public CallParamRule(Digester digester, int paramIndex)
- Construct a "call parameter" rule that will save the body text of this element as the
parameter value.
CallParamRule
public CallParamRule(Digester digester, int paramIndex, java.lang.String attributeName)
- Construct a "call parameter" rule that will save the value of the specified attribute as the
parameter value.
| Method Detail |
begin
public void begin(org.xml.sax.AttributeList attributes) throws java.lang.Exception
body
public void body(java.lang.String bodyText) throws java.lang.Exception
end
public void end()
throws java.lang.Exception
finish
public void finish()
throws java.lang.Exception
|
|||||||||
| Home >> All >> org >> cantaloop >> tools >> [ digester overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC