Packagecom.bourre.pattern.memento
Interfacepublic interface IOriginator

Player version: Flash Player 9.0
Language version: ActionScript 3.0

IOriginator is an interface used to save and set the state of an object.

Implements this interface to define specific originator for specific object.



Public Methods
 MethodDefined by
  
Create a new Memento
IOriginator
  
Set the memento
IOriginator
Method detail
createMemento()method
public function createMemento():IMemento

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Create a new Memento

Returns
IMemento — The new memento created.
setMemento()method 
public function setMemento(m:IMemento):void

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Set the memento

Parameters
m:IMemento — memento to set.