Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

com.arcle.rmt.superwaba.model.imp.rqml.ContextImpl.Memento Class Reference

Inheritance diagram for com.arcle.rmt.superwaba.model.imp.rqml.ContextImpl.Memento:

com.arcle.rmt.superwaba.model.imp.rqml.RQMLFirstClassImpl.Memento com.arcle.rmt.superwaba.model.imp.rqml.RQMLSecondClassImpl.Memento com.arcle.rmt.superwaba.model.imp.GenericMemento List of all members.

Public Member Functions

 Memento (ContextImpl originator)
Storable getInstance ()
 Factory method that creates new instances of the memento class.

byte getID ()
 Retuns a unique ID for this class.

void saveState (DataStream data)
 Send the state information of this object to the given object catalog using the given DataStream.

void loadState (DataStream data)
 Load state information from the given DataStream into this object If any Storable objects need to be loaded as part of the state, their loadState() method can be called too.


Constructor & Destructor Documentation

com.arcle.rmt.superwaba.model.imp.rqml.ContextImpl.Memento.Memento ContextImpl  originator  ) 
 

Definition at line 126 of file superwaba/model/imp/rqml/ContextImpl.java.


Member Function Documentation

byte com.arcle.rmt.superwaba.model.imp.rqml.ContextImpl.Memento.getID  )  [virtual]
 

Retuns a unique ID for this class.

It is up to the user to ensure that the ID of each class of Storable contained in a single ObjectCatalog is unique and the ID of each instance in a class is the same. If the ID returned is zero, no type information will be saved to the catalog and ObjectCatalog.loadObjectAt(int) cannot be used. It is useful, however when accessing Catalogs from other programs using the ObjectCatalog model.

Implements com.arcle.rmt.superwaba.model.imp.rqml.RQMLFirstClassImpl.Memento.

Definition at line 136 of file superwaba/model/imp/rqml/ContextImpl.java.

Storable com.arcle.rmt.superwaba.model.imp.rqml.ContextImpl.Memento.getInstance  )  [virtual]
 

Factory method that creates new instances of the memento class.

The newly created instance will be used as a base for object data loaded from the catalog.

Returns:
a new instance.

Implements com.arcle.rmt.superwaba.model.imp.rqml.RQMLSecondClassImpl.Memento.

Definition at line 130 of file superwaba/model/imp/rqml/ContextImpl.java.

void com.arcle.rmt.superwaba.model.imp.rqml.ContextImpl.Memento.loadState DataStream  data  )  [virtual]
 

Load state information from the given DataStream into this object If any Storable objects need to be loaded as part of the state, their loadState() method can be called too.

Reimplemented from com.arcle.rmt.superwaba.model.imp.rqml.RQMLFirstClassImpl.Memento.

Definition at line 148 of file superwaba/model/imp/rqml/ContextImpl.java.

References com.arcle.rmt.superwaba.model.imp.rqml.ContextImpl.createOriginImpl(), com.arcle.rmt.superwaba.model.imp.GenericMemento.getOriginator(), com.arcle.rmt.superwaba.model.imp.GenericMemento.loadMementoable(), and com.arcle.rmt.superwaba.model.imp.rqml.ContextImpl.origin.

void com.arcle.rmt.superwaba.model.imp.rqml.ContextImpl.Memento.saveState DataStream  data  )  [virtual]
 

Send the state information of this object to the given object catalog using the given DataStream.

If any Storable objects need to be saved as part of the state, their saveState() method can be called too.

Reimplemented from com.arcle.rmt.superwaba.model.imp.rqml.RQMLFirstClassImpl.Memento.

Definition at line 140 of file superwaba/model/imp/rqml/ContextImpl.java.

References com.arcle.rmt.superwaba.model.imp.GenericMemento.getOriginator(), com.arcle.rmt.superwaba.model.imp.rqml.ContextImpl.origin, com.arcle.rmt.superwaba.model.imp.GenericMemento.saveMementoable(), and com.arcle.rmt.superwaba.model.imp.rqml.ContextImpl.textualData.


The documentation for this class was generated from the following file:
Generated on Fri Jun 18 19:55:08 2004 for Arcle Rambutan by doxygen 1.3.5