View Javadoc

1   package org.codehaus.mojo.weblogic;
2   
3   /*
4    * Copyright 2008 The Apache Software Foundation.
5    *
6    * Licensed under the Apache License, Version 2.0 (the "License");
7    * you may not use this file except in compliance with the License.
8    * You may obtain a copy of the License at
9    *
10   *      http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing, software
13   * distributed under the License is distributed on an "AS IS" BASIS,
14   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   * See the License for the specific language governing permissions and
16   * limitations under the License.
17   */
18  
19  /**
20   * This class represents a service to be generated by the JwscMojo.
21   *
22   * @author <a href="mailto:josborn@belltracy.com">Jon Osborn</a>
23   * @see org.codehaus.mojo.weblogic.JwscMojo
24   */
25  public class Service
26  {
27  
28      /**
29       * The ejb jar file name
30       *
31       * @required
32       */
33      private String ejbJar;
34  
35      /**
36       * Should methods be expanded
37       *
38       * @parameter
39       */
40      private boolean expandMethods = true;
41  
42      /**
43       * Should types be generated
44       *
45       * @parameter
46       */
47      private boolean generateTypes = true;
48  
49      /**
50       * list of ejbs to generate
51       *
52       * @required
53       */
54      private String includeEJBs;
55  
56      /**
57       * The target namespace for the service
58       *
59       * @parameter
60       * @required
61       */
62      private String targetNamespace;
63  
64      /**
65       * The service name to generate
66       *
67       * @parameter
68       * @required
69       */
70      private String serviceName;
71  
72      /**
73       * The service uri to generate the service to
74       *
75       * @parameter
76       * @required
77       */
78      private String serviceUri;
79  
80      public String getServiceUri()
81      {
82          return serviceUri;
83      }
84  
85      public void setServiceUri( String serviceUri )
86      {
87          this.serviceUri = serviceUri;
88      }
89  
90      public String getServiceName()
91      {
92          return serviceName;
93      }
94  
95      public void setServiceName( String serviceName )
96      {
97          this.serviceName = serviceName;
98      }
99  
100     public Service()
101     {
102         super();
103     }
104 
105     public String getEjbJar()
106     {
107         return ejbJar;
108     }
109 
110     public String getIncludeEJBs()
111     {
112         return includeEJBs;
113     }
114 
115     public String getTargetNamespace()
116     {
117         return targetNamespace;
118     }
119 
120     public boolean isExpandMethods()
121     {
122         return expandMethods;
123     }
124 
125     public boolean isGenerateTypes()
126     {
127         return generateTypes;
128     }
129 
130     public void setEjbJar( String ejbJar )
131     {
132         this.ejbJar = ejbJar;
133     }
134 
135     public void setExpandMethods( boolean expandMethods )
136     {
137         this.expandMethods = expandMethods;
138     }
139 
140     public void setGenerateTypes( boolean generateTypes )
141     {
142         this.generateTypes = generateTypes;
143     }
144 
145     public void setIncludeEJBs( String includeEJBs )
146     {
147         this.includeEJBs = includeEJBs;
148     }
149 
150     public void setTargetNamespace( String targetNamespace )
151     {
152         this.targetNamespace = targetNamespace;
153     }
154 
155 }