Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
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 AccessPoint extends UDDIElement { 38 public static final String UDDI_TAG = "accessPoint"; 39 40 protected Element base = null; 41 42 String text = null; 43 String URLType = null; 44 45 51 public AccessPoint() { 52 } 53 54 60 public AccessPoint(String value, 61 String URLType) { 62 setText(value); 63 this.URLType = URLType; 64 } 65 66 76 public AccessPoint(Element base) throws UDDIException { 77 text = getText(base); 79 URLType = base.getAttribute("URLType"); 80 } 81 82 public void setText(String s) { 83 text = s; 84 } 85 86 public void setURLType(String s) { 87 URLType = s; 88 } 89 90 public String getText() { 91 return text; 92 } 93 94 public String getURLType() { 95 return URLType; 96 } 97 98 99 108 public void saveToXML(Element parent) { 109 base = parent.getOwnerDocument().createElement(UDDI_TAG); 110 if (text!=null) { 112 base.appendChild(parent.getOwnerDocument().createTextNode(text)); 113 } 114 if (URLType!=null) { 115 base.setAttribute("URLType", URLType); 116 } 117 parent.appendChild(base); 118 } 119 } 120
| Popular Tags
|