Package: groovy.lang

## [Java] Class PropertyValue

- groovy.lang.PropertyValue

-     public class PropertyValue
      extends Object

  A mutable view of a bean property value.

- - ### Constructor Summary

    Constructors
    Constructor and description
    `PropertyValue(Object bean, MetaProperty mp)` Creates a property value view.

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public String` | `getName()` Returns the property name.
    `` | `public Class` | `getType()` Returns the property type.
    `` | `public Object` | `getValue()` Returns the current property value.
    `` | `public void` | `setValue(Object value)` Sets the property value.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### public PropertyValue(Object bean, MetaProperty mp)

      Creates a property value view.

      Parameters:
        `bean` - the bean owning the property
        `mp` - the property metadata

  - ### Method Detail

    - #### public String getName()

      Returns the property name.

      Returns:
        the property name

    - #### public Class getType()

      Returns the property type.

      Returns:
        the property type

    - #### public Object getValue()

      Returns the current property value.

      Returns:
        the property value

    - #### public void setValue(Object value)

      Sets the property value.

      Parameters:
        `value` - the new property value