org.eclipse.ocl.examples.domain.utilities
Class StandaloneProjectMap.MapToFirstConflictHandlerWithLog

java.lang.Object
  extended by org.eclipse.ocl.examples.domain.utilities.StandaloneProjectMap.MapToFirstConflictHandlerWithLog
All Implemented Interfaces:
StandaloneProjectMap.IConflictHandler
Enclosing class:
StandaloneProjectMap

public static class StandaloneProjectMap.MapToFirstConflictHandlerWithLog
extends java.lang.Object
implements StandaloneProjectMap.IConflictHandler

MapToFirstConflictHandler resolves conflicts by returning the first loaded EPackage.


Field Summary
static StandaloneProjectMap.IConflictHandler INSTANCE
           
 
Constructor Summary
StandaloneProjectMap.MapToFirstConflictHandlerWithLog()
           
 
Method Summary
 org.eclipse.emf.ecore.EPackage handleConflictingDynamicResource(StandaloneProjectMap.IResourceLoadStatus resourceLoadStatus, org.eclipse.emf.ecore.EPackage ePackage)
          Return the EPackage to be used for a model URI reference after the namespace EPackage has already been used.
 org.eclipse.emf.ecore.EPackage handleConflictingGeneratedPackage(StandaloneProjectMap.IPackageLoadStatus packageLoadStatus, org.eclipse.emf.ecore.resource.Resource resource)
          Return the EPackage to be used for a namespace URI reference after the model EPackage has already been used.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

@NonNull
public static final StandaloneProjectMap.IConflictHandler INSTANCE
Constructor Detail

StandaloneProjectMap.MapToFirstConflictHandlerWithLog

public StandaloneProjectMap.MapToFirstConflictHandlerWithLog()
Method Detail

handleConflictingGeneratedPackage

@Nullable
public org.eclipse.emf.ecore.EPackage handleConflictingGeneratedPackage(@NonNull
                                                                                 StandaloneProjectMap.IPackageLoadStatus packageLoadStatus,
                                                                                 @NonNull
                                                                                 org.eclipse.emf.ecore.resource.Resource resource)
Description copied from interface: StandaloneProjectMap.IConflictHandler
Return the EPackage to be used for a namespace URI reference after the model EPackage has already been used.

Specified by:
handleConflictingGeneratedPackage in interface StandaloneProjectMap.IConflictHandler

handleConflictingDynamicResource

@Nullable
public org.eclipse.emf.ecore.EPackage handleConflictingDynamicResource(@NonNull
                                                                                StandaloneProjectMap.IResourceLoadStatus resourceLoadStatus,
                                                                                @NonNull
                                                                                org.eclipse.emf.ecore.EPackage ePackage)
Description copied from interface: StandaloneProjectMap.IConflictHandler
Return the EPackage to be used for a model URI reference after the namespace EPackage has already been used.

Specified by:
handleConflictingDynamicResource in interface StandaloneProjectMap.IConflictHandler