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 38 public class HostingRedirector extends UDDIElement { 39 public static final String UDDI_TAG = "hostingRedirector"; 40 41 protected Element base = null; 42 43 String bindingKey = null; 44 45 51 public HostingRedirector() { 52 } 53 54 59 public HostingRedirector(String bindingKey) { 60 this.bindingKey = bindingKey; 61 } 62 63 73 public HostingRedirector(Element base) throws UDDIException { 74 super(base); 76 bindingKey = base.getAttribute("bindingKey"); 77 } 78 79 public void setBindingKey(String s) { 80 bindingKey = s; 81 } 82 83 public String getBindingKey() { 84 return bindingKey; 85 } 86 87 88 97 public void saveToXML(Element parent) { 98 base = parent.getOwnerDocument().createElement(UDDI_TAG); 99 if (bindingKey!=null) { 101 base.setAttribute("bindingKey", bindingKey); 102 } 103 parent.appendChild(base); 104 } 105 } 106 | Popular Tags |