KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > planetamessenger > mos > engine > JLanguageField


1 /*
2     =========================================================================
3     Package engine - Implements the engine package.
4
5     This module is developed and maintained by PlanetaMessenger.org.
6     Specs, New and updated versions can be found in
7     http://www.planetamessenger.org
8     If you want contact the Team please send a email to Project Manager
9     Leidson Campos Alves Ferreira at leidson@planetamessenger.org
10
11     Copyright (C) since 2001 by PlanetaMessenger.org
12
13     This program is free software; you can redistribute it and/or modify
14     it under the terms of the GNU General Public License as published by
15     the Free Software Foundation; either version 2 of the License, or
16     (at your option) any later version.
17
18     This program is distributed in the hope that it will be useful,
19     but WITHOUT ANY WARRANTY; without even the implied warranty of
20     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21     GNU General Public License for more details.
22
23     You should have received a copy of the GNU General Public License
24     along with this program; if not, write to the Free Software
25     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26
27     =========================================================================
28 */

29 /**
30  *
31  * $Id: JLanguageField.java,v 1.1 2007/02/23 02:27:31 popolony2k Exp $
32  * $Author: popolony2k $
33  * $Name: $
34  * $Revision: 1.1 $
35  * $State: Exp $
36  *
37  */

38
39 package org.planetamessenger.mos.engine;
40
41
42
43 public class JLanguageField {
44
45   private String JavaDoc strLanguageId;
46   private String JavaDoc strVersion;
47   private String JavaDoc strDescription;
48   private String JavaDoc strOwner;
49   private String JavaDoc strLicense;
50   private String JavaDoc strHomePage;
51   private String JavaDoc strLanguage;
52   private Object JavaDoc objObject;
53
54   
55   /**
56     * Constructor. Initialize all class data
57     */

58   public JLanguageField() {
59     
60     strLanguageId = "";
61     strVersion = "";
62     strDescription = "";
63     strOwner = "";
64     strLicense = "";
65     strLanguage = "";
66     objObject = null;
67   }
68   
69   /**
70    * Set the Language Id property.
71    * @param strLanguageId The new language id;
72    */

73   public void setLanguageId( String JavaDoc strLanguageId ) {
74     
75     this.strLanguageId = strLanguageId;
76   }
77   
78   /**
79    * Get the Language Id property.
80    */

81   public String JavaDoc getLanguageId() {
82    
83     return strLanguageId;
84   }
85   
86   /**
87    * Set the Language Version property.
88    * @param strVersion The new language version;
89    */

90   public void setVersion( String JavaDoc strVersion ) {
91     
92     this.strVersion = strVersion;
93   }
94   
95   /**
96    * Get the language version property.
97    */

98   public String JavaDoc getVersion() {
99    
100     return strVersion;
101   }
102   
103   /**
104    * Set the Language property.
105    * @param strLanguage The new language property value;
106    */

107   public void setLanguage( String JavaDoc strLanguage ) {
108     
109     this.strLanguage = strLanguage;
110   }
111   
112   /**
113    * Get the Language property value.
114    */

115   public String JavaDoc getLanguage() {
116    
117     return strLanguage;
118   }
119
120   /**
121    * Set the Description property.
122    * @param strDescription The plugin description;
123    */

124   public void setDescription( String JavaDoc strDescription ) {
125    
126     this.strDescription = strDescription;
127   }
128   
129   /**
130    * Get the plugin description property.
131    */

132   public String JavaDoc getDescription() {
133    
134     return strDescription;
135   }
136   
137   /**
138    * Set the language owner info.
139    * @param strOwner The Language owner to set;
140    */

141   public void setOwner( String JavaDoc strOwner ) {
142     
143     this.strOwner = strOwner;
144   }
145   
146   /**
147    * Return the language owner information.
148    */

149   public String JavaDoc getOwner() {
150     
151     return strOwner;
152   }
153   
154   /**
155    * Set the plugin license.
156    * @param strLicense The plugin license to set;
157    */

158   public void setLicense( String JavaDoc strLicense ) {
159     
160     this.strLicense = strLicense;
161   }
162
163   /**
164    * Return the license information.
165    */

166   public String JavaDoc getLicense() {
167     
168     return strLicense;
169   }
170   
171   /**
172    * Set the plugin home page.
173    * @param strHomePage The plugin home page;
174    */

175   public void setHomePage( String JavaDoc strHomePage ) {
176     
177     this.strHomePage = strHomePage;
178   }
179
180   /**
181    * Return the Plugin Home Page.
182    */

183   public String JavaDoc getHomePage() {
184     
185     return strHomePage;
186   }
187   
188   /**
189    * Set a object to this language.
190    * @param objObject The new object to add to this languages;
191    */

192   public void setObject( Object JavaDoc objObject ) {
193     
194     this.objObject = objObject;
195   }
196   
197   /**
198    * Get the object assigned to this object.
199    */

200   public Object JavaDoc getObject() {
201     
202     return objObject;
203   }
204   
205   /**
206    * Override the clone method for this object.
207    */

208   public Object JavaDoc clone() {
209     
210     JLanguageField language = new JLanguageField();
211     
212     language.setDescription( strDescription );
213     language.setHomePage( strHomePage );
214     language.setLanguage( strLanguage );
215     language.setLanguageId( strLanguageId );
216     language.setLicense( strLicense );
217     language.setOwner( strOwner );
218     language.setVersion( strVersion );
219     language.setObject( objObject );
220
221     return language;
222   }
223 }
224
225 // JLanguageItem class
Popular Tags