KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > util > monolog > provider > lib > topics > TopicsValue


1 /*====================================================================
2
3 OpenCCM: The Open CORBA Component Model Platform
4 Copyright (C) 2000-2003 USTL - LIFL - GOAL
5 Contact: openccm-team@objectweb.org
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public
18 License along with this library; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20 USA
21
22 Initial developer(s): Jerome Offroy.
23 Contributor(s): ______________________________________.
24
25 ====================================================================*/

26
27 package org.objectweb.util.monolog.provider.lib.topics;
28
29 /**
30  * @author Jerome Offroy
31  *
32  * class used to store a Topics defined in base code
33  *
34  */

35 public class TopicsValue {
36     
37     /**
38      * Refeference of the object to Trace
39      */

40     protected Class JavaDoc ref;
41     
42     /**
43      * Topic name used to trace in the reference object
44      */

45     protected String JavaDoc name;
46     
47     /**
48      * desription of the Trace-Object referenced
49      */

50     protected String JavaDoc[] description;
51
52
53
54     /**
55      * Constructor for TopicsValue.
56      */

57     public TopicsValue(Class JavaDoc ref, String JavaDoc name, String JavaDoc[] desccription) {
58         this.setRef(ref);
59         this.setName(name);
60         this.setDescription(desccription);
61     }
62
63     /*********************************
64      * Getter and setter
65      *********************************/

66     /**
67      * Returns the description.
68      * @return String[]
69      */

70     public String JavaDoc[] getDescription() {
71         return description;
72     }
73
74     /**
75      * Returns the name.
76      * @return String
77      */

78     public String JavaDoc getName() {
79         return name;
80     }
81
82     /**
83      * Sets the description.
84      * @param description The description to set
85      */

86     public void setDescription(String JavaDoc[] description) {
87         this.description = description;
88     }
89
90     /**
91      * Sets the name.
92      * @param name The name to set
93      */

94     public void setName(String JavaDoc name) {
95         this.name = name;
96     }
97
98     /**
99      * Returns the ref.
100      * @return Object
101      */

102     public Object JavaDoc getRef() {
103         return ref;
104     }
105
106     /**
107      * Sets the ref.
108      * @param ref The ref to set
109      */

110     public void setRef(Class JavaDoc ref) {
111         this.ref = ref;
112     }
113
114 }
Popular Tags