Interface IBean

All Superinterfaces:
IDirtyable, IPropertyChangeProvider
All Known Implementing Classes:
AbstractBean, Address

public interface IBean
extends IPropertyChangeProvider, IDirtyable
A general interface for bean support.
Author:
ralph
  • Method Details

    • getPropertyNames

      java.lang.Iterable<java.lang.String> getPropertyNames()
      Returns the property names of this bean.
      Returns:
      the property names
      Since:
      1.2.9
    • set

      void set​(java.lang.String name, java.lang.Object value)
      Set the property with given name to the value
      Parameters:
      name - property name
      value - value
    • get

      java.lang.Object get​(java.lang.String name)
      Gets the property with given name
      Parameters:
      name - property name
      Returns:
      the value of the property
    • getChanges

      java.util.Collection<java.beans.PropertyChangeEvent> getChanges()
      Returns the list of changes that this bean has performed since loading.
      Returns:
      the list of changes so far
    • copyTo

      void copyTo​(java.lang.Object destination)
      Copies all properties to the given object.
      Parameters:
      destination - destination object
    • reset

      void reset()
      Reset all changes.