01: /*
02: * Created on Feb 13, 2004
03: *
04: * To change the template for this generated file go to
05: * Window>Preferences>Java>Code Generation>Code and Comments
06: */
07: package org.xdev.base.resource.xml;
08:
09: import java.util.HashMap;
10:
11: import org.jaxen.jdom.JDOMXPath;
12: import org.jdom.Attribute;
13: import org.jdom.Document;
14: import org.jdom.Element;
15:
16: import org.xdev.base.xssl.XSSLAction;
17: import org.xdev.base.xssl.XSSLReturn;
18:
19: /**
20: * @author AYegorov
21: *
22: * To change the template for this generated type comment go to
23: * Window>Preferences>Java>Code Generation>Code and Comments
24: */
25: public class XmlPropertyResource extends XmlParameterResource {
26: private Element root = null;
27:
28: /**
29: * @param id
30: */
31: public XmlPropertyResource(String id) {
32: super (id);
33: // XXX Auto-generated constructor stub
34: }
35:
36: /**
37: * @param id
38: * @param properties
39: */
40: public XmlPropertyResource(String id, HashMap properties) {
41: super (id, properties);
42: // XXX Auto-generated constructor stub
43: }
44:
45: /* (non-Javadoc)
46: * @see org.xdev.base.xssl.XSSLActionIterator#invoke(org.xdev.base.xssl.XSSLAction)
47: */
48: protected void invoke() throws Exception {
49: super .invoke();
50:
51: this .getParentComponent().setProperty(
52: this .getProperty("property-name"),
53: this.getObjectValue());
54: }
55: }
|