KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > webservice > metadata > jaxrpcmapping > ServiceInterfaceMapping


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.webservice.metadata.jaxrpcmapping;
8
9 // $Id: ServiceInterfaceMapping.java,v 1.1 2004/05/14 18:34:23 tdiesler Exp $
10

11 import javax.xml.namespace.QName JavaDoc;
12 import java.util.ArrayList JavaDoc;
13
14 /**
15  * XML mapping of the java-wsdl-mapping/service-interface-mapping element.
16  *
17  * @author Thomas.Diesler@jboss.org
18  * @since 14-May-2004
19  */

20 public class ServiceInterfaceMapping
21 {
22    // The parent <java-wsdl-mapping> element
23
private JavaWsdlMapping javaWsdlMapping;
24
25    // The required <service-interface> element
26
private String JavaDoc serviceInterface;
27    // The required <wsdl-service-name> element
28
private QName JavaDoc wsdlServiceName;
29    // Zero or more <port-mapping> elements
30
private ArrayList JavaDoc portMappings = new ArrayList JavaDoc();
31
32    public ServiceInterfaceMapping(JavaWsdlMapping javaWsdlMapping)
33    {
34       this.javaWsdlMapping = javaWsdlMapping;
35    }
36
37    public JavaWsdlMapping getJavaWsdlMapping()
38    {
39       return javaWsdlMapping;
40    }
41
42    public String JavaDoc getServiceInterface()
43    {
44       return serviceInterface;
45    }
46
47    public void setServiceInterface(String JavaDoc serviceInterface)
48    {
49       this.serviceInterface = serviceInterface;
50    }
51
52    public QName JavaDoc getWsdlServiceName()
53    {
54       return wsdlServiceName;
55    }
56
57    public void setWsdlServiceName(QName JavaDoc wsdlServiceName)
58    {
59       this.wsdlServiceName = wsdlServiceName;
60    }
61
62    public PortMapping[] getPortMappings()
63    {
64       PortMapping[] arr = new PortMapping[portMappings.size()];
65       portMappings.toArray(arr);
66       return arr;
67    }
68
69    public void addPortMapping(PortMapping portMapping)
70    {
71       portMappings.add(portMapping);
72    }
73 }
74
Popular Tags