1 28 29 package com.caucho.soap.wsdl; 30 31 import javax.xml.bind.annotation.XmlAccessType; 32 import javax.xml.bind.annotation.XmlAccessorType; 33 import javax.xml.bind.annotation.XmlElement; 34 import javax.xml.bind.annotation.XmlRootElement; 35 import java.util.ArrayList ; 36 import java.util.List ; 37 38 41 @XmlAccessorType(XmlAccessType.FIELD) 42 @XmlRootElement(name="service", namespace="http://schemas.xmlsoap.org/wsdl/") 43 public class WSDLService extends WSDLNamedExtensibleDocumented 44 implements WSDLDefinition 45 { 46 @XmlElement(name="port", namespace="http://schemas.xmlsoap.org/wsdl/") 47 private List <WSDLPort> _ports; 48 49 public void addPort(WSDLPort port) 50 { 51 if (_ports == null) 52 _ports = new ArrayList <WSDLPort>(); 53 54 _ports.add(port); 55 } 56 57 public List <WSDLPort> getPorts() 58 { 59 return _ports; 60 } 61 } 62 | Popular Tags |