01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */package org.apache.openejb.jee;
17:
18: import javax.xml.bind.annotation.XmlAccessType;
19: import javax.xml.bind.annotation.XmlAccessorType;
20: import javax.xml.bind.annotation.XmlAttribute;
21: import javax.xml.bind.annotation.XmlElement;
22: import javax.xml.bind.annotation.XmlID;
23: import javax.xml.bind.annotation.XmlType;
24: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
25: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
26:
27: @XmlAccessorType(XmlAccessType.FIELD)
28: @XmlType(name="moduleType",propOrder={"connector","ejb","java","web","altDd"})
29: public class Module {
30:
31: protected String connector;
32: protected String ejb;
33: protected String java;
34: protected WebModule web;
35: @XmlElement(name="alt-dd")
36: protected String altDd;
37: @XmlAttribute
38: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
39: @XmlID
40: protected String id;
41:
42: public String getAltDd() {
43: return altDd;
44: }
45:
46: public void setAltDd(String altDd) {
47: this .altDd = altDd;
48: }
49:
50: public String getConnector() {
51: return connector;
52: }
53:
54: public void setConnector(String connector) {
55: this .connector = connector;
56: }
57:
58: public String getEjb() {
59: return ejb;
60: }
61:
62: public void setEjb(String ejb) {
63: this .ejb = ejb;
64: }
65:
66: public String getId() {
67: return id;
68: }
69:
70: public void setId(String id) {
71: this .id = id;
72: }
73:
74: public String getJava() {
75: return java;
76: }
77:
78: public void setJava(String java) {
79: this .java = java;
80: }
81:
82: public WebModule getWeb() {
83: return web;
84: }
85:
86: public void setWeb(WebModule web) {
87: this.web = web;
88: }
89:
90: }
|