KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jfox > ioc > deploy > ParameterDescriptor


1 /* JFox, the OpenSource J2EE Application Server
2  *
3  * Distributable under GNU LGPL license by gun.org
4  * more details please visit http://www.huihoo.org/jfox
5  */

6
7 package org.jfox.ioc.deploy;
8
9 import org.jfox.ioc.deployment.Descriptor;
10 import org.jfox.ioc.util.XMLUtils;
11 import org.w3c.dom.Node JavaDoc;
12
13 /**
14  * @author <a HREF="mailto:young_yy@hotmail.com">Young Yang</a>
15  */

16
17 public class ParameterDescriptor implements Descriptor {
18     private String JavaDoc type = null;
19     private String JavaDoc value = null;
20     private String JavaDoc ref = null;
21
22     public void processXML(Node JavaDoc node) throws ComponentDescriptionException {
23         setType(XMLUtils.getChildNodeValueOf(node, "type"));
24         setValue(XMLUtils.getChildNodeValueOf(node, "value"));
25         setRef(XMLUtils.getChildNodeValueOf(node, "ref"));
26     }
27
28     public String JavaDoc getType() {
29         return type;
30     }
31
32     public void setType(String JavaDoc type) {
33         this.type = type;
34     }
35
36     public String JavaDoc getValue() {
37         return value;
38     }
39
40     public void setValue(String JavaDoc value) {
41         this.value = value;
42     }
43
44     public String JavaDoc getRef() {
45         return ref;
46     }
47
48     public void setRef(String JavaDoc ref) {
49         this.ref = ref;
50     }
51
52     public static void main(String JavaDoc[] args) {
53
54     }
55 }
56
Popular Tags