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

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

public class XObjectCreateRule
extends XRule

Rule implementation that creates a new object and pushes it onto the object stack. When the element is complete, the object will be popped

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

Field Summary
protected  java.lang.String attributeName
          The attribute containing an override class name if it is present.
protected  java.lang.String className
          The Java class name of the object to be created.
 
Fields inherited from class de.uni_paderborn.fujaba.codegen.digester.XRule
digester
 
Constructor Summary
XObjectCreateRule(XDigester digester, java.lang.String className)
          Construct an object create rule with the specified class name.
XObjectCreateRule(XDigester digester, java.lang.String className, java.lang.String attributeName)
          Construct an object create rule with the specified class name and an optional attribute name containing an override.
 
Method Summary
 void begin(org.xml.sax.Attributes attributes)
          Process the beginning 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

attributeName

protected java.lang.String attributeName
The attribute containing an override class name if it is present.


className

protected java.lang.String className
The Java class name of the object to be created.

Constructor Detail

XObjectCreateRule

public XObjectCreateRule(XDigester digester,
                         java.lang.String className)
Construct an object create rule with the specified class name.

Parameters:
digester - The associated Digester
className - Java class name of the object to be created

XObjectCreateRule

public XObjectCreateRule(XDigester digester,
                         java.lang.String className,
                         java.lang.String attributeName)
Construct an object create rule with the specified class name and an optional attribute name containing an override.

Parameters:
digester - The associated Digester
className - Java class name of the object to be created
attributeName - Attribute name which, if present, contains an override of the class name to create
Method Detail

begin

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

Overrides:
begin in class XRule
Parameters:
attributes - The attribute list of 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