Package rs.baselib.bean
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
-
Field Summary
-
Method Summary
Modifier and Type Method Description voidcopyTo(java.lang.Object destination)Copies all properties to the given object.java.lang.Objectget(java.lang.String name)Gets the property with given namejava.util.Collection<java.beans.PropertyChangeEvent>getChanges()Returns the list of changes that this bean has performed since loading.java.lang.Iterable<java.lang.String>getPropertyNames()Returns the property names of this bean.voidreset()Reset all changes.voidset(java.lang.String name, java.lang.Object value)Set the property with given name to the valueMethods inherited from interface rs.baselib.bean.IPropertyChangeProvider
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
-
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 namevalue- 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.
-