Package jetbrains.mps.persistence
Class MementoImpl
- java.lang.Object
 - 
- jetbrains.mps.persistence.MementoImpl
 
 
- 
- 
Constructor Summary
Constructors Constructor Description MementoImpl() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mementocopy()Returns a deep copy of the current memento and its childrenMementocreateChild(String type)Creates and registers a new child memento.booleanequals(Object obj)Stringget(String key)MementogetChild(String type)Iterable<Memento>getChildren()Retrieves a point-time read-only copy of all the children mementos.Iterable<Memento>getChildren(String type)Retrieves a point-time read-only copy of all the children mementos of the specified type.Iterable<String>getKeys()Retrieves a read-only collection of registered property keys.StringgetText()StringgetType()Returns the value of type for the memento.inthashCode()voidput(String key, String value)voidsetText(String text) 
 - 
 
- 
- 
Method Detail
- 
getType
public String getType()
Description copied from interface:MementoReturns the value of type for the memento. The value of null is returned if no type has been set. 
- 
getKeys
public Iterable<String> getKeys()
Description copied from interface:MementoRetrieves a read-only collection of registered property keys. Since the collection is backed by the original collection, new properties must not be added while iterating. 
- 
getChildren
public Iterable<Memento> getChildren(String type)
Description copied from interface:MementoRetrieves a point-time read-only copy of all the children mementos of the specified type. Subsequent modifications to the original list of children of the current memento will not have any impact on the returned collection.- Specified by:
 getChildrenin interfaceMemento
 
- 
getChildren
public Iterable<Memento> getChildren()
Description copied from interface:MementoRetrieves a point-time read-only copy of all the children mementos. Subsequent modifications to the original list of children of the current memento will not have any impact on the returned collection.- Specified by:
 getChildrenin interfaceMemento
 
- 
createChild
public Memento createChild(String type)
Description copied from interface:MementoCreates and registers a new child memento.- Specified by:
 createChildin interfaceMemento
 
- 
copy
public Memento copy()
Description copied from interface:MementoReturns a deep copy of the current memento and its children 
 - 
 
 -