OMBRESTORE SNAPSHOT

Purpose

A snapshot is a history point of individual or group of components. The user can recover the components' previously captured states by using the snapshot restore functionality.

Prerequisites

A component can be restored from a snapshot into the current workspace.

Syntax

parseRestoreCommand =  OMBRESTORE "restoreSnapshotCommand"
     restoreSnapshotCommand =  ( SNAPSHOT "QUOTED_STRING" [ CASCADE UP ] [ 
          IGNORE CLASS_DEFINITION ( DIFFERENCES | DIFF ) ] [ FOR ( 
          "UNQUOTED_STRING" "QUOTED_STRING" ) ] )

Parameters

parseRestoreCommand

Root production for OMBRESTORE SNAPSHOT.

restoreSnapshotCommand

To restore snapshot components into the workspace.

QUOTED_STRING

Name of the snapshot from which components are to be restored.

CASCADE

CASCADE UP - Optional clause for letting the user restore a component even if its parent does not exist in the current workspace.

CLASS_DEFINITION

IGNORE CLASS_DEFINITION DIFF - Optional clause for letting the user restore a snapshot whether or not the meta-model of the snapshot is different from that of the current workspace.

FOR

Optional component clause for partial restore. This can be used to specify which components of a snapshot are to be restored.