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

java.lang.Object
  extended byde.uni_paderborn.fujaba.codegen.digester.XRule
      extended byde.uni_paderborn.fujaba.codegen.digester.rules.XSetPropertiesRule
Direct Known Subclasses:
XSetPropertyRule

public class XSetPropertiesRule
extends XRule

Rule implementation that sets properties on the object at the top of the stack, based on attributes with corresponding names.

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

Field Summary
 
Fields inherited from class de.uni_paderborn.fujaba.codegen.digester.XRule
digester
 
Constructor Summary
XSetPropertiesRule(XDigester digester)
          Default constructor sets only the the associated Digester.
 
Method Summary
 void begin(org.xml.sax.Attributes attributes)
          Process the beginning of this element.
protected static java.beans.PropertyEditor getEditor(java.beans.PropertyDescriptor descriptor)
          Get the editor attribute of the XSetPropertiesRule class
protected static java.util.Map getProperties(java.lang.Object target)
          Get the properties attribute of the XSetPropertiesRule class
protected static void populate(java.lang.Object target, java.util.Map values)
          No comment provided by developer, please add a comment to improve documentation.
protected static void setValue(java.lang.Object target, java.lang.String valueStr, java.beans.PropertyDescriptor descriptor)
          Sets the value attribute of the XSetPropertiesRule class
 
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
 

Constructor Detail

XSetPropertiesRule

public XSetPropertiesRule(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
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

populate

protected static void populate(java.lang.Object target,
                               java.util.Map values)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
target - No description provided
values - No description provided

setValue

protected static void setValue(java.lang.Object target,
                               java.lang.String valueStr,
                               java.beans.PropertyDescriptor descriptor)
Sets the value attribute of the XSetPropertiesRule class

Parameters:
target - The new value value
valueStr - The new value value
descriptor - The new value value

getEditor

protected static java.beans.PropertyEditor getEditor(java.beans.PropertyDescriptor descriptor)
Get the editor attribute of the XSetPropertiesRule class

Parameters:
descriptor - No description provided
Returns:
The editor value

getProperties

protected static java.util.Map getProperties(java.lang.Object target)
Get the properties attribute of the XSetPropertiesRule class

Parameters:
target - No description provided
Returns:
The properties value