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.service; 10 11 import java.util.Vector ; 12 13 import org.uddi4j.UDDIElement; 14 import org.uddi4j.UDDIException; 15 import org.w3c.dom.Element ; 16 import org.w3c.dom.NodeList ; 17 18 40 public class BusinessServices extends UDDIElement { 41 public static final String UDDI_TAG = "businessServices"; 42 43 protected Element base = null; 44 45 Vector businessService = new Vector (); 47 48 54 public BusinessServices() { 55 } 56 57 67 public BusinessServices(Element base) throws UDDIException { 68 super(base); 70 NodeList nl = null; 71 nl = getChildElementsByTagName(base, BusinessService.UDDI_TAG); 72 for (int i=0; i < nl.getLength(); i++) { 73 businessService.addElement(new BusinessService((Element)nl.item(i))); 74 } 75 } 76 77 82 public void setBusinessServiceVector(Vector s) { 83 businessService = s; 84 } 85 86 91 public Vector getBusinessServiceVector() { 92 return businessService; 93 } 94 95 99 public void add (BusinessService b) { 100 businessService.add (b); 101 } 102 103 109 public boolean remove (BusinessService b) { 110 return businessService.remove (b); 111 } 112 113 118 public BusinessService get (int index) { 119 return (BusinessService) businessService.get (index); 120 } 121 122 126 public int size () { 127 return businessService.size (); 128 } 129 130 139 public void saveToXML(Element parent) { 140 base = parent.getOwnerDocument().createElement(UDDI_TAG); 141 if (businessService!=null) { 143 for (int i=0; i < businessService.size(); i++) { 144 ((BusinessService)(businessService.elementAt(i))).saveToXML(base); 145 } 146 } 147 parent.appendChild(base); 148 } 149 } 150
| Popular Tags
|