View Javadoc

1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  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,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  package org.apache.maven.plugin.ide;
20  
21  public class JeeDescriptor
22  {
23      private String jeeVersion;
24  
25      private String ejbVersion;
26  
27      private String servletVersion;
28  
29      private String jspVersion;
30  
31      public static final String JEE_1_2 = "1.2";
32  
33      public static final String JEE_1_3 = "1.3";
34  
35      public static final String JEE_1_4 = "1.4";
36  
37      public static final String JEE_5_0 = "5.0";
38  
39      public static final String EJB_1_1 = "1.1";
40  
41      public static final String EJB_2_0 = "2.0";
42  
43      public static final String EJB_2_1 = "2.1";
44  
45      public static final String EJB_3_0 = "3.0";
46  
47      public static final String SERVLET_2_2 = "2.2";
48  
49      public static final String SERVLET_2_3 = "2.3";
50  
51      public static final String SERVLET_2_4 = "2.4";
52  
53      public static final String SERVLET_2_5 = "2.5";
54  
55      public static final String JSP_1_1 = "1.1";
56  
57      public static final String JSP_1_2 = "1.2";
58  
59      public static final String JSP_2_0 = "2.0";
60  
61      public static final String JSP_2_1 = "2.1";
62  
63      /**
64       * @param jeeVersion
65       * @param ejbVersion
66       * @param servletVersion
67       * @param jspVersion
68       */
69      public JeeDescriptor( String jeeVersion, String ejbVersion, String servletVersion, String jspVersion )
70      {
71          super();
72          this.jeeVersion = jeeVersion;
73          this.ejbVersion = ejbVersion;
74          this.servletVersion = servletVersion;
75          this.jspVersion = jspVersion;
76      }
77  
78      /**
79       * @return the ejbVersion
80       */
81      public String getEjbVersion()
82      {
83          return ejbVersion;
84      }
85  
86      /**
87       * @return the jeeVersion
88       */
89      public String getJeeVersion()
90      {
91          return jeeVersion;
92      }
93  
94      /**
95       * @return the jspVersion
96       */
97      public String getJspVersion()
98      {
99          return jspVersion;
100     }
101 
102     /**
103      * @return the servletVersion
104      */
105     public String getServletVersion()
106     {
107         return servletVersion;
108     }
109 }