de.uni_paderborn.fujaba.codegen.digester
Class XRule

java.lang.Object
  extended byde.uni_paderborn.fujaba.codegen.digester.XRule
Direct Known Subclasses:
FUICallMethodRule, XAddToRule, XCallMethodRule, XCallParamRule, XObjectCreateRule, XSetNextRule, XSetPropertiesRule, XSetTopRule

public abstract class XRule
extends java.lang.Object

Concrete implementations of this class implement actions to be taken when a corresponding nested pattern of XML elements has been matched.

Version:
$Revision: 1.7 $ $Date: 2004/10/29 13:46:53 $
Author:
Craig McClanahan

Field Summary
protected  XDigester digester
          The Digester with which this Rule is associated.
 
Constructor Summary
XRule(XDigester digester)
          Default constructor sets only the the associated Digester.
 
Method Summary
 void begin(org.xml.sax.Attributes attributes)
          This method is called when the beginning of a matching XML element is encountered.
 void body(java.lang.String text)
          This method is called when the body of a matching XML element is encountered.
 void end()
          This method is called when the end of a matching XML element is encountered.
 void finish()
          This method is called after all parsing methods have been called, to allow Rules to remove temporary data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

digester

protected XDigester digester
The Digester with which this Rule is associated.

Constructor Detail

XRule

public XRule(XDigester digester)
Default constructor sets only the the associated Digester.

Parameters:
digester - The digester with which this rule is associated
Method Detail

begin

public void begin(org.xml.sax.Attributes attributes)
           throws java.lang.Exception
This method is called when the beginning of a matching XML element is encountered.

Parameters:
attributes - The attribute list of this element
Throws:
java.lang.Exception - Exception description not provided

body

public void body(java.lang.String text)
          throws java.lang.Exception
This method is called when the body of a matching XML element is encountered. If the element has no body, this method is not called at all.

Parameters:
text - The text of the body of this element
Throws:
java.lang.Exception - Exception description not provided

end

public void end()
         throws java.lang.Exception
This method is called when the end of a matching XML element is encountered.

Throws:
java.lang.Exception - Exception description not provided

finish

public void finish()
            throws java.lang.Exception
This method is called after all parsing methods have been called, to allow Rules to remove temporary data.

Throws:
java.lang.Exception - Exception description not provided