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