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; 23 24 import javax.management.MBeanFeatureInfo; 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 (Tue, 24 Oct 2006) $ 35 */ 36 37 public class FeatureInfo implements Serializable { 38 static final long serialVersionUID = -911529176124712296L; 39 40 protected String description = null; 41 protected String name = null; 42 protected MBeanFeatureInfo info = null; 43 44 // all have type except Constructor 45 protected String type = null; 46 47 48 // ------------------------------------------------------------- Properties 49 50 /** 51 * The human-readable description of this feature. 52 */ 53 public String getDescription() { 54 return (this.description); 55 } 56 57 public void setDescription(String 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 getName() { 67 return (this.name); 68 } 69 70 public void setName(String name) { 71 this.name = name; 72 } 73 74 /** 75 * The fully qualified Java class name of this element. 76 */ 77 public String getType() { 78 return (this.type); 79 } 80 81 public void setType(String type) { 82 this.type = type; 83 } 84 85 86 }