|
UJO Framework release 0.82 |
|||||||||
| 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 MapUjoExt { public static final MapProperty<Person, String > NAME = newProperty("Name", String.class); public static final MapProperty<Person, Double > CASH = newProperty("Cash", Double.class); public static final MapProperty<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(UjoPropertyList<UJO,LIST,ITEM> property,
ITEM value)
Add Value, if the List is null then the list will be created. |
|
|
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 |
|
|
get(UjoProperty<UJO,VALUE> property)
Getter based on one UjoProperty |
|
|
get(UjoPropertyList<UJO,LIST,ITEM> property,
int index)
Get Value Inside is called a method UjoPropertyList.getItem(...) . |
|
|
getItemCount(UjoPropertyList<UJO,LIST,ITEM> property)
Returns a count of Items. |
|
java.lang.String |
getText(UjoProperty property)
Returns a String value by a NULL context. |
|
|
list(UjoPropertyList<UJO,LIST,ITEM> property)
Returns a not null List. |
|
|
remove(UjoPropertyList<UJO,LIST,ITEM> property,
int index)
Get Value |
|
|
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. |
|
|
set(UjoProperty<UJO,VALUE> property,
VALUE value)
Setter based on UjoProperty. |
|
|
set(UjoPropertyList<UJO,LIST,ITEM> property,
int index,
ITEM value)
Add Value, if the List is null then the list will be created. |
|
void |
setText(UjoProperty property,
java.lang.String value)
Set value from a String format by a NULL context. |
|
| Methods inherited from interface org.ujoframework.Ujo |
|---|
readAuthorization, readProperties, readValue, writeValue |
| Method Detail |
|---|
<UJO extends UJO_IMPL,VALUE> VALUE get(UjoProperty<UJO,VALUE> property)
<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)
<UJO extends UJO_IMPL,VALUE> Ujo set(UjoProperty<UJO,VALUE> property,
VALUE value)
<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,LIST extends java.util.List<ITEM>,ITEM> int getItemCount(UjoPropertyList<UJO,LIST,ITEM> property)
<UJO extends UJO_IMPL,LIST extends java.util.List<ITEM>,ITEM> Ujo add(UjoPropertyList<UJO,LIST,ITEM> property,
ITEM value)
<UJO extends UJO_IMPL,LIST extends java.util.List<ITEM>,ITEM> Ujo set(UjoPropertyList<UJO,LIST,ITEM> property,
int index,
ITEM value)
<UJO extends UJO_IMPL,LIST extends java.util.List<ITEM>,ITEM> ITEM get(UjoPropertyList<UJO,LIST,ITEM> property,
int index)
<UJO extends UJO_IMPL,LIST extends java.util.List<ITEM>,ITEM> ITEM remove(UjoPropertyList<UJO,LIST,ITEM> property,
int index)
<UJO extends UJO_IMPL,LIST extends java.util.List<ITEM>,ITEM> LIST list(UjoPropertyList<UJO,LIST,ITEM> property)
java.lang.String getText(UjoProperty property)
property - A Property
void setText(UjoProperty property,
java.lang.String value)
property - Propertyvalue - String value
|
UJO Framework release 0.82 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||