1 16 package org.apache.wsdl.impl; 17 18 import org.apache.wsdl.MessageReference; 19 import org.apache.wsdl.WSDLFaultReference; 20 import org.apache.wsdl.WSDLOperation; 21 import org.apache.wsdl.WSDLService; 22 23 import javax.xml.namespace.QName ; 24 import java.util.LinkedList ; 25 import java.util.List ; 26 27 30 public class WSDLOperationImpl extends ExtensibleComponentImpl 31 implements WSDLOperation { 32 35 private QName name; 36 37 40 private String messageExchangePattern; 41 42 45 private MessageReference inputMessage; 46 47 50 private MessageReference outputMessage; 51 52 55 private List infaults = new LinkedList (); 56 57 60 private List outfaults = new LinkedList (); 61 62 64 67 private String style = WSDLService.STYLE_DOC; 68 69 72 private boolean safety = false; 73 74 79 public List getInfaults() { 80 return infaults; 81 } 82 83 88 public void setInfaults(List infaults) { 89 this.infaults = infaults; 90 } 91 92 97 public MessageReference getInputMessage() { 98 return inputMessage; 99 } 100 101 106 public void setInputMessage(MessageReference inputMessage) { 107 this.inputMessage = inputMessage; 108 } 109 110 115 public String getMessageExchangePattern() { 116 return messageExchangePattern; 117 } 118 119 124 public void setMessageExchangePattern(String messageExchangePattern) { 125 this.messageExchangePattern = messageExchangePattern; 126 } 127 128 133 public QName getName() { 134 return name; 135 } 136 137 142 public void setName(QName name) { 143 this.name = name; 144 } 145 146 151 public List getOutfaults() { 152 return outfaults; 153 } 154 155 160 public void setOutfaults(List outfaults) { 161 this.outfaults = outfaults; 162 } 163 164 169 public MessageReference getOutputMessage() { 170 return outputMessage; 171 } 172 173 178 public void setOutputMessage(MessageReference outputMessage) { 179 this.outputMessage = outputMessage; 180 } 181 182 187 public boolean isSafe() { 188 return safety; 189 } 190 191 196 public void setSafety(boolean safe) { 197 this.safety = safe; 198 } 199 200 public String getStyle() { 201 return style; 202 } 203 204 public void setStyle(String style) { 205 this.style = style; 206 } 207 208 213 public String getTargetnamespace() { 214 if (null != this.name) { 215 return this.name.getNamespaceURI(); 216 } 217 return null; 218 } 219 220 224 public void addInFault(WSDLFaultReference inFault){ 225 this.infaults.add(inFault); 226 } 227 228 232 public void addOutFault(WSDLFaultReference outFault){ 233 this.outfaults.add(outFault); 234 } 235 } 236 | Popular Tags |