de.uni_paderborn.fujaba.codegen.digester.rules
Class XSetPropertyRule
java.lang.Object
de.uni_paderborn.fujaba.codegen.digester.XRule
de.uni_paderborn.fujaba.codegen.digester.rules.XSetPropertiesRule
de.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.XRule |
body, end, finish |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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 associatedname - Name of the attribute that will contain the name of the property to
be setvalue - Name of the attribute that will contain the value to which the property
should be set
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