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

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

public class XSetPropertyRule
extends XSetPropertiesRule

Rule implementation that sets an individual property on the object at the top of the stack, based on attributes with specified names.

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

Field Summary
protected  java.lang.String name
          The attribute that will contain the property name.
protected  java.lang.String value
          The attribute that will contain the property value.
 
Fields inherited from class de.uni_paderborn.fujaba.codegen.digester.XRule
digester
 
Constructor Summary
XSetPropertyRule(XDigester digester, java.lang.String name, java.lang.String value)
          Construct a "set property" rule with the specified name and value attributes.
 
Method Summary
 void begin(org.xml.sax.Attributes attributes)
          Process the beginning of this element.
 
Methods inherited from class de.uni_paderborn.fujaba.codegen.digester.rules.XSetPropertiesRule
getEditor, getProperties, populate, setValue
 
Methods inherited from class de.uni_paderborn.fujaba.codegen.digester.XRule
body, end, finish
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name
The attribute that will contain the property name.


value

protected java.lang.String value
The attribute that will contain the property value.

Constructor Detail

XSetPropertyRule

public XSetPropertyRule(XDigester digester,
                        java.lang.String name,
                        java.lang.String value)
Construct a "set property" rule with the specified name and value attributes.

Parameters:
digester - The digester with which this rule is associated
name - Name of the attribute that will contain the name of the property to be set
value - Name of the attribute that will contain the value to which the property should be set
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 XSetPropertiesRule
Parameters:
attributes - The attribute list of this element
Throws:
java.lang.Exception - Exception description not provided