Class XmlMemento

java.lang.Object
org.faktorips.util.memento.XmlMemento
All Implemented Interfaces:
Memento

public class XmlMemento extends Object implements Memento
A memento that stores the originator's state as XML element.
  • Constructor Details

    • XmlMemento

      public XmlMemento(Object originator, Element state)
      Creates a new memento.
      Parameters:
      originator - the object this is a memento for.
      state - the originator's state as XML element.
  • Method Details

    • getOriginator

      public Object getOriginator()
      Description copied from interface: Memento
      Returns the object this is a memento of.
      Specified by:
      getOriginator in interface Memento
    • getState

      public Element getState()
      Returns the originator's state stored in the memento.