Package org.smooks.api.memento
Interface Memento
- 
- All Known Implementing Classes:
 AbstractVisitorMemento,ConsumeSerializerVisitor.ElementMemento,SimpleVisitorMemento,TextAccumulatorMemento,TextAccumulatorVisitorMemento,VisitorMemento
public interface MementoHolds the state of aVisitor.A
Mementois saved and restored it at a later stage. AMementois bound to aVisitor> and its fragment (e.g.,Fragment). Management ofMementos should be delegated toMementoCaretaker. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Mementocopy()Performs a deep clone of thisMemento.StringgetAnchor()Gets the anchor value of thisMemento.Fragment<?>getFragment()voidrestore(Memento memento)Combines aMementostate with thisMemento 
 - 
 
- 
- 
Method Detail
- 
copy
Memento copy()
Performs a deep clone of thisMemento.- Returns:
 - a deep clone of this 
Memento 
 
- 
restore
void restore(Memento memento)
Combines aMementostate with thisMemento- Parameters:
 memento- theMementorestoring thisMemento
 
- 
getFragment
Fragment<?> getFragment()
- Returns:
 - the fragment which this 
Mementois bound to 
 
- 
getAnchor
String getAnchor()
Gets the anchor value of thisMemento.Mementos with equal anchor values are considered to be capturing the state of the same object but at different points in time.- Returns:
 - the ID of this 
Memento 
 
 - 
 
 -