org.eclipse.ocl.examples.domain.utilities
Class StandaloneProjectMap.MapToFirstConflictHandler
java.lang.Object
org.eclipse.ocl.examples.domain.utilities.StandaloneProjectMap.MapToFirstConflictHandler
- All Implemented Interfaces:
- StandaloneProjectMap.IConflictHandler
- Enclosing class:
- StandaloneProjectMap
public static class StandaloneProjectMap.MapToFirstConflictHandler
- extends java.lang.Object
- implements StandaloneProjectMap.IConflictHandler
MapToFirstConflictHandler resolves conflicts by returning the first loaded EPackage.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
@NonNull
public static final StandaloneProjectMap.IConflictHandler INSTANCE
StandaloneProjectMap.MapToFirstConflictHandler
public StandaloneProjectMap.MapToFirstConflictHandler()
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 packageLoadStatus,
@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