org.eclipse.xtext.resource
Interface IResourceServiceProvider.Registry

All Known Implementing Classes:
ResourceServiceProviderRegistryImpl
Enclosing interface:
IResourceServiceProvider

public static interface IResourceServiceProvider.Registry


Nested Class Summary
static class IResourceServiceProvider.Registry.RegistryProvider
           
 
Field Summary
static IResourceServiceProvider.Registry INSTANCE
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.Object> getContentTypeToFactoryMap()
           
 java.util.Map<java.lang.String,java.lang.Object> getExtensionToFactoryMap()
           
 java.util.Map<java.lang.String,java.lang.Object> getProtocolToFactoryMap()
           
 IResourceServiceProvider getResourceServiceProvider(org.eclipse.emf.common.util.URI uri)
          Returns the resource factory appropriate for the given URI.
 IResourceServiceProvider getResourceServiceProvider(org.eclipse.emf.common.util.URI uri, java.lang.String contentType)
          Returns the IResourceServiceProvider appropriate for the given URI.
 

Field Detail

INSTANCE

static final IResourceServiceProvider.Registry INSTANCE
Method Detail

getResourceServiceProvider

IResourceServiceProvider getResourceServiceProvider(org.eclipse.emf.common.util.URI uri,
                                                    java.lang.String contentType)
Returns the IResourceServiceProvider appropriate for the given URI. Content types are not yet supported.

Parameters:
uri - the URI.
contentType - the content type of the URI or null if a content type should not be used during lookup.
Returns:
the IResourceServiceProvider appropriate for the given URI, or null if there isn't one.

getResourceServiceProvider

IResourceServiceProvider getResourceServiceProvider(org.eclipse.emf.common.util.URI uri)
Returns the resource factory appropriate for the given URI.

An implementation will (typically) use the URI's scheme to search the protocol map the URI's file extension to search extension map, and the URI's content type identifier to search the content type map.

Parameters:
uri - the URI.
Returns:
the IResourceServiceProvider appropriate for the given URI, or null if there isn't one.

getContentTypeToFactoryMap

java.util.Map<java.lang.String,java.lang.Object> getContentTypeToFactoryMap()

getExtensionToFactoryMap

java.util.Map<java.lang.String,java.lang.Object> getExtensionToFactoryMap()

getProtocolToFactoryMap

java.util.Map<java.lang.String,java.lang.Object> getProtocolToFactoryMap()