Class BeanProperty

java.lang.Object
jodd.bean.BeanProperty

public class BeanProperty extends Object
Represents a bean named property. Contains two information:
  1. Bean instance (and cached class descriptor)
  2. Property name
Used only internally by BeanUtil and similar utils.
  • Field Details

  • Constructor Details

  • Method Details

    • setName

      public void setName(String name)
      Sets current property name.
    • setBean

      private void setBean(Object bean)
      Sets new bean instance.
    • updateBean

      public void updateBean(Object bean)
      Updates the bean. Detects special case of suppliers.
    • updateBeanClassFromProperty

      public void updateBeanClassFromProperty()
    • isExistingParentNull

      public boolean isExistingParentNull()
    • currentPropertyExistOnParent

      public boolean currentPropertyExistOnParent(boolean declared)
    • loadPropertyDescriptor

      private void loadPropertyDescriptor()
      Loads property descriptor, if property was updated.
    • getGetter

      public Getter getGetter(boolean declared)
      Returns getter.
    • getSetter

      public Setter getSetter(boolean declared)
      Returns setter.
    • isMap

      public boolean isMap()
      Returns true if class is a map.
    • toString

      public String toString()
      Overrides:
      toString in class Object