KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > planetamessenger > plugin > JPluginProperties


1 /*
2     =========================================================================
3     Package plugin - Plugin management.
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 library is free software; you can redistribute it and/or
14     modify it under the terms of the GNU Lesser General Public
15     License as published by the Free Software Foundation; either
16     version 2.1 of the License, or (at your option) any later version.
17
18     This library 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 GNU
21     Lesser General Public License for more details.
22
23     You should have received a copy of the GNU Lesser General Public
24     License along with this library; if not, write to the Free Software
25     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26
27     =========================================================================
28 */

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

38
39 package org.planetamessenger.plugin;
40
41
42 public class JPluginProperties {
43
44   private int nLibrarySpecificationMinorVersion;
45   private int nLibrarySpecificationMajorVersion;
46   private int nPluginId;
47   private String JavaDoc strName;
48   private String JavaDoc strVersion;
49   private String JavaDoc strDescription;
50   private String JavaDoc strPluginOwner;
51   private String JavaDoc strLicense;
52   private String JavaDoc strHomePage;
53   private String JavaDoc strFileName;
54   private String JavaDoc strClassName;
55
56
57   
58   
59   /**
60    * Creates a new instance of JPluginProperties
61    */

62   public JPluginProperties() {
63
64     nPluginId = -1;
65     strName = "";
66     strVersion = "";
67     strFileName = "";
68     strDescription = "";
69     strClassName = "";
70     strPluginOwner = "";
71     strLicense = "";
72     nLibrarySpecificationMinorVersion = -1;
73     nLibrarySpecificationMajorVersion = -1;
74   }
75   
76   /**
77    * Set the PluginId property.
78    * @param nPluginId The new plugin id;
79    */

80   public void setPluginId( int nPluginId ) {
81     
82     this.nPluginId = nPluginId;
83   }
84   
85   /**
86    * Get the pluginId property.
87    */

88   public int getPluginId() {
89    
90     return nPluginId;
91   }
92   
93   /**
94    * Set the PluginName property.
95    * @param strName The new plugin name;
96    */

97   public void setName( String JavaDoc strName ) {
98     
99     this.strName = strName;
100   }
101   
102   /**
103    * Get the Name property.
104    */

105   public String JavaDoc getName() {
106    
107     return strName;
108   }
109   
110   /**
111    * Set the PluginVersion property.
112    * @param strVersion The new plugin version;
113    */

114   public void setVersion( String JavaDoc strVersion ) {
115     
116     this.strVersion = strVersion;
117   }
118   
119   /**
120    * Get the plugin version property.
121    */

122   public String JavaDoc getVersion() {
123    
124     return strVersion;
125   }
126   
127   /**
128    * Set the library specification minor version.
129    * @param nLibrarySpecificationMinorVersion The new minor library specification minor version;
130    */

131   public void setLibrarySpecificationMinorVersion( int nLibrarySpecificationMinorVersion ) {
132     
133     this.nLibrarySpecificationMinorVersion = nLibrarySpecificationMinorVersion;
134   }
135   
136   /**
137    * Return the library specification minor version.
138    */

139   public int getLibrarySpecificationMinorVersion() {
140     
141     return nLibrarySpecificationMinorVersion;
142   }
143   
144   /**
145    * Set the library specification major version.
146    * @param nLibrarySpecificationMinorVersion The new major library specification minor version;
147    */

148   public void setLibrarySpecificationMajorVersion( int nLibrarySpecificationMajorVersion ) {
149     
150     this.nLibrarySpecificationMajorVersion = nLibrarySpecificationMajorVersion;
151   }
152   
153   /**
154    * Return the library specification major version.
155    */

156   public int getLibrarySpecificationMajorVersion() {
157     
158     return nLibrarySpecificationMajorVersion;
159   }
160   
161   /**
162    * Set the Description property.
163    * @param strDescription The plugin description;
164    */

165   public void setDescription( String JavaDoc strDescription ) {
166    
167     this.strDescription = strDescription;
168   }
169   
170   /**
171    * Get the plugin description property.
172    */

173   public String JavaDoc getDescription() {
174    
175     return strDescription;
176   }
177   
178   /**
179    * Set the plugin owner info.
180    * @param strPluginOwner The plugin owner to set;
181    */

182   public void setPluginOwner( String JavaDoc strPluginOwner ) {
183     
184     this.strPluginOwner = strPluginOwner;
185   }
186   
187   /**
188    * Return the plugin owner information.
189    */

190   public String JavaDoc getPluginOwner() {
191     
192     return strPluginOwner;
193   }
194   
195   /**
196    * Set the plugin license.
197    * @param strLicense The plugin license to set;
198    */

199   public void setLicense( String JavaDoc strLicense ) {
200     
201     this.strLicense = strLicense;
202   }
203
204   /**
205    * Return the license information.
206    */

207   public String JavaDoc getLicense() {
208     
209     return strLicense;
210   }
211   
212   /**
213    * Set the plugin home page.
214    * @param strHomePage The plugin home page;
215    */

216   public void setHomePage( String JavaDoc strHomePage ) {
217     
218     this.strHomePage = strHomePage;
219   }
220
221   /**
222    * Return the Plugin Home Page.
223    */

224   public String JavaDoc getHomePage() {
225     
226     return strHomePage;
227   }
228
229   /**
230    * Set the fileName property
231    * @param strText The plugin fileName;
232    */

233   public void setFileName( java.lang.String JavaDoc strFileName ) {
234     
235     this.strFileName = strFileName;
236   }
237
238   /**
239    * Get the fileName property.
240    */

241   public String JavaDoc getFileName() {
242     
243     return strFileName;
244   }
245
246   /**
247    * Set the className property.
248    * @param strText The plugin className;
249    */

250   public void setClassName( java.lang.String JavaDoc strClassName ) {
251     
252     this.strClassName = strClassName;
253   }
254
255   /**
256    * Get the className property.
257    */

258   public String JavaDoc getClassName() {
259     
260     return strClassName;
261   }
262   
263   /**
264    * Override the clone method for this object.
265    */

266   public Object JavaDoc clone() {
267     
268     JPluginProperties properties = new JPluginProperties();
269     
270     properties.setClassName( strClassName );
271     properties.setDescription( strDescription );
272     properties.setLibrarySpecificationMajorVersion( nLibrarySpecificationMajorVersion );
273     properties.setLibrarySpecificationMinorVersion( nLibrarySpecificationMinorVersion );
274     properties.setPluginId( nPluginId );
275     properties.setName( strName );
276     properties.setVersion( strVersion );
277     properties.setPluginOwner( strPluginOwner );
278     properties.setLicense( strLicense );
279     properties.setHomePage( strHomePage );
280
281     return properties;
282   }
283 }
284
285 // JPluginProperties class
Popular Tags