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