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.XmlAttribute; 34 import javax.xml.bind.annotation.XmlElement; 35 import javax.xml.bind.annotation.XmlRootElement; 36 import javax.xml.namespace.QName ; 37 import java.util.ArrayList ; 38 import java.util.List ; 39 40 43 @XmlAccessorType(XmlAccessType.FIELD) 44 @XmlRootElement(name="binding", namespace="http://schemas.xmlsoap.org/wsdl/") 45 public class WSDLBinding extends WSDLNamedExtensibleDocumented 46 implements WSDLDefinition { 47 @XmlElement(name="operation", namespace="http://schemas.xmlsoap.org/wsdl/") 48 private List <WSDLBindingOperation> _operations; 49 50 @XmlAttribute(required=true, name="type") 51 private QName _type; 52 53 56 public void setType(QName type) 57 { 58 _type = type; 59 } 60 61 public QName getType() 62 { 63 return _type; 64 } 65 66 69 public void addOperation(WSDLBindingOperation operation) 70 { 71 if (_operations == null) 72 _operations = new ArrayList <WSDLBindingOperation>(); 73 74 _operations.add(operation); 75 } 76 77 public List <WSDLBindingOperation> getOperations() 78 { 79 if (_operations == null) 80 _operations = new ArrayList <WSDLBindingOperation>(); 81 82 return _operations; 83 } 84 85 public String toString() 86 { 87 return "WSDLBinding[" + getName() + "]"; 88 } 89 } 90 | Popular Tags |