public final class UMLASResourceFactory 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 |
---|
UMLASResourceFactory() |
Modifier and Type | Method and Description |
---|---|
void |
configure(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Configure the MetamodelManager's external ResourceSet.
|
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() |
protected org.eclipse.uml2.uml.Constraint |
getConstraintForEOperation(EnvironmentFactoryInternal environmentFactory,
org.eclipse.emf.ecore.EOperation eOperation) |
org.eclipse.emf.ecore.EOperation |
getEOperation(ASResource asResource,
org.eclipse.emf.ecore.EObject eObject)
Return an EOperation for a pivot Operation if one is available.
|
org.eclipse.emf.ecore.EReference |
getEReference(ASResource asResource,
org.eclipse.emf.ecore.EObject eObject) |
static UMLASResourceFactory |
getInstance() |
java.lang.String |
getMetamodelNsURI(org.eclipse.emf.ecore.EPackage ePackage)
Return a specific metamodel NsURI if ePackage has particular requirements as is the case for UML.
|
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() |
java.lang.String |
getResourceClassName() |
protected org.eclipse.uml2.uml.Stereotype |
getStereotypeForEClass(EnvironmentFactoryInternal environmentFactory,
org.eclipse.emf.ecore.EClass eClass) |
Technology |
getTechnology() |
Element |
importFromResource(EnvironmentFactoryInternal environmentFactory,
org.eclipse.emf.ecore.resource.Resource umlResource,
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, configureResource, createAS2MonikerVisitor, createAS2XMIidVisitor, createASSaverLocateVisitor, createASSaverNormalizeVisitor, createASSaverResolveVisitor, createPrettyPrintVisitor, createTemplateParameterSubstitutionVisitor, createToStringVisitor, getContentType, getContribution, install, installContentHandler, isCompatibleResource, toString
@NonNull public static UMLASResourceFactory getInstance()
public void configure(@NonNull org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
ASResourceFactory
configure
in interface ASResourceFactory
configure
in class AbstractASResourceFactory
@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) throws ParserException
ASResourceFactory
getASElement
in interface ASResourceFactory
getASElement
in class AbstractASResourceFactory
ParserException
@NonNull public ASResourceFactory getASResourceFactory()
protected org.eclipse.uml2.uml.Constraint getConstraintForEOperation(@NonNull EnvironmentFactoryInternal environmentFactory, @NonNull org.eclipse.emf.ecore.EOperation eOperation)
@Nullable public org.eclipse.emf.ecore.EOperation getEOperation(@NonNull ASResource asResource, @NonNull org.eclipse.emf.ecore.EObject eObject)
ASResourceFactory
getEOperation
in interface ASResourceFactory
getEOperation
in class AbstractASResourceFactory
@Nullable public org.eclipse.emf.ecore.EReference getEReference(@NonNull ASResource asResource, @NonNull org.eclipse.emf.ecore.EObject eObject)
getEReference
in interface ASResourceFactory
getEReference
in class AbstractASResourceFactory
@NonNull public Technology getTechnology()
getTechnology
in interface ASResourceFactory
getTechnology
in class AbstractASResourceFactory
@Nullable public java.lang.String getMetamodelNsURI(@NonNull org.eclipse.emf.ecore.EPackage ePackage)
ASResourceFactory
getMetamodelNsURI
in interface ASResourceFactory
getMetamodelNsURI
in class AbstractASResourceFactory
@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 java.lang.String getResourceClassName()
getResourceClassName
in interface ASResourceFactory
getResourceClassName
in class AbstractASResourceFactory
protected org.eclipse.uml2.uml.Stereotype getStereotypeForEClass(@NonNull EnvironmentFactoryInternal environmentFactory, @NonNull org.eclipse.emf.ecore.EClass eClass)
@Nullable public Element importFromResource(@NonNull EnvironmentFactoryInternal environmentFactory, @NonNull org.eclipse.emf.ecore.resource.Resource umlResource, @Nullable org.eclipse.emf.common.util.URI uri) throws ParserException
ASResourceFactory
importFromResource
in interface ASResourceFactory
importFromResource
in class AbstractASResourceFactory
ParserException
public void initializeEValidatorRegistry(org.eclipse.emf.ecore.EValidator.Registry eValidatorRegistry)
initializeEValidatorRegistry
in interface ASResourceFactory
initializeEValidatorRegistry
in class AbstractASResourceFactory