org.eclipse.ocl.examples.xtext.completeocl.utilities
Class CompleteOCLASResourceFactory

java.lang.Object
  extended by org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl
      extended by org.eclipse.ocl.examples.pivot.resource.AbstractASResourceFactory
          extended by org.eclipse.ocl.examples.xtext.completeocl.utilities.CompleteOCLASResourceFactory
All Implemented Interfaces:
org.eclipse.emf.ecore.resource.Resource.Factory, ASResourceFactory

public class CompleteOCLASResourceFactory
extends AbstractASResourceFactory


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.resource.Resource.Factory
org.eclipse.emf.ecore.resource.Resource.Factory.Descriptor, org.eclipse.emf.ecore.resource.Resource.Factory.Registry
 
Field Summary
static CompleteOCLASResourceFactory INSTANCE
           
 
Fields inherited from class org.eclipse.ocl.examples.pivot.resource.AbstractASResourceFactory
contentType, fileExtension
 
Fields inherited from interface org.eclipse.ocl.examples.pivot.resource.ASResourceFactory
CAN_HANDLE, CANNOT_HANDLE, MAY_HANDLE
 
Constructor Summary
protected CompleteOCLASResourceFactory()
           
 
Method Summary
 AS2XMIidVisitor createAS2XMIidVisitor(AS2XMIid as2id)
          Create a visitor to compute the xmi:id value of an element.
 org.eclipse.emf.ecore.resource.Resource createResource(org.eclipse.emf.common.util.URI uri)
          Creates an instance of the resource.
 int getHandlerPriority(org.eclipse.emf.ecore.resource.Resource resource)
          Return a positive handler priority if this factory can handle creation of an OCL AS resource from the available resource, negative if it cannot.
 int getHandlerPriority(org.eclipse.emf.common.util.URI uri)
          Return a positive handler priority if this factory can handle creation of an OCL AS resource from the available URI, negative if it cannot.
 Element importFromResource(MetaModelManager metaModelManager, org.eclipse.emf.ecore.resource.Resource resource, org.eclipse.emf.common.util.URI uri)
          Return the root element in the Pivot resource resulting from import of the available resource.
 
Methods inherited from class org.eclipse.ocl.examples.pivot.resource.AbstractASResourceFactory
configure, configureResource, createAS2MonikerVisitor, createASSaverLocateVisitor, createASSaverNormalizeVisitor, createASSaverResolveVisitor, createPrettyPrintVisitor, createToStringVisitor, getASElement, getContentType, getEOperation, getEReference, getHandlerPriority, getMetamodelNsURI, getPackageURI, installContentHandler, isCompatibleResource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INSTANCE

@NonNull
public static final CompleteOCLASResourceFactory INSTANCE
Constructor Detail

CompleteOCLASResourceFactory

protected CompleteOCLASResourceFactory()
Method Detail

createAS2XMIidVisitor

@NonNull
public AS2XMIidVisitor createAS2XMIidVisitor(@NonNull
                                                     AS2XMIid as2id)
Description copied from interface: ASResourceFactory
Create a visitor to compute the xmi:id value of an element.

Specified by:
createAS2XMIidVisitor in interface ASResourceFactory
Overrides:
createAS2XMIidVisitor in class AbstractASResourceFactory

createResource

@NonNull
public org.eclipse.emf.ecore.resource.Resource createResource(org.eclipse.emf.common.util.URI uri)
Description copied from class: AbstractASResourceFactory
Creates an instance of the resource.

Specified by:
createResource in interface org.eclipse.emf.ecore.resource.Resource.Factory
Overrides:
createResource in class AbstractASResourceFactory

getHandlerPriority

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

Specified by:
getHandlerPriority in interface ASResourceFactory
Overrides:
getHandlerPriority in class AbstractASResourceFactory

getHandlerPriority

public int getHandlerPriority(@NonNull
                              org.eclipse.emf.common.util.URI uri)
Description copied from interface: ASResourceFactory
Return a positive handler priority if this factory can handle creation of an OCL AS resource from the available URI, negative if it cannot. Generic handlers such as Ecore return a low priority.

Specified by:
getHandlerPriority in interface ASResourceFactory
Overrides:
getHandlerPriority in class AbstractASResourceFactory

importFromResource

@Nullable
public Element importFromResource(@NonNull
                                           MetaModelManager metaModelManager,
                                           @NonNull
                                           org.eclipse.emf.ecore.resource.Resource resource,
                                           @Nullable
                                           org.eclipse.emf.common.util.URI uri)
Description copied from interface: ASResourceFactory
Return the root element in the Pivot resource resulting from import of the available resource.

Specified by:
importFromResource in interface ASResourceFactory
Overrides:
importFromResource in class AbstractASResourceFactory