|
||||||||||
| 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.field.FieldProperty<UJO,VALUE>
public class FieldProperty<UJO extends Ujo,VALUE>
A Field property implementation.
FieldProperty| Constructor Summary | |
|---|---|
FieldProperty(java.lang.String name,
java.lang.Class<VALUE> type,
int index,
ValueAgent<UJO,VALUE> agent)
Constructor |
|
FieldProperty(java.lang.String name,
VALUE defaultValue,
int index,
ValueAgent<UJO,VALUE> agent)
Constructor with a default value |
|
| Method Summary | |
|---|---|
VALUE |
readValue(UJO ujo)
WARNING: There is recommended to call the method from the method Ujo.readProperty(...) |
void |
writeValue(UJO ujo,
VALUE 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, 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 FieldProperty(java.lang.String name,
java.lang.Class<VALUE> type,
int index,
ValueAgent<UJO,VALUE> agent)
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.
public FieldProperty(java.lang.String name,
VALUE defaultValue,
int index,
ValueAgent<UJO,VALUE> agent)
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).| Method Detail |
|---|
public void writeValue(UJO ujo,
VALUE value)
throws java.lang.IllegalArgumentException
writeValue in interface ValueAgent<UJO extends Ujo,VALUE>java.lang.IllegalArgumentException
public VALUE readValue(UJO ujo)
throws java.lang.IllegalArgumentException
Ujo.readProperty(...) only.
readProperty(method).
readValue in interface ValueAgent<UJO extends Ujo,VALUE>java.lang.IllegalArgumentException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||