org.eclipse.emf.emfstore.internal.client.model.impl.api
Class ESCompositeOperationHandleImpl

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.common.api.AbstractAPIImpl<ESCompositeOperationHandleImpl,CompositeOperationHandle>
      extended by org.eclipse.emf.emfstore.internal.client.model.impl.api.ESCompositeOperationHandleImpl
All Implemented Interfaces:
ESCompositeOperationHandle, InternalAPIDelegator<ESCompositeOperationHandleImpl,CompositeOperationHandle>

public class ESCompositeOperationHandleImpl
extends AbstractAPIImpl<ESCompositeOperationHandleImpl,CompositeOperationHandle>
implements ESCompositeOperationHandle

Implementation of ESCompositeOperationHandle.

Author:
Johannes Faltermeier

Constructor Summary
ESCompositeOperationHandleImpl(CompositeOperationHandle internal)
           
 
Method Summary
 void abort()
          Aborts the composite operation.
 void end(String name, String description, ESModelElementId modelElementId)
          Completes a composite operation.
 boolean isValid()
          Returns whether the handle is still valid.
 
Methods inherited from class org.eclipse.emf.emfstore.internal.common.api.AbstractAPIImpl
equals, hashCode, toInternalAPI
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ESCompositeOperationHandleImpl

public ESCompositeOperationHandleImpl(CompositeOperationHandle internal)
Parameters:
internal - the non-API instance
Method Detail

isValid

public boolean isValid()
Returns whether the handle is still valid.

Specified by:
isValid in interface ESCompositeOperationHandle
Returns:
false if the composite operation has completed or was aborted, true otherwise.
See Also:
ESCompositeOperationHandle.isValid()

abort

public void abort()
           throws ESInvalidCompositeOperationException
Aborts the composite operation. The state before starting the composite operation will be recovered.

Specified by:
abort in interface ESCompositeOperationHandle
Throws:
ESInvalidCompositeOperationException - if the handle is invalid
See Also:
ESCompositeOperationHandle.abort()

end

public void end(String name,
                String description,
                ESModelElementId modelElementId)
         throws ESInvalidCompositeOperationException
Completes a composite operation.

Specified by:
end in interface ESCompositeOperationHandle
Parameters:
name - the name for the operation
description - the description of the operation
modelElementId - the id of the model element that is most important for the operation
Throws:
ESInvalidCompositeOperationException - if the handle is invalid
See Also:
ESCompositeOperationHandle.end(java.lang.String, java.lang.String, org.eclipse.emf.emfstore.common.model.ESModelElementId)


Copyright © 2016. All Rights Reserved.