View Javadoc

1    /****************************************************************************
2    * Copyright (c) 2005, 2006, 2007, 2008, 2009 Imola Informatica.
3    * All rights reserved. This program and the accompanying materials
4    * are made available under the terms of the LGPL License v2.1
5    * which accompanies this distribution, and is available at
6    * http://www.gnu.org/licenses/lgpl.html
7    ****************************************************************************/
8   package it.imolinfo.jbi4corba.webservice.generator;
9   
10  import java.util.ArrayList;
11  import java.util.HashMap;
12  import java.util.List;
13  import java.util.Map;
14  import javax.xml.namespace.QName;
15  
16  /**
17   * Used to store some WSDL information.
18   */
19  public class WsdlInformation {
20  
21    // has a ...
22  
23    /** The list of the interfaces defined in the WSDL. */
24    private List<QName> portTypeList = new ArrayList<QName>();
25  
26    /**
27     * A map where the key is the name of the Service and the value is the
28     * associated PortType.
29     */
30    Map<QName, QName> serviceAndPortType = new HashMap<QName, QName>();
31  
32    /**
33     * A map where the key is the QName of an interface and the value is a list
34     * of name of the asynchronous operations associated.
35     */
36    private Map<QName, List<QName>> asynchOperationMap
37      = new HashMap<QName, List<QName>>();
38  
39    /**
40     * A map where the key is the QName of an interface and the value is a list
41     * of name of the synchronous operations associated.
42     */
43    private Map<QName, List<QName>> synchOperationMap
44      = new HashMap<QName, List<QName>>();
45  
46    /**
47     * Constructor.
48     */
49    public WsdlInformation() {
50      // NOP
51    }
52  
53    // getter and setter
54  
55    public List<QName> getPortTypeList() {
56        return portTypeList;
57    }
58  
59    public void setPortTypeList(List<QName> portTypeList) {
60        this.portTypeList = portTypeList;
61    }
62  
63    public Map<QName, List<QName>> getAsynchOperationMap() {
64        return asynchOperationMap;
65    }
66  
67    public void setAsynchOperationMap(
68      Map<QName, List<QName>> asynchOperationMap) {
69  
70      this.asynchOperationMap = asynchOperationMap;
71    }
72  
73    public Map<QName, List<QName>> getSynchOperationMap() {
74        return synchOperationMap;
75    }
76  
77    public void setSynchOperationMap(Map<QName, List<QName>> synchOperationMap) {
78        this.synchOperationMap = synchOperationMap;
79    }
80  
81    public Map<QName, QName> getServiceAndPortType() {
82        return serviceAndPortType;
83    }
84  
85    public void setServiceAndPortType(Map<QName, QName> serviceAndPortType) {
86        this.serviceAndPortType = serviceAndPortType;
87    }
88  
89  }