org.ujoframework.extensions
Interface UjoTextable

All Superinterfaces:
Ujo
All Known Implementing Classes:
AbstractMetaModel, AbstractUjo, AbstractUjoExt, ArrayUjo, ArrayUjoExt, BeanUjo, BeanUjoExt, DbProcedure, FactoryUjo, FactoryUjoExt, FieldUjo, FieldUjoExt, MapImplUjo, MapImplUjoMiddle, MapUjo, MapUjoExt, MetaColumn, MetaDatabase, MetaIndex, MetaParams, MetaPKey, MetaProcedure, MetaRelation2Many, MetaRoot, MetaSelect, MetaTable, OrmTable, QuickUjo, QuickUjoMid, RegistrarUjo, RegistrarUjoExt, UjoPropertyRow

public interface UjoTextable
extends Ujo

The interface is reasonable for a text serialization and deserializaton of non UJO properties of a UJO object.
If you can use an UJO persistence (XML, CSV, ResourceBundle) then the all affected UJO classes must have got next features:

Author:
Pavel Ponec
See Also:
See ValueTextable for suppored data types.

Method Summary
 java.lang.String readValueString(UjoProperty property, UjoAction action)
          Get an original value in a String format.
 void writeValueString(UjoProperty property, java.lang.String value, java.lang.Class type, UjoAction action)
          Set value from a String format.
 
Methods inherited from interface org.ujoframework.Ujo
readAuthorization, readProperties, readValue, writeValue
 

Method Detail

writeValueString

void writeValueString(UjoProperty property,
                      java.lang.String value,
                      java.lang.Class type,
                      UjoAction action)
Set value from a String format. Property can't be an "container" type (Ujo, List, Object[]).

Parameters:
property - A direct property only. See a method UjoProperty.isDirect().
value - String value
type - 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 .

readValueString

java.lang.String readValueString(UjoProperty property,
                                 UjoAction action)
Get an original value in a String format. If property type is a "container" type (Ujo, List, Object[]), method returns null, otherwise method returns an instance of String.

Parameters:
property - 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 .
Returns:
If property type is "container" result is null.


Copyright © 2010. All Rights Reserved.