KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > tomcat > util > modeler > FeatureInfo


1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */

17
18
19 package org.apache.tomcat.util.modeler;
20
21
22 import java.io.Serializable JavaDoc;
23
24 import javax.management.MBeanFeatureInfo JavaDoc;
25
26
27 /**
28  * <p>Convenience base class for <code>AttributeInfo</code>,
29  * <code>ConstructorInfo</code>, and <code>OperationInfo</code> classes
30  * that will be used to collect configuration information for the
31  * <code>ModelMBean</code> beans exposed for management.</p>
32  *
33  * @author Craig R. McClanahan
34  * @version $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $
35  */

36
37 public class FeatureInfo implements Serializable JavaDoc {
38     static final long serialVersionUID = -911529176124712296L;
39     
40     protected String JavaDoc description = null;
41     protected String JavaDoc name = null;
42     protected MBeanFeatureInfo JavaDoc info = null;
43     
44     // all have type except Constructor
45
protected String JavaDoc type = null;
46
47     
48     // ------------------------------------------------------------- Properties
49

50     /**
51      * The human-readable description of this feature.
52      */

53     public String JavaDoc getDescription() {
54         return (this.description);
55     }
56
57     public void setDescription(String JavaDoc description) {
58         this.description = description;
59     }
60
61
62     /**
63      * The name of this feature, which must be unique among features in the
64      * same collection.
65      */

66     public String JavaDoc getName() {
67         return (this.name);
68     }
69
70     public void setName(String JavaDoc name) {
71         this.name = name;
72     }
73
74     /**
75      * The fully qualified Java class name of this element.
76      */

77     public String JavaDoc getType() {
78         return (this.type);
79     }
80
81     public void setType(String JavaDoc type) {
82         this.type = type;
83     }
84
85
86 }
87
Popular Tags