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