KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > admin > common > IASVersion


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24 package com.sun.enterprise.admin.common;
25
26 //JDK imports
27
import java.io.Serializable JavaDoc;
28 import java.util.Date JavaDoc;
29
30 /**
31     Holder class for IAS version & licensing info
32 */

33 public class IASVersion implements Serializable JavaDoc
34 {
35     /* javac 1.4 generated serialVersionUID */
36     public static long serialVersionUID = -6600350216728544568L;
37
38     //VERSION
39
private String JavaDoc m_ProductName;
40     private String JavaDoc m_Version;
41     private String JavaDoc m_MajorVersion;
42     private String JavaDoc m_MinorVersion;
43     private String JavaDoc m_BuildVersion;
44     
45     //LICENSE
46
private String JavaDoc m_LicenseDescription;
47     private String JavaDoc m_LicenseType;
48     private Date JavaDoc m_LicenseExpirationDate;
49     private Date JavaDoc m_LicenseStartDate;
50     
51         
52     /**
53             Creates new Status.
54     */

55     public IASVersion( String JavaDoc ProductName,
56                         String JavaDoc Version,
57                         String JavaDoc MajorVersion,
58                         String JavaDoc MinorVersion,
59                         String JavaDoc BuildVersion,
60                         String JavaDoc LicenseDescription,
61                         String JavaDoc LicenseType,
62                         Date JavaDoc LicenseExpirationDate,
63                         Date JavaDoc LicenseStartDate )
64     {
65         m_ProductName = ProductName;
66         m_Version = ProductName;
67         m_MajorVersion = ProductName;
68         m_MinorVersion = MinorVersion;
69         m_BuildVersion = BuildVersion;
70         
71         m_LicenseDescription = LicenseDescription;
72         m_LicenseType = LicenseType;
73         m_LicenseExpirationDate = LicenseExpirationDate;
74         m_LicenseStartDate = LicenseStartDate;
75     }
76
77     public String JavaDoc getProductName()
78     {
79         return m_ProductName;
80     }
81     public String JavaDoc getVersion()
82     {
83         return m_Version;
84     }
85     public String JavaDoc getMajorVersion()
86     {
87         return m_MajorVersion;
88     }
89     public String JavaDoc getMinorVersion()
90     {
91         return m_MinorVersion;
92     }
93     public String JavaDoc getBuildVersion()
94     {
95         return m_BuildVersion;
96     }
97     
98     
99     public String JavaDoc getLicenseDescription()
100     {
101         return m_LicenseDescription;
102     }
103     public String JavaDoc getLicenseType()
104     {
105         return m_LicenseType;
106     }
107     public Date JavaDoc getLicenseExpirationDate()
108     {
109         return m_LicenseExpirationDate;
110     }
111     public Date JavaDoc getLicenseStartDate()
112     {
113         return m_LicenseStartDate;
114     }
115 }
Popular Tags