COSMOS ${releaseVersion} resource-modeling Project
Internal API Specification

org.eclipse.cosmos.rm.repository.internal.operations
Class OperationEvent

java.lang.Object
  extended by org.eclipse.cosmos.rm.repository.internal.operations.OperationEvent

public class OperationEvent
extends java.lang.Object

An operation event is used to notify listeners of events that interrupt the normal flow of an operation.


Field Summary
 java.lang.Object data
          The data field may/may not be set based on the specific event type
 boolean doit
          Used to interrupt the import operation
static OperationEvent opeartionEvent
          A static instance of this class that is available for clients to use.
 byte type
          Indicates the event type
static byte TYPE_MISSING_STRUCTURE
          This type of an event is used to indicate that a required structure for the import operation is missing.
static byte TYPE_OVERWRITE
          The overwrite operation event.
 
Constructor Summary
OperationEvent()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_OVERWRITE

public static final byte TYPE_OVERWRITE
The overwrite operation event. The operation is about to overwrite a file that already exists. Clients can use the 'doit' flag to indicate whether the operation should continue.

See Also:
Constant Field Values

TYPE_MISSING_STRUCTURE

public static final byte TYPE_MISSING_STRUCTURE
This type of an event is used to indicate that a required structure for the import operation is missing. The path of the structure is included as part of the data field. The data field will be of type String This event notification can be used to display a user warning.

See Also:
Constant Field Values

opeartionEvent

public static OperationEvent opeartionEvent
A static instance of this class that is available for clients to use.


type

public byte type
Indicates the event type


doit

public boolean doit
Used to interrupt the import operation


data

public java.lang.Object data
The data field may/may not be set based on the specific event type

Constructor Detail

OperationEvent

public OperationEvent()

COSMOS ${releaseVersion} resource-modeling Project
Internal API Specification