|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.apache.commons.digester.Rule
|
+--org.apache.commons.digester.CallParamRule
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.
| 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.apache.commons.digester.Rule |
digester, namespaceURI |
| Constructor Summary | |
CallParamRule(Digester digester,
int paramIndex)
Deprecated. The digester instance is now set in the Digester.addRule(java.lang.String, org.apache.commons.digester.Rule) method.
Use CallParamRule(int paramIndex) instead. |
|
CallParamRule(Digester digester,
int paramIndex,
java.lang.String attributeName)
Deprecated. The digester instance is now set in the Digester.addRule(java.lang.String, org.apache.commons.digester.Rule) method.
Use CallParamRule(int paramIndex, String attributeName) instead. |
|
CallParamRule(int paramIndex)
Construct a "call parameter" rule that will save the body text of this element as the parameter value. |
|
CallParamRule(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.Attributes 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. |
java.lang.String |
toString()
Render a printable version of this Rule. |
| Methods inherited from class org.apache.commons.digester.Rule |
getDigester, getNamespaceURI, setDigester, setNamespaceURI |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected java.lang.String attributeName
protected java.lang.String bodyText
protected int paramIndex
| Constructor Detail |
public CallParamRule(Digester digester,
int paramIndex)
Digester.addRule(java.lang.String, org.apache.commons.digester.Rule) method.
Use CallParamRule(int paramIndex) instead.
digester - The associated DigesterparamIndex - The zero-relative parameter number
public CallParamRule(Digester digester,
int paramIndex,
java.lang.String attributeName)
Digester.addRule(java.lang.String, org.apache.commons.digester.Rule) method.
Use CallParamRule(int paramIndex, String attributeName) instead.
digester - The associated DigesterparamIndex - The zero-relative parameter numberattributeName - The name of the attribute to savepublic CallParamRule(int paramIndex)
paramIndex - The zero-relative parameter number
public CallParamRule(int paramIndex,
java.lang.String attributeName)
paramIndex - The zero-relative parameter numberattributeName - The name of the attribute to save| Method Detail |
public void begin(org.xml.sax.Attributes 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 Rulepublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||