Class TextAccumulatorVisitorMemento

    • Constructor Detail

      • TextAccumulatorVisitorMemento

        public TextAccumulatorVisitorMemento​(Fragment<?> fragment,
                                             Visitor visitor)
    • Method Detail

      • restore

        public void restore​(Memento memento)
        Description copied from interface: Memento
        Combines a Memento state with this Memento
        Specified by:
        restore in interface Memento
        Overrides:
        restore in class TextAccumulatorMemento
        Parameters:
        memento - the Memento restoring this Memento
      • getAnchor

        public String getAnchor()
        Description copied from interface: Memento
        Gets the anchor value of this Memento. Mementos with equal anchor values are considered to be capturing the state of the same object but at different points in time.
        Specified by:
        getAnchor in interface Memento
        Overrides:
        getAnchor in class TextAccumulatorMemento
        Returns:
        the ID of this Memento