org.strutsme.common.serialization
Class SerializationBase

java.lang.Object
  extended by org.strutsme.common.serialization.SerializationBase
Direct Known Subclasses:
BaseDtoImpl

public abstract class SerializationBase
extends java.lang.Object

SerializationBase is the base class for all serializable classes. All classes which want to be serialized in the J2ME environment needs to extend SerializationBase and to implement the methods.

Version:
$Date$
Author:
lbusmann

Constructor Summary
protected SerializationBase()
          Default constructor.
 
Method Summary
abstract  void copyValuesToBean(SafeHashtable map)
          Update all properties of this bean from the given map.
abstract  void copyValuesToMap(SafeHashtable map)
          Copy all properties from this bean into the given map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializationBase

protected SerializationBase()
Default constructor.

Method Detail

copyValuesToMap

public abstract void copyValuesToMap(SafeHashtable map)
                              throws SerializationException
Copy all properties from this bean into the given map. Also it has to set the version under the Constants.VERSION key.

Parameters:
map - the target SafeHashtable to be filled
Throws:
SerializationException - in the case of a wrong serialization version

copyValuesToBean

public abstract void copyValuesToBean(SafeHashtable map)
                               throws SerializationException
Update all properties of this bean from the given map.

Parameters:
map - the SafeHashtable with the values of the properties
Throws:
SerializationException - in the case of a wrong serialization version