net.sf.japaki.beans
Interface SinglePropertyBean<V>

All Known Implementing Classes:
MapItemBean, SimpleBean

public interface SinglePropertyBean<V>

A bean with a single property.


Method Summary
 V getValue()
          Returns the value of the (single) property of this bean.
 V setValue(V value)
          Changes the value of the (single) property of this bean.
 

Method Detail

getValue

V getValue()
Returns the value of the (single) property of this bean.

Returns:
the value of the (single) property of this bean

setValue

V setValue(V value)
Changes the value of the (single) property of this bean.

Parameters:
value - new value of the property
Returns:
the previously stored value
Throws:
UnsupportedOperationException - if the setValue operation is not supported by this bean
ClassCastException - if the class of the specified value prevents it from being stored in this bean
NullPointerException - if the specified value is null and this bean does not permit null elements
IllegalArgumentException - if some property of the specified value prevents it from being stored in this bean