1 8 9 package org.uddi4j.util; 10 import org.uddi4j.UDDIElement; 11 import org.uddi4j.UDDIException; 12 import org.w3c.dom.Element ; 13 14 37 public class UploadRegister extends UDDIElement { 38 public static final String UDDI_TAG = "uploadRegister"; 39 40 protected Element base = null; 41 42 String text = null; 43 44 50 public UploadRegister() { 51 } 52 53 58 public UploadRegister(String value) { 59 setText(value); 60 } 61 62 72 public UploadRegister(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 |