Package org.apache.commons.modeler
Class FeatureInfo
- java.lang.Object
-
- org.apache.commons.modeler.FeatureInfo
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
AttributeInfo,ConstructorInfo,NotificationInfo,OperationInfo,ParameterInfo
public class FeatureInfo extends java.lang.Object implements java.io.SerializableConvenience base class for
AttributeInfo,ConstructorInfo, andOperationInfoclasses that will be used to collect configuration information for theModelMBeanbeans exposed for management.- Version:
- $Revision: 480402 $ $Date: 2006-11-29 04:43:23 +0000 (Wed, 29 Nov 2006) $
- Author:
- Craig R. McClanahan
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringdescriptionprotected java.util.Listfieldsprotected java.lang.Stringname(package private) static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description FeatureInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddField(FieldInfo field)Add a new field to the fields associated with the Descriptor that will be created from this metadata.protected voidaddFields(javax.management.Descriptor descriptor)Add the name/value fields that have been stored into the specifiedDescriptorinstance.java.lang.StringgetDescription()The human-readable description of this feature.java.util.ListgetFields()The field information for this feature.java.lang.StringgetName()The name of this feature, which must be unique among features in the same collection.voidsetDescription(java.lang.String description)voidsetName(java.lang.String name)
-
-
-
Field Detail
-
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
-
description
protected java.lang.String description
-
fields
protected java.util.List fields
-
name
protected java.lang.String name
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
The human-readable description of this feature.
-
setDescription
public void setDescription(java.lang.String description)
-
getFields
public java.util.List getFields()
The field information for this feature.
-
getName
public java.lang.String getName()
The name of this feature, which must be unique among features in the same collection.
-
setName
public void setName(java.lang.String name)
-
addField
public void addField(FieldInfo field)
Add a new field to the fields associated with the Descriptor that will be created from this metadata.
- Parameters:
field- The field to be added
-
addFields
protected void addFields(javax.management.Descriptor descriptor)
Add the name/value fields that have been stored into the specified
Descriptorinstance.- Parameters:
descriptor- TheDescriptorto add fields to
-
-