# PropertyDescriptor

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

|---|---|---|
| Known Direct 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) |   | |||

Describes one Java Bean property.

NOTE: PropertyEditor support is not available in j2objc, since it depends
on core AWT classes.

### Public Constructor Summary

|---|---|
|   | [PropertyDescriptor](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/PropertyDescriptor.html#PropertyDescriptor(java.lang.String,%20java.lang.Class<?>,%20java.lang.String,%20java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) propertyName, [Class](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html)\<?\> beanClass, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) getterName, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) setterName) |
|   | [PropertyDescriptor](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/PropertyDescriptor.html#PropertyDescriptor(java.lang.String,%20java.lang.reflect.Method,%20java.lang.reflect.Method))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) propertyName, [Method](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/reflect/Method.html) getter, [Method](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/reflect/Method.html) setter) |
|   | [PropertyDescriptor](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/PropertyDescriptor.html#PropertyDescriptor(java.lang.String,%20java.lang.Class<?>))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) propertyName, [Class](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html)\<?\> beanClass) |

### Public Method Summary

|---|---|
| boolean | [equals](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/PropertyDescriptor.html#equals(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) object) Compares this instance with the specified object and indicates if they are equal. |
| [Class](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html)\<?\> | [getPropertyType](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/PropertyDescriptor.html#getPropertyType())() |
| [Method](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/reflect/Method.html) | [getReadMethod](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/PropertyDescriptor.html#getReadMethod())() |
| [Method](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/reflect/Method.html) | [getWriteMethod](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/PropertyDescriptor.html#getWriteMethod())() |
| int | [hashCode](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/PropertyDescriptor.html#hashCode())() Returns an integer hash code for this object. |
| boolean | [isBound](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/PropertyDescriptor.html#isBound())() |
| boolean | [isConstrained](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/PropertyDescriptor.html#isConstrained())() |
| void | [setBound](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/PropertyDescriptor.html#setBound(boolean))(boolean bound) |
| void | [setConstrained](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/PropertyDescriptor.html#setConstrained(boolean))(boolean constrained) |
| void | [setReadMethod](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/PropertyDescriptor.html#setReadMethod(java.lang.reflect.Method))([Method](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/reflect/Method.html) getter) |
| void | [setWriteMethod](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/PropertyDescriptor.html#setWriteMethod(java.lang.reflect.Method))([Method](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/reflect/Method.html) setter) |

### Inherited Method Summary

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

|---|---|
| [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. |

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
**PropertyDescriptor**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) propertyName, [Class](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html)\<?\> beanClass, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) getterName, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) setterName)

<br />

##### Parameters

| propertyName |   |
| beanClass |   |
| getterName |   |
| setterName |   |
|---|---|

##### Throws

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

#### public
**PropertyDescriptor**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) propertyName, [Method](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/reflect/Method.html) getter, [Method](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/reflect/Method.html) setter)

<br />

##### Parameters

| propertyName |   |
| getter |   |
| setter |   |
|---|---|

##### Throws

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

#### public
**PropertyDescriptor**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) propertyName, [Class](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html)\<?\> beanClass)

<br />

##### Parameters

| propertyName |   |
| beanClass |   |
|---|---|

##### Throws

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

## Public Methods

#### public boolean
**equals**
([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) object)

Compares this instance with the specified object and indicates if they
are equal. In order to be equal, `o` must represent the same object
as this instance using a class-specific comparison. The general contract
is that this comparison should be reflexive, symmetric, and transitive.
Also, no object reference other than null is equal to null.

The default implementation returns `true` only if `this ==
o`. See [Writing a correct
`equals` method](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#writing_equals)
if you intend implementing your own `equals` method.

The general contract for the `equals` and `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#hashCode()` methods is that if `equals` returns `true` for
any two objects, then `hashCode()` must return the same value for
these objects. This means that subclasses of `Object` usually
override either both methods or neither of them.

##### Parameters

| object | the object to compare this instance with. |
|---|---|

##### Returns

- `true` if the specified object is equal to this `Object`; `false` otherwise.

#### public [Class](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html)\<?\>
**getPropertyType**
()

<br />

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

<br />

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

<br />

#### public int
**hashCode**
()

Returns an integer hash code for this object. By contract, any two
objects for which `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#equals(java.lang.Object)` returns `true` must return
the same hash code value. This means that subclasses of `Object`
usually override both methods or neither method.

Note that hash values must not change over time unless information used in equals
comparisons also changes.

See [Writing a correct
`hashCode` method](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#writing_hashCode)
if you intend implementing your own `hashCode` method.

##### Returns

- this object's hash code.

#### public boolean
**isBound**
()

<br />

#### public boolean
**isConstrained**
()

<br />

#### public void
**setBound**
(boolean bound)

<br />

##### Parameters

| bound |   |
|---|---|

#### public void
**setConstrained**
(boolean constrained)

<br />

##### Parameters

| constrained |   |
|---|---|

#### public void
**setReadMethod**
([Method](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/reflect/Method.html) getter)

<br />

##### Parameters

| getter |   |
|---|---|

##### Throws

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

#### public void
**setWriteMethod**
([Method](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/reflect/Method.html) setter)

<br />

##### Parameters

| setter |   |
|---|---|

##### Throws

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