Package groovy.lang

# Class PropertyValue

java.lang.Object
groovy.lang.PropertyValue

public class PropertyValue extends Object
A mutable view of a bean property value.

- ## Constructor Summary

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

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getName()`
  Returns the property name.
  `Class`
  `getType()`
  Returns the property type.
  `Object`
  `getValue()`
  Returns the current property value.
  `void`
  `setValue(Object value)`
  Sets the property value.

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

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### PropertyValue

    public PropertyValue(Object bean, MetaProperty mp)
    Creates a property value view.
    Parameters:
      `bean` - the bean owning the property
      `mp` - the property metadata

- ## Method Details

  - ### getName

    public String getName()
    Returns the property name.
    Returns:
      the property name

  - ### getType

    public Class getType()
    Returns the property type.
    Returns:
      the property type

  - ### getValue

    public Object getValue()
    Returns the current property value.
    Returns:
      the property value

  - ### setValue

    public void setValue(Object value)
    Sets the property value.
    Parameters:
      `value` - the new property value