1 7 package org.jboss.webservice.metadata.jaxrpcmapping; 8 9 11 import java.util.ArrayList ; 12 13 19 public class ServiceEndpointMethodMapping 20 { 21 private ServiceEndpointInterfaceMapping serviceEndpointInterfaceMapping; 23 24 private String javaMethodName; 26 private String wsdlOperation; 28 private boolean wrappedElement; 30 private ArrayList methodParamPartsMappings = new ArrayList (); 32 private WsdlReturnValueMapping wsdlReturnValueMapping; 34 35 public ServiceEndpointMethodMapping(ServiceEndpointInterfaceMapping serviceEndpointInterfaceMapping) 36 { 37 this.serviceEndpointInterfaceMapping = serviceEndpointInterfaceMapping; 38 } 39 40 public ServiceEndpointInterfaceMapping getServiceEndpointInterfaceMapping() 41 { 42 return serviceEndpointInterfaceMapping; 43 } 44 45 public String getJavaMethodName() 46 { 47 return javaMethodName; 48 } 49 50 public void setJavaMethodName(String javaMethodName) 51 { 52 this.javaMethodName = javaMethodName; 53 } 54 55 public MethodParamPartsMapping[] getMethodParamPartsMappings() 56 { 57 MethodParamPartsMapping[] arr = new MethodParamPartsMapping[methodParamPartsMappings.size()]; 58 methodParamPartsMappings.toArray(arr); 59 return arr; 60 } 61 62 public MethodParamPartsMapping getMethodParamPartsMappingByPartName(String partName) 63 { 64 MethodParamPartsMapping paramMapping = null; 65 for (int i = 0; paramMapping == null && i < methodParamPartsMappings.size(); i++) 66 { 67 MethodParamPartsMapping aux = (MethodParamPartsMapping)methodParamPartsMappings.get(i); 68 if (aux.getWsdlMessageMapping().getWsdlMessagePartName().equals(partName)) 69 paramMapping = aux; 70 } 71 return paramMapping; 72 } 73 74 public void addMethodParamPartsMapping(MethodParamPartsMapping methodParamPartsMapping) 75 { 76 methodParamPartsMappings.add(methodParamPartsMapping); 77 } 78 79 public boolean isWrappedElement() 80 { 81 return wrappedElement; 82 } 83 84 public void setWrappedElement(boolean wrappedElement) 85 { 86 this.wrappedElement = wrappedElement; 87 } 88 89 public String getWsdlOperation() 90 { 91 return wsdlOperation; 92 } 93 94 public void setWsdlOperation(String wsdlOperation) 95 { 96 this.wsdlOperation = wsdlOperation; 97 } 98 99 public WsdlReturnValueMapping getWsdlReturnValueMapping() 100 { 101 return wsdlReturnValueMapping; 102 } 103 104 public void setWsdlReturnValueMapping(WsdlReturnValueMapping wsdlReturnValueMapping) 105 { 106 this.wsdlReturnValueMapping = wsdlReturnValueMapping; 107 } 108 } 109 | Popular Tags |