org.yaml.snakeyaml.introspector

## Class MethodProperty

- java.lang.Object
- - org.yaml.snakeyaml.introspector.Property
  - - org.yaml.snakeyaml.introspector.GenericProperty
    - - org.yaml.snakeyaml.introspector.MethodProperty

All Implemented Interfaces:
  java.lang.Comparable<Property>

    public class MethodProperty
    extends GenericProperty

A `MethodProperty` is a `Property` which is accessed through accessor methods (setX, getX). It is possible to have a `MethodProperty` which has only setter, only getter, or both. It is not possible to have a `MethodProperty` which has neither setter nor getter.

### Constructor Summary

Constructors
Constructor and Description
`MethodProperty(java.beans.PropertyDescriptor property)`

### Method Summary

Methods
`java.lang.Object` `get(java.lang.Object object)`
`boolean` `isReadable()`
`boolean` `isWritable()`
`void` `set(java.lang.Object object, java.lang.Object value)`

### Methods inherited from class org.yaml.snakeyaml.introspector.GenericProperty

`getActualTypeArguments`

### Methods inherited from class org.yaml.snakeyaml.introspector.Property

`compareTo, equals, getName, getType, hashCode, toString`

### Methods inherited from class java.lang.Object

`clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

### Constructor Detail

#### MethodProperty

    public MethodProperty(java.beans.PropertyDescriptor property)

### Method Detail

#### set

    public void set(java.lang.Object object,
           java.lang.Object value)
             throws java.lang.Exception

Specified by:
  `set` in class `Property`
Throws:
  `java.lang.Exception`

#### get

    public java.lang.Object get(java.lang.Object object)

Specified by:
  `get` in class `Property`

#### isWritable

    public boolean isWritable()

Overrides:
  `isWritable` in class `Property`

#### isReadable

    public boolean isReadable()

Overrides:
  `isReadable` in class `Property`