org.eclipse.ocl.examples.pivot.manager
Class MetaModelManager.AbstractFactory

java.lang.Object
  extended by org.eclipse.ocl.examples.pivot.manager.MetaModelManager.AbstractFactory
All Implemented Interfaces:
MetaModelManager.Factory
Enclosing class:
MetaModelManager

public abstract static class MetaModelManager.AbstractFactory
extends java.lang.Object
implements MetaModelManager.Factory


Field Summary
 
Fields inherited from interface org.eclipse.ocl.examples.pivot.manager.MetaModelManager.Factory
CAN_HANDLE, CANNOT_HANDLE, MAY_HANDLE
 
Constructor Summary
MetaModelManager.AbstractFactory()
           
 
Method Summary
 int getHandlerPriority(org.eclipse.emf.ecore.EObject eObject)
          Return a positive handler priority if this factory can handle creation of a Pivot type from the available object, negative if it cannot.
 int getHandlerPriority(org.eclipse.emf.ecore.resource.Resource resource)
          Return a positive handler priority if this factory can handle creation of a Pivot resource from the available resource, negative if it cannot.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.manager.MetaModelManager.Factory
configure, getPackageURI, getPivotOf, importFromResource
 

Constructor Detail

MetaModelManager.AbstractFactory

public MetaModelManager.AbstractFactory()
Method Detail

getHandlerPriority

public int getHandlerPriority(@NonNull
                              org.eclipse.emf.ecore.EObject eObject)
Description copied from interface: MetaModelManager.Factory
Return a positive handler priority if this factory can handle creation of a Pivot type from the available object, negative if it cannot. Generic handlers such as ECore return a low priority.

Specified by:
getHandlerPriority in interface MetaModelManager.Factory

getHandlerPriority

public int getHandlerPriority(@NonNull
                              org.eclipse.emf.ecore.resource.Resource resource)
Description copied from interface: MetaModelManager.Factory
Return a positive handler priority if this factory can handle creation of a Pivot resource from the available resource, negative if it cannot. Generic handlers such as ECore return a low priority.

Specified by:
getHandlerPriority in interface MetaModelManager.Factory