|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujoframework.extensions.Property<UJO,VALUE>
org.ujoframework.implementation.bean.BeanProperty<UJO,VALUE>
public class BeanProperty<UJO extends Ujo,VALUE>
A Map property implementation.
BeanProperty| Constructor Summary | |
|---|---|
BeanProperty(java.lang.String name,
java.lang.Class<VALUE> type,
int index)
Constructor |
|
BeanProperty(java.lang.String name,
VALUE defaultValue,
int index)
Constructor with a default value |
|
| Method Summary | ||
|---|---|---|
static
|
newInstance(java.lang.String name,
java.lang.Class<VALUE> type,
int index)
Returns a new instance of property where the default value is null. |
|
static
|
newInstance(java.lang.String name,
VALUE value,
int index)
A Property Factory creates new property and assigns a next property index. |
|
java.lang.Object |
readValue(java.lang.Object bean)
WARNING: There is recommended to call the method from the method Ujo.readProperty(...) |
|
void |
writeValue(java.lang.Object bean,
java.lang.Object value)
WARNING: There is recommended to call the method from the method Ujo.writeProperty(...) only. |
|
| Methods inherited from class org.ujoframework.extensions.Property |
|---|
_nextSequence, add, compareTo, copy, descending, equals, getDefault, getIndex, getName, getType, getValue, charAt, checkAttribs, init, isAscending, isDefault, isDirect, isTypeOf, length, newInstance, newInstance, newInstance, newInstance, newInstance, of, setValue, setValueFromDefault, subSequence, toString, writeDefault |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BeanProperty(java.lang.String name,
java.lang.Class<VALUE> type,
int index)
name - The parameter MUST be a JavaBeans property name. The name will be used for building a Java reflection method name in a time of the first call.type - Type of a JavaBeans setter input method or getter output method.index - An order of property.
public BeanProperty(java.lang.String name,
VALUE defaultValue,
int index)
name - The parameter MUST be a JavaBeans property name. The name will be used for building a Java reflection method name in a time of the first call.defaultValue - The value must be type of VALUE exactly (no child).index - An order of property.| Method Detail |
|---|
public void writeValue(java.lang.Object bean,
java.lang.Object value)
throws java.lang.IllegalArgumentException
writeValue in interface ValueAgent<java.lang.Object,java.lang.Object>java.lang.IllegalArgumentException
public java.lang.Object readValue(java.lang.Object bean)
throws java.lang.IllegalArgumentException
Ujo.readProperty(...) only.
readProperty(method).
readValue in interface ValueAgent<java.lang.Object,java.lang.Object>java.lang.IllegalArgumentException
public static <UJO extends Ujo,VALUE> BeanProperty<UJO,VALUE> newInstance(java.lang.String name,
java.lang.Class<VALUE> type,
int index)
public static <UJO extends Ujo,VALUE> BeanProperty<UJO,VALUE> newInstance(java.lang.String name,
VALUE value,
int index)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||