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 JEE_6_0 = "6.0";
40  
41      public static final String EJB_1_1 = "1.1";
42  
43      public static final String EJB_2_0 = "2.0";
44  
45      public static final String EJB_2_1 = "2.1";
46  
47      public static final String EJB_3_0 = "3.0";
48  
49      public static final String EJB_3_1 = "3.1";
50  
51      public static final String SERVLET_2_2 = "2.2";
52  
53      public static final String SERVLET_2_3 = "2.3";
54  
55      public static final String SERVLET_2_4 = "2.4";
56  
57      public static final String SERVLET_2_5 = "2.5";
58  
59      public static final String SERVLET_3_0 = "3.0";
60  
61      public static final String JSP_1_1 = "1.1";
62  
63      public static final String JSP_1_2 = "1.2";
64  
65      public static final String JSP_2_0 = "2.0";
66  
67      public static final String JSP_2_1 = "2.1";
68  
69      public static final String JSP_2_2 = "2.2";
70  
71      /**
72       * @param jeeVersion
73       * @param ejbVersion
74       * @param servletVersion
75       * @param jspVersion
76       */
77      public JeeDescriptor( String jeeVersion, String ejbVersion, String servletVersion, String jspVersion )
78      {
79          super();
80          this.jeeVersion = jeeVersion;
81          this.ejbVersion = ejbVersion;
82          this.servletVersion = servletVersion;
83          this.jspVersion = jspVersion;
84      }
85  
86      /**
87       * @return the ejbVersion
88       */
89      public String getEjbVersion()
90      {
91          return ejbVersion;
92      }
93  
94      /**
95       * @return the jeeVersion
96       */
97      public String getJeeVersion()
98      {
99          return jeeVersion;
100     }
101 
102     /**
103      * @return the jspVersion
104      */
105     public String getJspVersion()
106     {
107         return jspVersion;
108     }
109 
110     /**
111      * @return the servletVersion
112      */
113     public String getServletVersion()
114     {
115         return servletVersion;
116     }
117 }