KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > celtix > tools > common > model > JavaModel


1 package org.objectweb.celtix.tools.common.model;
2
3 import java.util.*;
4 import org.objectweb.celtix.tools.extensions.jaxws.JAXWSBinding;
5
6 public class JavaModel {
7
8     private final Map<String JavaDoc, JavaInterface> interfaces;
9     private final Map<String JavaDoc, JavaExceptionClass> exceptionClasses;
10     private final Map<String JavaDoc, JavaServiceClass> serviceClasses;
11     
12     private String JavaDoc location;
13     private JAXWSBinding jaxwsBinding;
14     
15     public JavaModel() {
16         interfaces = new HashMap<String JavaDoc, JavaInterface>();
17         exceptionClasses = new HashMap<String JavaDoc, JavaExceptionClass>();
18         serviceClasses = new HashMap<String JavaDoc, JavaServiceClass>();
19         jaxwsBinding = new JAXWSBinding();
20     }
21
22     public void addInterface(String JavaDoc name, JavaInterface i) {
23         this.interfaces.put(name, i);
24     }
25
26     public Map<String JavaDoc, JavaInterface> getInterfaces() {
27         return this.interfaces;
28     }
29
30
31     public void addExceptionClass(String JavaDoc name, JavaExceptionClass ex) {
32         this.exceptionClasses.put(name, ex);
33     }
34     
35     public Map<String JavaDoc, JavaExceptionClass> getExceptionClasses() {
36         return this.exceptionClasses;
37     }
38
39     public void addServiceClass(String JavaDoc name, JavaServiceClass service) {
40         this.serviceClasses.put(name, service);
41     }
42     
43     public Map<String JavaDoc, JavaServiceClass> getServiceClasses() {
44         return this.serviceClasses;
45     }
46
47     public void setLocation(String JavaDoc l) {
48         this.location = l;
49     }
50
51     public String JavaDoc getLocation() {
52         return this.location;
53     }
54
55     public JAXWSBinding getJAXWSBinding() {
56         return this.jaxwsBinding;
57     }
58     
59     public void setJAXWSBinding(JAXWSBinding binding) {
60         if (binding != null) {
61             this.jaxwsBinding = binding;
62         }
63     }
64 }
65
Popular Tags