01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * 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: package org.apache.tomcat.util.modeler;
19:
20: import java.io.Serializable;
21:
22: import javax.management.MBeanFeatureInfo;
23:
24: /**
25: * <p>Convenience base class for <code>AttributeInfo</code>,
26: * <code>ConstructorInfo</code>, and <code>OperationInfo</code> classes
27: * that will be used to collect configuration information for the
28: * <code>ModelMBean</code> beans exposed for management.</p>
29: *
30: * @author Craig R. McClanahan
31: * @version $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $
32: */
33:
34: public class FeatureInfo implements Serializable {
35: static final long serialVersionUID = -911529176124712296L;
36:
37: protected String description = null;
38: protected String name = null;
39: protected MBeanFeatureInfo info = null;
40:
41: // all have type except Constructor
42: protected String type = null;
43:
44: // ------------------------------------------------------------- Properties
45:
46: /**
47: * The human-readable description of this feature.
48: */
49: public String getDescription() {
50: return (this .description);
51: }
52:
53: public void setDescription(String description) {
54: this .description = description;
55: }
56:
57: /**
58: * The name of this feature, which must be unique among features in the
59: * same collection.
60: */
61: public String getName() {
62: return (this .name);
63: }
64:
65: public void setName(String name) {
66: this .name = name;
67: }
68:
69: /**
70: * The fully qualified Java class name of this element.
71: */
72: public String getType() {
73: return (this .type);
74: }
75:
76: public void setType(String type) {
77: this.type = type;
78: }
79:
80: }
|