|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujoframework.extensions.AbstractUjo
org.ujoframework.implementation.quick.QuickUjo
org.ujoframework.orm.AbstractMetaModel
public abstract class AbstractMetaModel
Abstract Metamodel
| Constructor Summary | |
|---|---|
AbstractMetaModel()
|
|
| Method Summary | ||
|---|---|---|
|
get(UjoProperty<UJO,VALUE> property)
Getter based on one UjoProperty |
|
protected
|
changeDefault(UJO ujo,
UjoProperty<UJO,VALUE> property,
VALUE value)
Assign a 'valid value' over a default UJO property value only |
|
boolean |
checkReadOnly(boolean exception)
Test a read-only state |
|
protected boolean |
isUsable(java.lang.CharSequence text)
Returns true, if the argument text is not null and not empty. |
|
protected boolean |
isUsable(java.lang.Object value)
Returns true, if the argument text is not null and not empty. |
|
boolean |
readAuthorization(UjoAction action,
UjoProperty property,
java.lang.Object value)
Get an authorization of the property for different actions. |
|
boolean |
readOnly()
Property values can be readed only |
|
void |
setReadOnly(boolean recurse)
Set a read-only state. |
|
void |
writeValue(UjoProperty property,
java.lang.Object value)
It is a common method for writing all object values, however there is strongly recomended to use a method Property.setValue(org.ujoframework.Ujo, java.lang.Object)
to an external access for a better type safe. |
|
| Methods inherited from class org.ujoframework.implementation.quick.QuickUjo |
|---|
newListProperty, newListProperty, newProperty, newProperty, newProperty, newProperty, newProperty, newProperty, readValue |
| Methods inherited from class org.ujoframework.extensions.AbstractUjo |
|---|
clone, equals, init, init, readProperties, readUjoManager, readValueString, toString, writeValueString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractMetaModel()
| Method Detail |
|---|
public boolean readOnly()
public void setReadOnly(boolean recurse)
public boolean checkReadOnly(boolean exception)
throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
public void writeValue(UjoProperty property,
java.lang.Object value)
QuickUjoProperty.setValue(org.ujoframework.Ujo, java.lang.Object)
to an external access for a better type safe.
The method have got a strategy place for an implementation of several listeners and validators.
writeValue in interface UjowriteValue in class QuickUjoproperty - Property must be a direct type only!Property.setValue(Ujo,Object)
protected <UJO extends Ujo,VALUE> void changeDefault(UJO ujo,
UjoProperty<UJO,VALUE> property,
VALUE value)
public boolean readAuthorization(UjoAction action,
UjoProperty property,
java.lang.Object value)
AbstractUjo
readAuthorization in interface UjoreadAuthorization in class AbstractUjoaction - Type of request. See constant(s) ACTION_* for more information.
The action must not be null, however there is allowed to use a dummy constant UjoAction.DUMMY .property - A property of the Ujovalue - A value
Action Constantsprotected boolean isUsable(java.lang.CharSequence text)
protected boolean isUsable(java.lang.Object value)
public <UJO extends AbstractMetaModel,VALUE> VALUE get(UjoProperty<UJO,VALUE> property)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||