de.uni_paderborn.fujaba.codegen.digester.rules
Class XAddToRule

java.lang.Object
  extended byde.uni_paderborn.fujaba.codegen.digester.XRule
      extended byde.uni_paderborn.fujaba.codegen.digester.rules.XAddToRule

public class XAddToRule
extends XRule

Rule implementation that calls a method on the (top-1) (parent) object, passing the top object (child) as an argument. It is commonly used to establish parent-child relationships.

Version:
$Revision: 1.9 $ $Date: 2004/10/20 17:49:38 $
Author:
$Author: schneider $

Field Summary
protected  java.lang.String className
          name of attribute which contains classname
private  java.util.Stack classValueStack
          No comment provided by developer, please add a comment to improve documentation.
protected  java.lang.String methodName
          name of attribute which contains methodname
private  java.util.Stack methodValueStack
          No comment provided by developer, please add a comment to improve documentation.
 
Fields inherited from class de.uni_paderborn.fujaba.codegen.digester.XRule
digester
 
Constructor Summary
XAddToRule(XDigester digester, java.lang.String methodName, java.lang.String className)
          Construct a "set next" rule with the specified method name.
 
Method Summary
 void begin(org.xml.sax.Attributes attributes)
          Process the start of this element.
 void end()
          Process the end of this element.
 void finish()
          Clean up after parsing is complete.
 
Methods inherited from class de.uni_paderborn.fujaba.codegen.digester.XRule
body
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

methodName

protected java.lang.String methodName
name of attribute which contains methodname


className

protected java.lang.String className
name of attribute which contains classname


methodValueStack

private java.util.Stack methodValueStack
No comment provided by developer, please add a comment to improve documentation.


classValueStack

private java.util.Stack classValueStack
No comment provided by developer, please add a comment to improve documentation.

Constructor Detail

XAddToRule

public XAddToRule(XDigester digester,
                  java.lang.String methodName,
                  java.lang.String className)
Construct a "set next" rule with the specified method name.

Parameters:
digester - The associated Digester
methodName - Method name of the parent method to call
className - No description provided
Method Detail

begin

public void begin(org.xml.sax.Attributes attributes)
           throws java.lang.Exception
Process the start of this element.

Overrides:
begin in class XRule
Parameters:
attributes - The attribute list for this element
Throws:
java.lang.Exception - Exception description not provided

end

public void end()
         throws java.lang.Exception
Process the end of this element.

Overrides:
end in class XRule
Throws:
java.lang.Exception - Exception description not provided

finish

public void finish()
            throws java.lang.Exception
Clean up after parsing is complete.

Overrides:
finish in class XRule
Throws:
java.lang.Exception - Exception description not provided