|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.uni_paderborn.fujaba.codegen.digester.XRule
de.uni_paderborn.fujaba.codegen.digester.rules.XCallParamRule
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 de.uni_paderborn.fujaba.codegen.digester.XRule |
digester |
Constructor Summary | |
XCallParamRule(XDigester digester,
int paramIndex)
Construct a "call parameter" rule that will save the body text of this element as the parameter value. |
|
XCallParamRule(XDigester 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.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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String attributeName
protected java.lang.String bodyText
protected int paramIndex
Constructor Detail |
public XCallParamRule(XDigester digester, int paramIndex)
digester
- The associated DigesterparamIndex
- The zero-relative parameter numberpublic XCallParamRule(XDigester digester, int paramIndex, java.lang.String attributeName)
digester
- The associated DigesterparamIndex
- The zero-relative parameter numberattributeName
- The name of the attribute to saveMethod Detail |
public void begin(org.xml.sax.Attributes attributes) throws java.lang.Exception
begin
in class XRule
attributes
- The attribute list for this element
java.lang.Exception
- Exception description not providedpublic void body(java.lang.String bodyText) throws java.lang.Exception
body
in class XRule
bodyText
- The body text of this element
java.lang.Exception
- Exception description not providedpublic void end() throws java.lang.Exception
end
in class XRule
java.lang.Exception
- Exception description not providedpublic void finish() throws java.lang.Exception
finish
in class XRule
java.lang.Exception
- Exception description not provided
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |