1 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 ; 12 13 16 17 public class ParameterDescriptor implements Descriptor { 18 private String type = null; 19 private String value = null; 20 private String ref = null; 21 22 public void processXML(Node 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 getType() { 29 return type; 30 } 31 32 public void setType(String type) { 33 this.type = type; 34 } 35 36 public String getValue() { 37 return value; 38 } 39 40 public void setValue(String value) { 41 this.value = value; 42 } 43 44 public String getRef() { 45 return ref; 46 } 47 48 public void setRef(String ref) { 49 this.ref = ref; 50 } 51 52 public static void main(String [] args) { 53 54 } 55 } 56 | Popular Tags |