Package org.apache.commons.modeler
Class FeatureInfo
- java.lang.Object
-
- org.apache.commons.modeler.FeatureInfo
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AttributeInfo,ConstructorInfo,NotificationInfo,OperationInfo,ParameterInfo
public class FeatureInfo extends Object implements Serializable
Convenience 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
-
-
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(Descriptor descriptor)Add the name/value fields that have been stored into the specifiedDescriptorinstance.StringgetDescription()The human-readable description of this feature.ListgetFields()The field information for this feature.StringgetName()The name of this feature, which must be unique among features in the same collection.voidsetDescription(String description)voidsetName(String name)
-
-
-
Method Detail
-
getDescription
public String getDescription()
The human-readable description of this feature.
-
setDescription
public void setDescription(String description)
-
getFields
public List getFields()
The field information for this feature.
-
getName
public String getName()
The name of this feature, which must be unique among features in the same collection.
-
setName
public void setName(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(Descriptor descriptor)
Add the name/value fields that have been stored into the specified
Descriptorinstance.- Parameters:
descriptor- TheDescriptorto add fields to
-
-