public class ASResourceFactoryRegistry extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ASResourceFactoryRegistry.ContributionFunction |
static class |
ASResourceFactoryRegistry.ExternalResourcePredicate |
static class |
ASResourceFactoryRegistry.LoadedResourcePredicate |
Modifier and Type | Field and Description |
---|---|
static ASResourceFactoryRegistry |
INSTANCE |
Constructor and Description |
---|
ASResourceFactoryRegistry() |
Modifier and Type | Method and Description |
---|---|
Object |
addASResourceFactory(String contentType,
String oclasExtension,
String resourceClassName,
ASResourceFactoryContribution asResourceFactory) |
void |
configureResourceSet(ResourceSet resourceSet) |
EnvironmentFactoryInternal |
createEnvironmentFactory(ProjectManager projectManager,
ResourceSet externalResourceSet)
Create a new EnvironmentFactory appropriate to the resources in ResourceSet.
|
ASResourceFactoryContribution |
get(String contentType) |
ASResourceFactory |
getASResourceFactory(Resource resource)
Return the ASResourceFactory to be used in association with a particular resource.
|
ASResourceFactory |
getASResourceFactoryForExtension(String extension) |
Iterable<ASResourceFactory> |
getExternalResourceFactories() |
Iterable<ASResourceFactory> |
getLoadedResourceFactories() |
Technology |
getTechnology()
Determine the getTechnology appropriate to the registered ASResourceFactories.
|
void |
remove(String contentType,
String extension,
String resourceClassName) |
public static final ASResourceFactoryRegistry INSTANCE
public Object addASResourceFactory(String contentType, String oclasExtension, String resourceClassName, ASResourceFactoryContribution asResourceFactory)
public void configureResourceSet(ResourceSet resourceSet)
public EnvironmentFactoryInternal createEnvironmentFactory(ProjectManager projectManager, ResourceSet externalResourceSet)
public ASResourceFactoryContribution get(String contentType)
public ASResourceFactory getASResourceFactory(Resource resource)
For an ASResource, the ASResourceFactory is directly accessible.
For a CSResource, the CSResourceFactory is directly related to the CSResource class.
For more general resources, inheritance from defined correspondences is used. Thus the UMLASResourceFactory is defined for the UMLResource interface and so is used for all variants of derived UMLResource class. Inheritance is determined by registered class name to avoid loading the UML support plugins when UML is not in use.
In the absence of a configured selection an EcoreASResourceFactory is used.
public ASResourceFactory getASResourceFactoryForExtension(String extension)
public Iterable<ASResourceFactory> getExternalResourceFactories()
public Iterable<ASResourceFactory> getLoadedResourceFactories()
public Technology getTechnology()
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.