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="portType", namespace="http://schemas.xmlsoap.org/wsdl/") 43 public class WSDLPortType extends WSDLNamedExtensibleAttributeDocumented 44 implements WSDLDefinition 45 { 46 @XmlElement(name="operation", namespace="http://schemas.xmlsoap.org/wsdl/", 47 type=WSDLOperation.class) 48 private List <WSDLOperation> _operations; 49 50 53 public void addOperation(WSDLOperation operation) 54 { 55 if (_operations == null) 56 _operations = new ArrayList <WSDLOperation>(); 57 58 _operations.add(operation); 59 } 60 61 64 public List <WSDLOperation> getOperations() 65 { 66 if (_operations == null) 67 _operations = new ArrayList <WSDLOperation>(); 68 69 return _operations; 70 } 71 } 72 | Popular Tags |