|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UjoProperty<UJO extends Ujo,VALUE>
Ujo property is a property of Ujo object. Every real Ujo implementation (ArrayUjo, MapUjo, BeanUjo)
have got its special implementation of an UjoProperty interface.
See a general information about current framework or see some implementations.
Ujo| Method Summary | |
|---|---|
UjoProperty<UJO,VALUE> |
descending()
Create new instance of an indirect property with the descending direction of sorting. |
boolean |
equals(UJO ujo,
VALUE value)
Returns true, if the property value equals to a parameter value. |
VALUE |
getDefault()
Method returns a default value for substitution of the null value for the current property. |
int |
getIndex()
Returns a property index or value -1 if the property index is not defined. |
java.lang.String |
getName()
Returns a name of Property. |
java.lang.Class<VALUE> |
getType()
Returns a class of the current property. |
VALUE |
getValue(UJO ujo)
It is a basic method for getting an appropriate type safe value from an Ujo object. |
boolean |
isAscending()
A flag for an ascending direction of sorting. |
boolean |
isDefault(UJO ujo)
Indicates whether a parameter value of the ujo "equal to" this property default value. |
boolean |
isDirect()
If the property is the direct property of the related UJO class then method returns the TRUE value. |
boolean |
isTypeOf(java.lang.Class type)
Returns true if the property type is a type or subtype of the parameter class. |
VALUE |
of(UJO ujo)
An alias for a method getValue(Ujo) . |
void |
setValue(UJO ujo,
VALUE value)
It is a basic method for setting an appropriate type safe value to an Ujo object. |
java.lang.String |
toString()
Returns the name of Property. |
| Methods inherited from interface java.lang.CharSequence |
|---|
charAt, length, subSequence |
| Method Detail |
|---|
java.lang.String getName()
java.lang.Class<VALUE> getType()
void setValue(UJO ujo,
VALUE value)
Ujo.writeValue(UjoProperty,Object)VALUE getValue(UJO ujo)
ujo - If a NULL parameter is used then an exception NullPointerException is throwed.
Ujo.readValue(UjoProperty)VALUE of(UJO ujo)
getValue(Ujo)int getIndex()
ArrayUjo class and the value is used is used
UjoManager.readProperties(Class type) .
ArrayUjo,
UjoManager.readProperties(Class)VALUE getDefault()
null value for the current property.
The feature is purposeful only if the default value is not null and a propert value is null .
Ujo.readValue(UjoProperty)boolean isDefault(UJO ujo)
boolean equals(UJO ujo,
VALUE value)
ujo - A basic Ujo.value - Null value is supported.
boolean isDirect()
boolean isTypeOf(java.lang.Class type)
boolean isAscending()
UjoComparatorUjoProperty<UJO,VALUE> descending()
isAscending(),
UjoComparatorjava.lang.String toString()
toString in interface java.lang.CharSequencetoString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||