KickJava   Java API By Example, From Geeks To Geeks.

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


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: JPlanetaMessengerStatus.java,v 1.7 2007/02/12 00:43:43 popolony2k Exp $
32  * $Author: popolony2k $
33  * $Name: $
34  * $Revision: 1.7 $
35  * $State: Exp $
36  *
37  */

38
39 package org.planetamessenger.plugin;
40
41
42 public class JPlanetaMessengerStatus {
43
44   int nPlanetaMessengerStatus;
45   java.lang.Object JavaDoc objPluginStatus;
46     
47
48   /**
49    * Create a JPlanetaMessengerStatus object;
50    * @param nPlanetaMessengerStatus The integer value of this
51    * object;
52    */

53   public JPlanetaMessengerStatus( int nPlanetaMessengerStatus ) {
54       
55     this.nPlanetaMessengerStatus = nPlanetaMessengerStatus;
56   }
57
58   /**
59    * Constructor. Creates a JPlanetaMessengerStatus
60    * object;
61    * @param nPlanetaMessengerStatus The integer value of this
62    * object;
63    * @param objPluginStatus The key object in status HashMap;
64    */

65   public JPlanetaMessengerStatus( int nPlanetaMessengerStatus, java.lang.Object JavaDoc objPluginStatus ) {
66
67     this( nPlanetaMessengerStatus );
68     this.objPluginStatus = objPluginStatus;
69   }
70
71   /**
72    * Return the status value.
73    */

74   public int getPlanetaMessengerStatus() {
75       
76     return nPlanetaMessengerStatus;
77   }
78
79   /**
80    * Return the key object of this class.
81    */

82   public java.lang.Object JavaDoc getPluginStatus() {
83       
84     return objPluginStatus;
85   }
86
87   /**
88    * Overrides the default comparision
89    * method for this class object.
90    * @param obj The object to compare to this
91    * object;
92    */

93   public boolean equals( java.lang.Object JavaDoc obj ) {
94
95     if( ( ( JPlanetaMessengerStatus ) obj ).nPlanetaMessengerStatus == nPlanetaMessengerStatus )
96       return true;
97     else
98       return false;
99   }
100     
101 } // JPlanetaMessengerStatus class
102
Popular Tags