public abstract class AbstractASResourceFactory extends org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl implements ASResourceFactory
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>>
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
contentType |
Modifier | Constructor and Description |
---|---|
protected |
AbstractASResourceFactory(java.lang.String contentType) |
Modifier and Type | Method and Description |
---|---|
ASResourceFactory |
basicGetASResourceFactory() |
void |
configure(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Configure the MetamodelManager's external ResourceSet.
|
protected void |
configureResource(ASResource asResource) |
AS2MonikerVisitor |
createAS2MonikerVisitor(AS2Moniker as2moniker)
Create a visitor to compute a structural descriptor for an element.
|
AS2XMIidVisitor |
createAS2XMIidVisitor(AS2XMIid as2id)
Create a visitor to compute the xmi:id value of an element.
|
ASSaverLocateVisitor |
createASSaverLocateVisitor(ASSaver saver)
Create a visitor to locate orphan specializations.
|
ASSaverNormalizeVisitor |
createASSaverNormalizeVisitor(ASSaver saver)
Create a visitor to normalize content.
|
ASSaverResolveVisitor |
createASSaverResolveVisitor(ASSaver saver)
Create a visitor to resolve orphan specializations.
|
PrettyPrintVisitor |
createPrettyPrintVisitor(PrettyPrinter prettyPrinter)
Create a visitor to provide a pretty printed representation of one or more elements in the resource.
|
org.eclipse.emf.ecore.resource.Resource |
createResource(org.eclipse.emf.common.util.URI uri)
Creates an instance of the resource.
|
TemplateParameterSubstitutionVisitor |
createTemplateParameterSubstitutionVisitor(EnvironmentFactory environmentFactory,
Type selfType,
Type selfTypeValue)
Create a visitor to resolve template substitutions.
|
ToStringVisitor |
createToStringVisitor(java.lang.StringBuilder s)
Create a visitor to provide a debug representation of one or more elements in 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.
|
java.lang.String |
getContentType() |
ASResourceFactory |
getContribution() |
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) |
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() |
Technology |
getTechnology() |
Element |
importFromResource(EnvironmentFactoryInternal environmentFactory,
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.
|
void |
initializeEValidatorRegistry(org.eclipse.emf.ecore.EValidator.Registry eValidatorRegistry) |
protected void |
install(java.lang.String oclasExtension,
java.lang.String resourceClassName) |
static void |
installContentHandler(int priority,
org.eclipse.emf.ecore.resource.ContentHandler contentHandler) |
boolean |
isCompatibleResource(org.eclipse.emf.ecore.resource.Resource newResource,
org.eclipse.emf.ecore.resource.Resource oldResource)
Return true if newResource can be ignored in favour of an already loaded oldResource.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getASResourceFactory
protected AbstractASResourceFactory(@NonNull java.lang.String contentType)
public static void installContentHandler(int priority, @NonNull org.eclipse.emf.ecore.resource.ContentHandler contentHandler)
@NonNull public ASResourceFactory basicGetASResourceFactory()
basicGetASResourceFactory
in interface ASResourceFactoryContribution
public void configure(@NonNull org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
ASResourceFactory
configure
in interface ASResourceFactory
protected void configureResource(@NonNull ASResource asResource)
@NonNull public AS2MonikerVisitor createAS2MonikerVisitor(@NonNull AS2Moniker as2moniker)
ASResourceFactory
createAS2MonikerVisitor
in interface ASResourceFactory
@NonNull public AS2XMIidVisitor createAS2XMIidVisitor(@NonNull AS2XMIid as2id)
ASResourceFactory
createAS2XMIidVisitor
in interface ASResourceFactory
@NonNull public ASSaverLocateVisitor createASSaverLocateVisitor(@NonNull ASSaver saver)
ASResourceFactory
createASSaverLocateVisitor
in interface ASResourceFactory
@NonNull public ASSaverNormalizeVisitor createASSaverNormalizeVisitor(@NonNull ASSaver saver)
ASResourceFactory
createASSaverNormalizeVisitor
in interface ASResourceFactory
@NonNull public ASSaverResolveVisitor createASSaverResolveVisitor(@NonNull ASSaver saver)
ASResourceFactory
createASSaverResolveVisitor
in interface ASResourceFactory
@NonNull public PrettyPrintVisitor createPrettyPrintVisitor(@NonNull PrettyPrinter prettyPrinter)
ASResourceFactory
createPrettyPrintVisitor
in interface ASResourceFactory
@NonNull public TemplateParameterSubstitutionVisitor createTemplateParameterSubstitutionVisitor(@NonNull EnvironmentFactory environmentFactory, @Nullable Type selfType, @Nullable Type selfTypeValue)
ASResourceFactory
createTemplateParameterSubstitutionVisitor
in interface ASResourceFactory
@NonNull public ToStringVisitor createToStringVisitor(@NonNull java.lang.StringBuilder s)
ASResourceFactory
createToStringVisitor
in interface ASResourceFactory
public org.eclipse.emf.ecore.resource.Resource createResource(org.eclipse.emf.common.util.URI uri)
createResource
in interface org.eclipse.emf.ecore.resource.Resource.Factory
createResource
in class org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl
@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
ParserException
@NonNull public ASResourceFactory getContribution()
getContribution
in interface RegisteredContribution<ASResourceFactory>
@NonNull public java.lang.String getContentType()
getContentType
in interface ASResourceFactory
@Nullable public org.eclipse.emf.ecore.EOperation getEOperation(@NonNull ASResource asResource, @NonNull org.eclipse.emf.ecore.EObject eObject)
ASResourceFactory
getEOperation
in interface ASResourceFactory
@Nullable public org.eclipse.emf.ecore.EReference getEReference(@NonNull ASResource asResource, @NonNull org.eclipse.emf.ecore.EObject eObject)
getEReference
in interface ASResourceFactory
@Nullable public java.lang.String getMetamodelNsURI(@NonNull org.eclipse.emf.ecore.EPackage ePackage)
ASResourceFactory
getMetamodelNsURI
in interface ASResourceFactory
@Nullable public org.eclipse.emf.common.util.URI getPackageURI(@NonNull org.eclipse.emf.ecore.EObject eObject)
ASResourceFactory
getPackageURI
in interface ASResourceFactory
@Nullable public java.lang.Integer getPriority()
getPriority
in interface ASResourceFactoryContribution
@Nullable public java.lang.String getResourceClassName()
getResourceClassName
in interface ASResourceFactory
@NonNull public Technology getTechnology()
getTechnology
in interface ASResourceFactory
@Nullable public Element importFromResource(@NonNull EnvironmentFactoryInternal environmentFactory, @NonNull org.eclipse.emf.ecore.resource.Resource resource, @Nullable org.eclipse.emf.common.util.URI uri) throws ParserException
ASResourceFactory
importFromResource
in interface ASResourceFactory
ParserException
public void initializeEValidatorRegistry(org.eclipse.emf.ecore.EValidator.Registry eValidatorRegistry)
initializeEValidatorRegistry
in interface ASResourceFactory
protected void install(@Nullable java.lang.String oclasExtension, @Nullable java.lang.String resourceClassName)
public boolean isCompatibleResource(@NonNull org.eclipse.emf.ecore.resource.Resource newResource, @NonNull org.eclipse.emf.ecore.resource.Resource oldResource)
ASResourceFactory
isCompatibleResource
in interface ASResourceFactory
@NonNull public java.lang.String toString()
toString
in class java.lang.Object