1 16 package org.apache.wsdl.impl; 17 18 import org.apache.wsdl.WSDLBinding; 19 import org.apache.wsdl.WSDLBindingFault; 20 import org.apache.wsdl.WSDLBindingOperation; 21 import org.apache.wsdl.WSDLInterface; 22 23 import javax.xml.namespace.QName ; 24 import java.util.HashMap ; 25 26 29 public class WSDLBindingImpl extends ExtensibleComponentImpl 30 implements WSDLBinding { 31 34 private QName name; 35 36 39 private WSDLInterface boundInterface; 40 41 44 private HashMap bindingFaults = new HashMap (); 45 46 49 private HashMap bindingOperations = new HashMap (); 50 51 56 public WSDLInterface getBoundInterface() { 57 return boundInterface; 58 } 59 60 65 public void setBoundInterface(WSDLInterface boundInterface) { 66 this.boundInterface = boundInterface; 67 } 68 69 74 public QName getName() { 75 return name; 76 } 77 78 83 public void setName(QName name) { 84 this.name = name; 85 } 86 87 92 public String getTargetNameSpace() { 93 return this.name.getNamespaceURI(); 94 } 95 96 101 public HashMap getBindingFaults() { 102 return bindingFaults; 103 } 104 105 110 public void setBindingFaults(HashMap bindingFaults) { 111 this.bindingFaults = bindingFaults; 112 } 113 114 119 public HashMap getBindingOperations() { 120 return bindingOperations; 121 } 122 123 128 public void setBindingOperations(HashMap bindingOperations) { 129 this.bindingOperations = bindingOperations; 130 } 131 132 137 public void addBindingOperation(WSDLBindingOperation bindingOperation) { 138 if (null != bindingOperation) { 139 this.bindingOperations.put(bindingOperation.getName(), 140 bindingOperation); 141 } 142 } 143 144 150 public WSDLBindingOperation getBindingOperation(QName qName) { 151 return (WSDLBindingOperation) this.bindingOperations.get(qName); 152 } 153 154 159 public void addBindingFaults(WSDLBindingFault bindingFault) { 160 if (null != bindingFault) { 161 this.bindingFaults.put(bindingFault.getRef(), bindingFault); 162 } 163 } 164 165 171 public WSDLBindingFault getBindingFault(QName ref) { 172 return (WSDLBindingFault) this.bindingFaults.get(ref); 173 } 174 } 175 | Popular Tags |