AI-generated Key Takeaways
- 
          FeatureDescriptoris a common base class for Descriptors and provides methods for describing features of Java Beans.
- 
          It allows setting and retrieving properties such as display name, short description, expert/hidden/preferred status, and custom attributes. 
- 
          Subclasses like BeanDescriptor,EventSetDescriptor,MethodDescriptor,ParameterDescriptor, andPropertyDescriptorprovide specific functionalities for different feature types.
- 
          Developers can use FeatureDescriptorand its subclasses to access and manipulate information about Java Bean components.
| Known Direct Subclasses | 
| Known Indirect Subclasses | 
Common base class for Descriptors.
Public Constructor Summary
| 
                FeatureDescriptor()
                
                 Constructs an instance. | 
Public Method Summary
| Enumeration<String> | 
                attributeNames()
                
                 Enumerates the attribute names. | 
| String | 
                getDisplayName()
                
                 
 Gets the display name or  | 
| String | 
                getName()
                
                 Gets the name. | 
| String | 
                getShortDescription()
                
                 
 Gets the short description or  | 
| Object | |
| boolean | 
                isExpert()
                
                 Indicates if this feature is an expert feature. | 
| boolean | 
                isHidden()
                
                 Indicates if this feature is hidden. | 
| boolean | 
                isPreferred()
                
                 Indicates if this feature is preferred. | 
| void | |
| void | 
                setExpert(boolean expert)
                
                 Sets the expert indicator. | 
| void | 
                setHidden(boolean hidden)
                
                 Sets the hidden indicator. | 
| void | |
| void | 
                setPreferred(boolean preferred)
                
                 Sets the preferred indicator. | 
| void | |
| void | 
Inherited Method Summary
Public Constructors
public FeatureDescriptor ()
Constructs an instance.
Public Methods
public Enumeration<String> attributeNames ()
Enumerates the attribute names.
Returns
- An instance of Enumeration.
public String getDisplayName ()
 Gets the display name or getName() if not set.
 
Returns
- The display name.
public String getShortDescription ()
 Gets the short description or getDisplayName() if not set.
 
Returns
- The description.
public Object getValue (String attributeName)
Gets the value associated with the named attribute.
Parameters
| attributeName | The name of the attribute to get a value for. | 
|---|
Returns
- The attribute's value.
public boolean isExpert ()
Indicates if this feature is an expert feature.
Returns
- trueif hidden,- falseotherwise.
public boolean isHidden ()
Indicates if this feature is hidden.
Returns
- trueif hidden,- falseotherwise.
public boolean isPreferred ()
Indicates if this feature is preferred.
Returns
- trueif preferred,- falseotherwise.
public void setDisplayName (String displayName)
Sets the display name.
Parameters
| displayName | The display name to set. | 
|---|
public void setExpert (boolean expert)
Sets the expert indicator.
Parameters
| expert | trueif expert,falseotherwise. | 
|---|
public void setHidden (boolean hidden)
Sets the hidden indicator.
Parameters
| hidden | trueif hidden,falseotherwise. | 
|---|
public void setPreferred (boolean preferred)
Sets the preferred indicator.
Parameters
| preferred | trueif preferred,falseotherwise. | 
|---|
public void setShortDescription (String text)
Sets the short description.
Parameters
| text | The description to set. | 
|---|
