1 8 9 package org.uddi4j.datatype.binding; 10 11 import org.uddi4j.UDDIElement; 12 import org.uddi4j.UDDIException; 13 import org.w3c.dom.Element ; 14 15 37 public class InstanceParms extends UDDIElement { 38 public static final String UDDI_TAG = "instanceParms"; 39 40 protected Element base = null; 41 42 String text = null; 43 44 50 public InstanceParms() { 51 } 52 53 58 public InstanceParms(String value) { 59 setText(value); 60 } 61 62 72 public InstanceParms(Element base) throws UDDIException { 73 super(base); 75 text = getText(base); 76 } 77 78 public void setText(String s) { 79 text = s; 80 } 81 82 public String getText() { 83 return text; 84 } 85 86 95 public void saveToXML(Element parent) { 96 base = parent.getOwnerDocument().createElement(UDDI_TAG); 97 if (text!=null) { 99 base.appendChild(parent.getOwnerDocument().createTextNode(text)); 100 } 101 parent.appendChild(base); 102 } 103 } 104 | Popular Tags |