1 7 package org.jboss.webservice.metadata.jaxrpcmapping; 8 9 11 import javax.xml.namespace.QName ; 12 import java.util.ArrayList ; 13 import java.util.Iterator ; 14 15 21 public class ServiceEndpointInterfaceMapping 22 { 23 private JavaWsdlMapping javaWsdlMapping; 25 26 private String serviceEndpointInterface; 28 private QName wsdlPortType; 30 private QName wsdlBinding; 32 private ArrayList serviceEndpointMethodMappings = new ArrayList (); 34 35 public ServiceEndpointInterfaceMapping(JavaWsdlMapping javaWsdlMapping) 36 { 37 this.javaWsdlMapping = javaWsdlMapping; 38 } 39 40 public JavaWsdlMapping getJavaWsdlMapping() 41 { 42 return javaWsdlMapping; 43 } 44 45 public String getServiceEndpointInterface() 46 { 47 return serviceEndpointInterface; 48 } 49 50 public void setServiceEndpointInterface(String serviceEndpointInterface) 51 { 52 this.serviceEndpointInterface = serviceEndpointInterface; 53 } 54 55 public QName getWsdlPortType() 56 { 57 return wsdlPortType; 58 } 59 60 public void setWsdlPortType(QName wsdlPortType) 61 { 62 this.wsdlPortType = wsdlPortType; 63 } 64 65 public QName getWsdlBinding() 66 { 67 return wsdlBinding; 68 } 69 70 public void setWsdlBinding(QName wsdlBinding) 71 { 72 this.wsdlBinding = wsdlBinding; 73 } 74 75 public ServiceEndpointMethodMapping[] getServiceEndpointMethodMappings() 76 { 77 ServiceEndpointMethodMapping[] arr = new ServiceEndpointMethodMapping[serviceEndpointMethodMappings.size()]; 78 serviceEndpointMethodMappings.toArray(arr); 79 return arr; 80 } 81 82 public void addServiceEndpointMethodMapping(ServiceEndpointMethodMapping serviceEndpointMethodMapping) 83 { 84 serviceEndpointMethodMappings.add(serviceEndpointMethodMapping); 85 } 86 87 public ServiceEndpointMethodMapping getServiceEndpointMethodMappingByWsdlOperation(String wsdlOperation) 88 { 89 ServiceEndpointMethodMapping semMapping = null; 90 91 Iterator it = serviceEndpointMethodMappings.iterator(); 92 while (it.hasNext()) 93 { 94 ServiceEndpointMethodMapping aux = (ServiceEndpointMethodMapping)it.next(); 95 if (aux.getWsdlOperation().equals(wsdlOperation)) 96 semMapping = aux; 97 } 98 return semMapping; 99 } 100 } 101 | Popular Tags |