org.jcreme.state
Class BaseMemento

java.lang.Object
  extended byorg.jcreme.state.BaseMemento
All Implemented Interfaces:
Memento
Direct Known Subclasses:
BaseUIMemento

public abstract class BaseMemento
extends java.lang.Object
implements Memento

This class provides convenience methods for actual Memento implementations.

Version:
$Revision: 1.1 $
Author:
$Author: dbregeon $

Field Summary
static java.lang.String STORED_OBJECT_TYPE_PREFERENCE
           
static java.lang.String SUB_MEMENTO_CONTENTS_PREFERENCE
           
static java.lang.String SUB_MEMENTO_TYPE_PREFERENCE
           
 
Constructor Summary
BaseMemento()
           
 
Method Summary
protected  java.lang.Object buildObject(java.lang.String type)
           
protected  java.lang.Class getObjectType(java.util.prefs.Preferences node)
           
protected  Memento loadSubMemento(java.util.prefs.Preferences node)
           
protected  void storeSubMemento(java.util.prefs.Preferences node, Memento memento, java.lang.Class objectType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jcreme.state.Memento
load, store, updateMemento, updateObject
 

Field Detail

STORED_OBJECT_TYPE_PREFERENCE

public static final java.lang.String STORED_OBJECT_TYPE_PREFERENCE
See Also:
Constant Field Values

SUB_MEMENTO_CONTENTS_PREFERENCE

public static final java.lang.String SUB_MEMENTO_CONTENTS_PREFERENCE
See Also:
Constant Field Values

SUB_MEMENTO_TYPE_PREFERENCE

public static final java.lang.String SUB_MEMENTO_TYPE_PREFERENCE
See Also:
Constant Field Values
Constructor Detail

BaseMemento

public BaseMemento()
Method Detail

buildObject

protected java.lang.Object buildObject(java.lang.String type)
                                throws MementoException
Throws:
MementoException

storeSubMemento

protected void storeSubMemento(java.util.prefs.Preferences node,
                               Memento memento,
                               java.lang.Class objectType)
                        throws MementoException
Parameters:
node -
memento -
objectType -
Throws:
MementoException

loadSubMemento

protected Memento loadSubMemento(java.util.prefs.Preferences node)
                          throws MementoException
Parameters:
node -
Returns:
Throws:
MementoException

getObjectType

protected java.lang.Class getObjectType(java.util.prefs.Preferences node)
                                 throws MementoException
Parameters:
node -
Returns:
Throws:
MementoException


Copyright 2006 null. All Rights Reserved.