|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujoframework.extensions.AbstractUjo
public abstract class AbstractUjo
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 | |
|---|---|
AbstractUjo()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone(int depth,
java.lang.Object context)
Object is Cloneable Note: There are supported attributes null value Ujo UjoCloneable List array of privitive values |
boolean |
equals(java.lang.Object obj)
Is the object equals to a parameter Ujo? |
protected static UjoPropertyList |
init(java.lang.Class ujoClass)
Initializa all properties. |
protected static UjoPropertyList |
init(java.lang.Class ujoClass,
boolean checkUniqueProperties)
Initializa all properties. |
boolean |
readAuthorization(UjoAction action,
UjoProperty property,
java.lang.Object value)
Get an authorization of the property for different actions. |
UjoPropertyList |
readProperties()
Returns all direct properties. |
protected UjoManager |
readUjoManager()
Returns an UjoManager |
java.lang.String |
readValueString(UjoProperty property,
UjoAction action)
Get an original value in a String format. |
java.lang.String |
toString()
A String representation. |
void |
writeValueString(UjoProperty property,
java.lang.String value,
java.lang.Class type,
UjoAction action)
Set value from a String format. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.ujoframework.Ujo |
|---|
readValue, writeValue |
| Constructor Detail |
|---|
public AbstractUjo()
| Method Detail |
|---|
protected static final UjoPropertyList init(java.lang.Class ujoClass)
throws java.lang.IllegalStateException
ujoClass - Ujo class
java.lang.IllegalStateException
protected static final UjoPropertyList init(java.lang.Class ujoClass,
boolean checkUniqueProperties)
throws java.lang.IllegalStateException
ujoClass - Ujo classcheckUniqueProperties - Check unique properties
java.lang.IllegalStateExceptionprotected UjoManager readUjoManager()
public UjoPropertyList readProperties()
readProperties in interface UjoUjoProperty.isDirect()
public boolean readAuthorization(UjoAction action,
UjoProperty property,
java.lang.Object value)
readAuthorization in interface Ujoaction - 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 Constantspublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
public java.lang.Object clone(int depth,
java.lang.Object context)
clone in interface UjoCloneabledepth - Depth of clone.context - A context of the action.
public java.lang.String readValueString(UjoProperty property,
UjoAction action)
readValueString in interface UjoTextableproperty - A direct property only. See a method UjoProperty.isDirect().action - A context of the action.
The action must not be null, however there is allowed to use a dummy constant UjoAction.DUMMY .
public void writeValueString(UjoProperty property,
java.lang.String value,
java.lang.Class type,
UjoAction action)
writeValueString in interface UjoTextableproperty - A direct property only. See a method UjoProperty.isDirect().value - String valuetype - Type can be a subtype of a Property.type. If type is null, then a property.type is used.action - A context of the action.
The action must not be null, however there is allowed to use a dummy constant UjoAction.DUMMY .
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||