|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujoframework.extensions.AbstractUjo
org.ujoframework.extensions.AbstractUjoExt<UJO_IMPL>
public abstract class AbstractUjoExt<UJO_IMPL extends UjoExt>
This is a simple abstract implementation of Ujo.
For implementation define only a "public static final UjoProperty" constants in a child class.
The code syntax is Java 1.5 complied.
Features: very simple implementaton and a sufficient performance for common tasks. The architecture is useful for a rare assignment of values in object too.
| Constructor Summary | |
|---|---|
AbstractUjoExt()
|
|
| Method Summary | ||
|---|---|---|
|
add(ListUjoProperty<UJO,ITEM> property,
ITEM value)
Add Value, if the List is null then the list will be created. |
|
UJO_IMPL |
clone(int depth,
java.lang.Object context)
Clone the UjoCloneable object. |
|
void |
copyTo(Ujo target,
java.lang.Object context)
Copy all attributes to the target |
|
void |
copyTo(Ujo target,
UjoProperty... properties)
Copy selected attributes to the target |
|
java.util.List<UjoPropertyRow> |
createPropertyList()
Create a list of UjoProperty. |
|
|
equals(UjoProperty<UJO,VALUE> property,
VALUE value)
Compare the property value with a parametrer value. |
|
UjoProperty |
findProperty(java.lang.String propertyName)
Find a property by a "property name". |
|
|
get(ListUjoProperty<UJO,ITEM> property,
int index)
Get Value Inside is called a method ListUjoPropertyCommon.getItem(...) internally. |
|
|
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 |
|
|
getItemCount(ListUjoProperty<UJO,ITEM> property)
Returns a count of Items. |
|
java.lang.String |
getText(UjoProperty property)
Returns a String value by a NULL context. |
|
|
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)
Remove an item from the List by an index. |
|
|
remove(ListUjoProperty<UJO,ITEM> property,
ITEM item)
Removes the first occurrence in this list of the specified element. |
|
|
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. |
|
|
set(UjoProperty<UJO,VALUE> property,
VALUE value)
Setter based on UjoProperty. |
|
void |
setText(UjoProperty property,
java.lang.String value)
Set value from a String format by a NULL context. |
|
| Methods inherited from class org.ujoframework.extensions.AbstractUjo |
|---|
equals, init, init, readAuthorization, readProperties, readUjoManager, readValueString, toString, writeValueString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.ujoframework.Ujo |
|---|
readAuthorization, readProperties, readValue, writeValue |
| Constructor Detail |
|---|
public AbstractUjoExt()
| Method Detail |
|---|
public <UJO extends UJO_IMPL,VALUE> VALUE get(UjoProperty<UJO,VALUE> property)
get in interface UjoMiddle<UJO_IMPL extends UjoExt>
public <UJO1 extends UJO_IMPL,UJO2 extends Ujo,VALUE> VALUE get(UjoProperty<UJO1,UJO2> property1,
UjoProperty<UJO2,VALUE> property2)
get in interface UjoExt<UJO_IMPL extends UjoExt>
public <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)
get in interface UjoExt<UJO_IMPL extends UjoExt>
public <UJO extends UJO_IMPL,VALUE> UJO_IMPL set(UjoProperty<UJO,VALUE> property,
VALUE value)
set in interface UjoMiddle<UJO_IMPL extends UjoExt>
public <UJO1 extends UJO_IMPL,UJO2 extends Ujo,VALUE> void set(UjoProperty<UJO1,UJO2> property1,
UjoProperty<UJO2,VALUE> property2,
VALUE value)
set in interface UjoExt<UJO_IMPL extends UjoExt>
public <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)
set in interface UjoExt<UJO_IMPL extends UjoExt>public <UJO extends UJO_IMPL,ITEM> int getItemCount(ListUjoProperty<UJO,ITEM> property)
getItemCount in interface UjoExt<UJO_IMPL extends UjoExt>
public <UJO extends UJO_IMPL,ITEM> UJO_IMPL add(ListUjoProperty<UJO,ITEM> property,
ITEM value)
add in interface UjoExt<UJO_IMPL extends UjoExt>
public <UJO extends UJO_IMPL,ITEM> UJO_IMPL set(ListUjoProperty<UJO,ITEM> property,
int index,
ITEM value)
set in interface UjoExt<UJO_IMPL extends UjoExt>
public <UJO extends UJO_IMPL,ITEM> ITEM get(ListUjoProperty<UJO,ITEM> property,
int index)
get in interface UjoExt<UJO_IMPL extends UjoExt>
public <UJO extends UJO_IMPL,ITEM> ITEM remove(ListUjoProperty<UJO,ITEM> property,
int index)
remove in interface UjoExt<UJO_IMPL extends UjoExt>property - index -
public <UJO extends UJO_IMPL,ITEM> boolean remove(ListUjoProperty<UJO,ITEM> property,
ITEM item)
property - ListUjoPropertyCommonitem - Item to remove
public <UJO extends UJO_IMPL,LIST extends java.util.List<ITEM>,ITEM> LIST list(ListUjoProperty<UJO,ITEM> property)
list in interface UjoExt<UJO_IMPL extends UjoExt>public <UJO extends UJO_IMPL,VALUE> boolean isDefault(UjoProperty<UJO,VALUE> property)
isDefault in interface UjoExt<UJO_IMPL extends UjoExt>public java.lang.String getText(UjoProperty property)
getText in interface UjoMiddle<UJO_IMPL extends UjoExt>property - A Property
public void setText(UjoProperty property,
java.lang.String value)
setText in interface UjoMiddle<UJO_IMPL extends UjoExt>property - Propertyvalue - String value
public <UJO extends UJO_IMPL,VALUE> boolean equals(UjoProperty<UJO,VALUE> property,
VALUE value)
public UjoProperty findProperty(java.lang.String propertyName)
throws java.lang.IllegalArgumentException
propertyName - The name of property
java.lang.IllegalArgumentException - If property not found.public java.util.List<UjoPropertyRow> createPropertyList()
public UJO_IMPL clone(int depth,
java.lang.Object context)
clone in interface UjoCloneableclone in class AbstractUjodepth - Depth of clone.context - A context of the action.
public void copyTo(Ujo target,
java.lang.Object context)
public void copyTo(Ujo target,
UjoProperty... properties)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||