|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.japaki.beans.ArrayProperty<B>
public class ArrayProperty<B>
Maps the contents of an array to a list of properties.
| Method Summary | ||
|---|---|---|
Class<Object[]> |
getType()
Returns Object[]. |
|
Object[] |
getValue(B bean)
Retrieves the value of each property in the specified bean and stores them in an array. |
|
static
|
newInstance(List<Property<? super B,?>> properties)
Factory method for instances of this class. |
|
void |
setValue(B bean,
Object[] value)
Stores the values of the specified array in the properties with the corresponding index in the specified bean. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <B> Property<B,Object[]> newInstance(List<Property<? super B,?>> properties)
properties - the target properties of the
getValue(B) getValue and
setValue(B,Object[]) setValue
methods.
NullPointerException - if properties is null.public Object[] getValue(B bean)
getValue in interface Property<B,Object[]>bean - source of the properties' values
ClassCastException - if the class of the bean cannot be handled
by this property
NullPointerException - if bean is null.
IllegalArgumentException - depending on the element properties
public void setValue(B bean,
Object[] value)
setValue in interface Property<B,Object[]>bean - target bean for the valuesvalue - new values of the bean's properties
UnsupportedOperationException - depending on the element properties
ClassCastException - depending on the element properties
NullPointerException - if bean is null or if the
specified value is null and the bean does not permit null values
IllegalArgumentException - depending on the element properties
IllegalStateException - depending on the element propertiespublic Class<Object[]> getType()
Object[].
getType in interface Property<B,Object[]>Object[]
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||