org.eclipse.ocl.examples.pivot.resource
Class ASResourceFactoryRegistry
java.lang.Object
org.eclipse.ocl.examples.pivot.resource.ASResourceFactoryRegistry
public class ASResourceFactoryRegistry
- extends java.lang.Object
The ASResourceFactoryRegistry maintains the mapping from known ASResource content type
identifiers to the ASResourceFactory instance appropriate to the content type.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
@NonNull
public static final ASResourceFactoryRegistry INSTANCE
asResourceFactories
@NonNull
protected final java.util.Set<ASResourceFactory> asResourceFactories
contentType2resourceFactory
@NonNull
protected final java.util.Map<java.lang.String,ASResourceFactory> contentType2resourceFactory
ASResourceFactoryRegistry
public ASResourceFactoryRegistry()
addASResourceFactory
public void addASResourceFactory(@NonNull
java.lang.String contentType,
@NonNull
ASResourceFactory asResourceFactory)
configureResourceSet
public void configureResourceSet(@NonNull
org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
getResourceFactories
@NonNull
public java.lang.Iterable<ASResourceFactory> getResourceFactories()
getResourceFactory
@Nullable
public ASResourceFactory getResourceFactory(@Nullable
org.eclipse.emf.ecore.EObject eObject)
getResourceFactory
@Nullable
public ASResourceFactory getResourceFactory(@NonNull
org.eclipse.emf.ecore.resource.Resource resource)
getResourceFactory
@Nullable
public ASResourceFactory getResourceFactory(@NonNull
org.eclipse.emf.common.util.URI uri)