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.Serializable
Convenience base class for
AttributeInfo
,ConstructorInfo
, andOperationInfo
classes that will be used to collect configuration information for theModelMBean
beans exposed for management.- Version:
- $Revision: 155428 $ $Date: 2005-02-26 08:12:25 -0500 (Sat, 26 Feb 2005) $
- Author:
- Craig R. McClanahan
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
description
protected java.util.List
fields
protected java.lang.String
name
(package private) static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description FeatureInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addField(FieldInfo field)
Add a new field to the fields associated with the Descriptor that will be created from this metadata.protected void
addFields(javax.management.Descriptor descriptor)
Add the name/value fields that have been stored into the specifiedDescriptor
instance.java.lang.String
getDescription()
The human-readable description of this feature.java.util.List
getFields()
The field information for this feature.java.lang.String
getName()
The name of this feature, which must be unique among features in the same collection.void
setDescription(java.lang.String description)
void
setName(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
Descriptor
instance.- Parameters:
descriptor
- TheDescriptor
to add fields to
-
-