Class MementoWithFS

  • All Implemented Interfaces:
    Memento

    @Deprecated
    public final class MementoWithFS
    extends Object
    implements Memento
    Deprecated.
    model root factory will pass module to the constructor of any model root
    Memento implementation which also contains FileSystem context. It obviously delegates to the memento it receives on construction. Created by apyshkin on 22/06/16.
    See Also:
    ModelRoot
    • Method Detail

      • getType

        public String getType()
        Deprecated.
        Description copied from interface: Memento
        Returns the value of type for the memento. The value of null is returned if no type has been set.
        Specified by:
        getType in interface Memento
      • put

        public void put​(String key,
                        String value)
        Deprecated.
        Specified by:
        put in interface Memento
        Parameters:
        key - null doesn't make sense
        value - null value effectively removes the key
      • getKeys

        public Iterable<String> getKeys()
        Deprecated.
        Description copied from interface: Memento
        Retrieves 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.
        Specified by:
        getKeys in interface Memento
      • setText

        public void setText​(String text)
        Deprecated.
        Specified by:
        setText in interface Memento
      • getChildren

        public Iterable<Memento> getChildren​(String type)
        Deprecated.
        Description copied from interface: Memento
        Retrieves 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:
        getChildren in interface Memento
      • getChildren

        public Iterable<Memento> getChildren()
        Deprecated.
        Description copied from interface: Memento
        Retrieves 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:
        getChildren in interface Memento
      • createChild

        public Memento createChild​(String type)
        Deprecated.
        Description copied from interface: Memento
        Creates and registers a new child memento.
        Specified by:
        createChild in interface Memento
      • copy

        public Memento copy()
        Deprecated.
        Description copied from interface: Memento
        Returns a deep copy of the current memento and its children
        Specified by:
        copy in interface Memento