Class ChangeVersionCommand

  • All Implemented Interfaces:
    ICommand

    public class ChangeVersionCommand
    extends AbstractCommand
    A command used to modify the version of a document.
    Author:
    eric.wittmann@gmail.com
    • Field Detail

      • _newVersion

        public String _newVersion
      • _oldVersion

        public String _oldVersion
      • _nullInfo

        public boolean _nullInfo
    • Constructor Detail

      • ChangeVersionCommand

        public ChangeVersionCommand()
        Constructor.
      • ChangeVersionCommand

        public ChangeVersionCommand​(String newVersion)
        Constructor.
        Parameters:
        newVersion -
    • Method Detail

      • execute

        public void execute​(Document document)
        Description copied from interface: ICommand
        Called to execute the command against the given document.
      • undo

        public void undo​(Document document)
        Description copied from interface: ICommand
        Called to undo the command (restore the document to a previous state).