|
||||||||||
| 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.factory.FactoryProperty<UJO,VALUE>
public class FactoryProperty<UJO extends Ujo,VALUE>
A Factory property implementation.
FactoryProperty| Field Summary | |
|---|---|
protected java.lang.reflect.Constructor<VALUE> |
constructor
Constructor |
| Constructor Summary | |
|---|---|
FactoryProperty(java.lang.String name,
java.lang.Class<VALUE> type)
Constructor |
|
FactoryProperty(java.lang.String name,
java.lang.Class<VALUE> type,
int index)
Constructor |
|
| Method Summary | ||
|---|---|---|
static
|
newInstance(java.lang.String name,
java.lang.Class<VALUE> type)
Returns a new instance of property where the default value is null. |
|
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. |
|
VALUE |
readValue(UJO ujo)
Create new Value. |
|
protected void |
throwException(java.lang.Throwable e)
Throw an RuntimeException |
|
void |
writeValue(UJO ujo,
VALUE value)
The method os not implemented. |
|
| 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, of, setValue, setValueFromDefault, subSequence, toString, writeDefault |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final java.lang.reflect.Constructor<VALUE> constructor
| Constructor Detail |
|---|
public FactoryProperty(java.lang.String name,
java.lang.Class<VALUE> type)
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 FactoryProperty(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.| Method Detail |
|---|
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
public void writeValue(UJO ujo,
VALUE value)
throws java.lang.IllegalArgumentException
writeValue in interface ValueAgent<UJO extends Ujo,VALUE>java.lang.IllegalArgumentException
protected void throwException(java.lang.Throwable e)
throws java.lang.RuntimeException
java.lang.RuntimeException
public static <UJO extends Ujo,VALUE> FactoryProperty<UJO,VALUE> newInstance(java.lang.String name,
java.lang.Class<VALUE> type,
int index)
public static <UJO extends Ujo,VALUE> FactoryProperty<UJO,VALUE> newInstance(java.lang.String name,
java.lang.Class<VALUE> type)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||