public final class EcoreASResourceFactory extends AbstractASResourceFactory
org.eclipse.emf.ecore.resource.Resource.Factory.Descriptor, org.eclipse.emf.ecore.resource.Resource.Factory.Registry
ASResourceFactoryContribution.Descriptor
RegisteredContribution.AbstractDescriptor<C extends RegisteredContribution<C>>, RegisteredContribution.AbstractRegistry<C extends RegisteredContribution<C>>
contentType
Constructor and Description |
---|
EcoreASResourceFactory() |
Modifier and Type | Method and Description |
---|---|
org.eclipse.emf.ecore.resource.Resource |
createResource(org.eclipse.emf.common.util.URI uri)
Creates an instance of the resource.
|
<T extends Element> |
getASElement(EnvironmentFactoryInternal environmentFactory,
java.lang.Class<T> pivotClass,
org.eclipse.emf.ecore.EObject eObject)
Return the OCL AS element corresponding to eObject using metamodelManager to supervise
the correspondence and ensuring that the result is of asClass.
|
ASResourceFactory |
getASResourceFactory() |
static EcoreASResourceFactory |
getInstance() |
org.eclipse.emf.common.util.URI |
getPackageURI(org.eclipse.emf.ecore.EObject eObject)
Return the URI of an eObject if it can be treated as a Package.
|
java.lang.Integer |
getPriority() |
Element |
importFromResource(EnvironmentFactoryInternal environmentFactory,
org.eclipse.emf.ecore.resource.Resource ecoreResource,
org.eclipse.emf.common.util.URI uri)
Return the root element in the Pivot resource resulting from import of the available
resource.
|
void |
initializeEValidatorRegistry(org.eclipse.emf.ecore.EValidator.Registry eValidatorRegistry) |
basicGetASResourceFactory, configure, configureResource, createAS2MonikerVisitor, createAS2XMIidVisitor, createASSaverLocateVisitor, createASSaverNormalizeVisitor, createASSaverResolveVisitor, createPrettyPrintVisitor, createTemplateParameterSubstitutionVisitor, createToStringVisitor, getContentType, getContribution, getEOperation, getEReference, getMetamodelNsURI, getResourceClassName, getTechnology, install, installContentHandler, isCompatibleResource, toString
@NonNull public static EcoreASResourceFactory getInstance()
@NonNull public org.eclipse.emf.ecore.resource.Resource createResource(org.eclipse.emf.common.util.URI uri)
AbstractASResourceFactory
createResource
in interface org.eclipse.emf.ecore.resource.Resource.Factory
createResource
in class AbstractASResourceFactory
@Nullable public <T extends Element> T getASElement(@NonNull EnvironmentFactoryInternal environmentFactory, @NonNull java.lang.Class<T> pivotClass, @NonNull org.eclipse.emf.ecore.EObject eObject)
ASResourceFactory
getASElement
in interface ASResourceFactory
getASElement
in class AbstractASResourceFactory
@NonNull public ASResourceFactory getASResourceFactory()
@Nullable public org.eclipse.emf.common.util.URI getPackageURI(@NonNull org.eclipse.emf.ecore.EObject eObject)
ASResourceFactory
getPackageURI
in interface ASResourceFactory
getPackageURI
in class AbstractASResourceFactory
@Nullable public java.lang.Integer getPriority()
getPriority
in interface ASResourceFactoryContribution
getPriority
in class AbstractASResourceFactory
@Nullable public Element importFromResource(@NonNull EnvironmentFactoryInternal environmentFactory, @NonNull org.eclipse.emf.ecore.resource.Resource ecoreResource, @Nullable org.eclipse.emf.common.util.URI uri)
ASResourceFactory
importFromResource
in interface ASResourceFactory
importFromResource
in class AbstractASResourceFactory
public void initializeEValidatorRegistry(org.eclipse.emf.ecore.EValidator.Registry eValidatorRegistry)
initializeEValidatorRegistry
in interface ASResourceFactory
initializeEValidatorRegistry
in class AbstractASResourceFactory