|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UjoExt<UJO_IMPL extends UjoExt>
This is an extended Ujo interface designed for a more conventional property access evaluated by developers.
Most of the functions have been a similar reason like methods in the UjoProperty class.
The new solution allows to the developers to chain more properties according to
a model of a some new popular languages.
All methods are type safe likewise the usage of the Ujo interface - exclude two methods with an unlimited count of properties: setVal(...) and getVal(...).
Sample of usage:
public class Person extends MapUjo implements UjoMiddle { public static final UjoProperty<Person, String > NAME = newProperty("Name", String.class); public static final UjoProperty<Person, Double > CASH = newProperty("Cash", Double.class); public static final UjoProperty<Person, Person> CHILD = newProperty("Child", Person.class); public void init() { set(NAME, "George"); set(CHILD, new Person()); set(CHILD, NAME, "Jane"); set(CHILD, CASH, 200d); String name = get(CHILD, NAME); double cash = get(CHILD, CASH); } }
| Method Summary | ||
|---|---|---|
|
add(ListUjoProperty<UJO,ITEM> property,
ITEM value)
Add Value, if the List is null then the list will be created. |
|
|
get(ListUjoProperty<UJO,ITEM> property,
int index)
Get Value Inside is called a method ListUjoPropertyCommon.getItem(...) . |
|
|
get(UjoProperty<UJO1,UJO2> property1,
UjoProperty<UJO2,UJO3> property2,
UjoProperty<UJO3,VALUE> property3)
Getter based on three properties |
|
|
get(UjoProperty<UJO1,UJO2> property1,
UjoProperty<UJO2,VALUE> property2)
Getter based on two properties |
|
|
getItemCount(ListUjoProperty<UJO,ITEM> property)
Returns a count of Items. |
|
|
isDefault(UjoProperty<UJO,VALUE> property)
Indicates whether a parameter value "equal to" property default value. |
|
|
list(ListUjoProperty<UJO,ITEM> property)
Returns a not null List. |
|
|
remove(ListUjoProperty<UJO,ITEM> property,
int index)
Get Value |
|
|
set(ListUjoProperty<UJO,ITEM> property,
int index,
ITEM value)
Add Value, if the List is null then the list will be created. |
|
|
set(UjoProperty<UJO1,UJO2> property1,
UjoProperty<UJO2,UJO3> property2,
UjoProperty<UJO3,VALUE> property3,
VALUE value)
Setter based on three properties. |
|
|
set(UjoProperty<UJO1,UJO2> property1,
UjoProperty<UJO2,VALUE> property2,
VALUE value)
Setter based on two properties. |
|
| Methods inherited from interface org.ujoframework.extensions.UjoMiddle |
|---|
get, getText, set, setText |
| Methods inherited from interface org.ujoframework.Ujo |
|---|
readAuthorization, readProperties, readValue, writeValue |
| Method Detail |
|---|
<UJO1 extends UJO_IMPL,UJO2 extends Ujo,VALUE> VALUE get(UjoProperty<UJO1,UJO2> property1,
UjoProperty<UJO2,VALUE> property2)
<UJO1 extends UJO_IMPL,UJO2 extends Ujo,UJO3 extends Ujo,VALUE> VALUE get(UjoProperty<UJO1,UJO2> property1,
UjoProperty<UJO2,UJO3> property2,
UjoProperty<UJO3,VALUE> property3)
<UJO1 extends UJO_IMPL,UJO2 extends Ujo,VALUE> void set(UjoProperty<UJO1,UJO2> property1,
UjoProperty<UJO2,VALUE> property2,
VALUE value)
<UJO1 extends UJO_IMPL,UJO2 extends Ujo,UJO3 extends Ujo,VALUE> void set(UjoProperty<UJO1,UJO2> property1,
UjoProperty<UJO2,UJO3> property2,
UjoProperty<UJO3,VALUE> property3,
VALUE value)
<UJO extends UJO_IMPL,ITEM> int getItemCount(ListUjoProperty<UJO,ITEM> property)
<UJO extends UJO_IMPL,ITEM> Ujo add(ListUjoProperty<UJO,ITEM> property,
ITEM value)
<UJO extends UJO_IMPL,ITEM> Ujo set(ListUjoProperty<UJO,ITEM> property,
int index,
ITEM value)
<UJO extends UJO_IMPL,ITEM> ITEM get(ListUjoProperty<UJO,ITEM> property,
int index)
<UJO extends UJO_IMPL,ITEM> ITEM remove(ListUjoProperty<UJO,ITEM> property,
int index)
<UJO extends UJO_IMPL,LIST extends java.util.List<ITEM>,ITEM> LIST list(ListUjoProperty<UJO,ITEM> property)
<UJO extends UJO_IMPL,VALUE> boolean isDefault(UjoProperty<UJO,VALUE> property)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||