|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujoframework.extensions.PathProperty<UJO,VALUE>
public class PathProperty<UJO extends Ujo,VALUE>
A PathProperty class is an composite of a UjoProperty objects. The PathProperty class can be used wherever is used UjoProperty - with a one important exception: do not send the PathProperty object to methods Ujo.readValue(...) and Ujo.writeValue(...) !!!
You can use the preferred methods UjoManager.setValue(...) / UjoManager.getValue(...) to write and read a value instead of or use some type safe solution by UjoExt or a method of UjoProperty. Note that method isDirect() returns a false in this class. For this reason, the property is not included in the list returned by Ujo.readProperties().
| Constructor Summary | |
|---|---|
PathProperty(java.util.List<UjoProperty> properties)
|
|
PathProperty(UjoProperty... properties)
|
|
| Method Summary | ||
|---|---|---|
|
add(UjoProperty<? extends VALUE,VALUE_PAR> property)
Create new composite (indirect) instance. |
|
void |
copy(UJO from,
UJO to)
Copy a value from the first UJO object to second one. |
|
static
|
create(UjoProperty<UJO,? extends java.lang.Object>... properties)
Create new instance |
|
UjoProperty<UJO,VALUE> |
descending()
Create a new instance of the property with a descending direction of order. |
|
boolean |
equals(UJO ujo,
VALUE value)
Returns true, if the property value equals to a parameter value. |
|
void |
exportProperties(java.util.List<UjoProperty> result)
Export all |
|
VALUE |
getDefault()
Returns a default value |
|
int |
getIndex()
Returns a property index or value -1 if the property index is not defined. |
|
|
getLastProperty()
Get the last property of the current object. |
|
java.lang.String |
getName()
Full property name |
|
UjoProperty |
getProperty(int index)
Get a property from selected positon.. |
|
int |
getPropertyCount()
Returns a count of properties |
|
Ujo |
getSemifinalValue(UJO ujo)
Get a semifinal value from an Ujo object by a chain of properties. |
|
java.lang.Class<VALUE> |
getType()
Property type |
|
VALUE |
getValue(UJO ujo)
Get a value from an Ujo object by a chain of properties. |
|
char |
charAt(int index)
A char from Name |
|
boolean |
isAscending()
A flag for an ascending direction of order. |
|
boolean |
isDefault(UJO ujo)
Indicates whether a parameter value of the ujo "equal to" this default value. |
|
boolean |
isDirect()
Method returns a false because this is a property of the another UJO class. |
|
boolean |
isTypeOf(java.lang.Class type)
Returns true if the property type is a type or subtype of the parameter class. |
|
int |
length()
Length of the Name |
|
static
|
newInstance(UjoProperty<UJO1,UJO2> property1,
UjoProperty<UJO2,UJO3> property2,
UjoProperty<UJO3,UJO4> property3,
UjoProperty<UJO4,VALUE> property4)
Create new instance |
|
static
|
newInstance(UjoProperty<UJO1,UJO2> property1,
UjoProperty<UJO2,UJO3> property2,
UjoProperty<UJO3,VALUE> property3)
Create new instance |
|
static
|
newInstance(UjoProperty<UJO1,UJO2> property1,
UjoProperty<UJO2,VALUE> property2)
Create new instance |
|
static
|
newInstance(UjoProperty<UJO,VALUE> property)
Create new instance |
|
VALUE |
of(UJO ujo)
A shortcut for the 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.CharSequence |
subSequence(int start,
int end)
Sub sequence from the Name |
|
java.lang.String |
toString()
Returns the name of Property. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PathProperty(java.util.List<UjoProperty> properties)
public PathProperty(UjoProperty... properties)
| Method Detail |
|---|
public final <UJO_IMPL extends Ujo> UjoProperty<UJO_IMPL,VALUE> getLastProperty()
public final UjoProperty getProperty(int index)
public final int getPropertyCount()
public java.lang.String getName()
getName in interface UjoProperty<UJO extends Ujo,VALUE>public java.lang.Class<VALUE> getType()
getType in interface UjoProperty<UJO extends Ujo,VALUE>public Ujo getSemifinalValue(UJO ujo)
public VALUE getValue(UJO ujo)
getValue in interface UjoProperty<UJO extends Ujo,VALUE>ujo - If a NULL parameter is used then an exception NullPointerException is throwed.
Ujo.readValue(UjoProperty)
public void setValue(UJO ujo,
VALUE value)
UjoPropertyUjo.writeValue(org.ujoframework.UjoProperty, java.lang.Object)
always.
setValue in interface UjoProperty<UJO extends Ujo,VALUE>Ujo.writeValue(org.ujoframework.UjoProperty, java.lang.Object)public final int getIndex()
UjoPropertyArrayUjo class and the value is used is used
UjoManager.readProperties(Class type) .
getIndex in interface UjoProperty<UJO extends Ujo,VALUE>ArrayUjo,
UjoManager.readProperties(Class)public VALUE getDefault()
getDefault in interface UjoProperty<UJO extends Ujo,VALUE>Ujo.readValue(UjoProperty)public boolean isDefault(UJO ujo)
isDefault in interface UjoProperty<UJO extends Ujo,VALUE>
public void copy(UJO from,
UJO to)
copy in interface UjoProperty<UJO extends Ujo,VALUE>public boolean isTypeOf(java.lang.Class type)
isTypeOf in interface UjoProperty<UJO extends Ujo,VALUE>
public boolean equals(UJO ujo,
VALUE value)
equals in interface UjoProperty<UJO extends Ujo,VALUE>ujo - A basic Ujo.value - Null value is supported.
public final VALUE of(UJO ujo)
of in interface UjoProperty<UJO extends Ujo,VALUE>getValue(Ujo)public java.lang.String toString()
UjoProperty
toString in interface java.lang.CharSequencetoString in interface UjoProperty<UJO extends Ujo,VALUE>toString in class java.lang.Objectpublic int length()
length in interface java.lang.CharSequencepublic char charAt(int index)
charAt in interface java.lang.CharSequence
public java.lang.CharSequence subSequence(int start,
int end)
subSequence in interface java.lang.CharSequencepublic final boolean isDirect()
isDirect in interface UjoProperty<UJO extends Ujo,VALUE>public boolean isAscending()
isAscending in interface UjoProperty<UJO extends Ujo,VALUE>UjoComparatorpublic UjoProperty<UJO,VALUE> descending()
descending in interface UjoProperty<UJO extends Ujo,VALUE>UjoComparatorpublic void exportProperties(java.util.List<UjoProperty> result)
public <VALUE_PAR> UjoProperty<UJO,VALUE_PAR> add(UjoProperty<? extends VALUE,VALUE_PAR> property)
add in interface UjoProperty<UJO extends Ujo,VALUE>public static final <UJO extends Ujo,VALUE> PathProperty<UJO,VALUE> newInstance(UjoProperty<UJO,VALUE> property)
public static final <UJO1 extends Ujo,UJO2 extends Ujo,VALUE> PathProperty<UJO1,VALUE> newInstance(UjoProperty<UJO1,UJO2> property1,
UjoProperty<UJO2,VALUE> property2)
public static final <UJO1 extends Ujo,UJO2 extends Ujo,UJO3 extends Ujo,VALUE> PathProperty<UJO1,VALUE> newInstance(UjoProperty<UJO1,UJO2> property1,
UjoProperty<UJO2,UJO3> property2,
UjoProperty<UJO3,VALUE> property3)
public static final <UJO1 extends Ujo,UJO2 extends Ujo,UJO3 extends Ujo,UJO4 extends Ujo,VALUE> PathProperty<UJO1,VALUE> newInstance(UjoProperty<UJO1,UJO2> property1,
UjoProperty<UJO2,UJO3> property2,
UjoProperty<UJO3,UJO4> property3,
UjoProperty<UJO4,VALUE> property4)
public static final <UJO extends Ujo,VALUE> PathProperty<UJO,VALUE> create(UjoProperty<UJO,? extends java.lang.Object>... properties)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||