# FeatureDescriptor

public class **FeatureDescriptor** extends [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)  

|---|---|---|
| Known Direct Subclasses [BeanDescriptor](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/BeanDescriptor.html), [EventSetDescriptor](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/EventSetDescriptor.html), [MethodDescriptor](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/MethodDescriptor.html), [ParameterDescriptor](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/ParameterDescriptor.html), [PropertyDescriptor](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/PropertyDescriptor.html) |---|---| | [BeanDescriptor](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/BeanDescriptor.html) | Describes a bean's global information. | | [EventSetDescriptor](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/EventSetDescriptor.html) |   | | [MethodDescriptor](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/MethodDescriptor.html) | Describes a bean's method. | | [ParameterDescriptor](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/ParameterDescriptor.html) |   | | [PropertyDescriptor](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/PropertyDescriptor.html) | Describes one Java Bean property. | |||

|---|---|---|
| Known Indirect Subclasses [IndexedPropertyDescriptor](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/IndexedPropertyDescriptor.html) |---|---| | [IndexedPropertyDescriptor](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/IndexedPropertyDescriptor.html) |   | |||

Common base class for Descriptors.

### Public Constructor Summary

|---|---|
|   | [FeatureDescriptor](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html#FeatureDescriptor())() Constructs an instance. |

### Public Method Summary

|---|---|
| [Enumeration](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Enumeration.html)\<[String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)\> | [attributeNames](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html#attributeNames())() Enumerates the attribute names. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getDisplayName](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html#getDisplayName())() Gets the display name or `https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html#getName()` if not set. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getName](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html#getName())() Gets the name. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getShortDescription](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html#getShortDescription())() Gets the short description or `https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html#getDisplayName()` if not set. |
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [getValue](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html#getValue(java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) attributeName) Gets the value associated with the named attribute. |
| boolean | [isExpert](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html#isExpert())() Indicates if this feature is an expert feature. |
| boolean | [isHidden](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html#isHidden())() Indicates if this feature is hidden. |
| boolean | [isPreferred](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html#isPreferred())() Indicates if this feature is preferred. |
| void | [setDisplayName](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html#setDisplayName(java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) displayName) Sets the display name. |
| void | [setExpert](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html#setExpert(boolean))(boolean expert) Sets the expert indicator. |
| void | [setHidden](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html#setHidden(boolean))(boolean hidden) Sets the hidden indicator. |
| void | [setName](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html#setName(java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name) Sets the name. |
| void | [setPreferred](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html#setPreferred(boolean))(boolean preferred) Sets the preferred indicator. |
| void | [setShortDescription](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html#setShortDescription(java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) text) Sets the short description. |
| void | [setValue](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html#setValue(java.lang.String,%20java.lang.Object))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) attributeName, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value) Sets the value for the named attribute. |

### Inherited Method Summary

From class [java.lang.Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)

|---|---|
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [clone](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#clone())() Creates and returns a copy of this `Object`. |
| boolean | [equals](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#equals(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) obj) Compares this instance with the specified object and indicates if they are equal. |
| void | [finalize](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#finalize())() Invoked when the garbage collector has detected that this instance is no longer reachable. |
| final [Class](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html)\<?\> | [getClass](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#getClass())() Returns the unique instance of `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html` that represents this object's class. |
| int | [hashCode](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#hashCode())() Returns an integer hash code for this object. |
| final void | [notify](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notify())() Causes a thread which is waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| final void | [notifyAll](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notifyAll())() Causes all threads which are waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [toString](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#toString())() Returns a string containing a concise, human-readable description of this object. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long,%20int))(long timeout, int nanos) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long))(long timeout) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait())() Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object. |

## Public Constructors

#### public
**FeatureDescriptor**
()

<br />


Constructs an instance.

<br />

## Public Methods

#### public [Enumeration](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Enumeration.html)\<[String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)\>
**attributeNames**
()

<br />


Enumerates the attribute names.

<br />

##### Returns

- An instance of `https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Enumeration.html`.

#### public [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**getDisplayName**
()

<br />


Gets the display name or `https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html#getName()` if not set.

<br />

##### Returns

- The display name.

#### public [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**getName**
()

<br />


Gets the name.

<br />

##### Returns

- The name.

#### public [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**getShortDescription**
()

<br />


Gets the short description or `https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html#getDisplayName()` if not set.

<br />

##### Returns

- The description.

#### public [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)
**getValue**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) attributeName)

<br />


Gets the value associated with the named attribute.

<br />

##### Parameters

| attributeName | The name of the attribute to get a value for. |
|---|---|

##### Returns

- The attribute's value.

#### public boolean
**isExpert**
()

<br />


Indicates if this feature is an expert feature.

<br />

##### Returns

- `true` if hidden, `false` otherwise.

#### public boolean
**isHidden**
()

<br />


Indicates if this feature is hidden.

<br />

##### Returns

- `true` if hidden, `false` otherwise.

#### public boolean
**isPreferred**
()

<br />


Indicates if this feature is preferred.

<br />

##### Returns

- `true` if preferred, `false` otherwise.

#### public void
**setDisplayName**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) displayName)

<br />


Sets the display name.

<br />

##### Parameters

| displayName | The display name to set. |
|---|---|

#### public void
**setExpert**
(boolean expert)

<br />


Sets the expert indicator.

<br />

##### Parameters

| expert | `true` if expert, `false` otherwise. |
|---|---|

#### public void
**setHidden**
(boolean hidden)

<br />


Sets the hidden indicator.

<br />

##### Parameters

| hidden | `true` if hidden, `false` otherwise. |
|---|---|

#### public void
**setName**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name)

<br />


Sets the name.

<br />

##### Parameters

| name | The name to set. |
|---|---|

#### public void
**setPreferred**
(boolean preferred)

<br />


Sets the preferred indicator.

<br />

##### Parameters

| preferred | `true` if preferred, `false` otherwise. |
|---|---|

#### public void
**setShortDescription**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) text)

<br />


Sets the short description.

<br />

##### Parameters

| text | The description to set. |
|---|---|

#### public void
**setValue**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) attributeName, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value)

<br />


Sets the value for the named attribute.

<br />

##### Parameters

| attributeName | The name of the attribute to set a value with. |
| value | The value to set. |
|---|---|