Package org.eclipse.xtext.resource
Interface IResourceServiceProvider.Registry
-
- All Known Implementing Classes:
ResourceServiceProviderRegistryImpl
- Enclosing interface:
- IResourceServiceProvider
public static interface IResourceServiceProvider.Registry
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIResourceServiceProvider.Registry.RegistryProvider
-
Field Summary
Fields Modifier and Type Field Description static IResourceServiceProvider.RegistryINSTANCE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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()IResourceServiceProvidergetResourceServiceProvider(org.eclipse.emf.common.util.URI uri)Returns the resource factory appropriate for the given URI.IResourceServiceProvidergetResourceServiceProvider(org.eclipse.emf.common.util.URI uri, java.lang.String contentType)Returns theIResourceServiceProviderappropriate 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 theIResourceServiceProviderappropriate for the given URI. Content types are not yet supported.- Parameters:
uri- the URI.contentType- the content type of the URI ornullif a content type should not be used during lookup.- Returns:
- the
IResourceServiceProviderappropriate for the given URI, ornullif 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
schemeto search theprotocolmap the URI'sfile extensionto searchextensionmap, and the URI'scontent type identifierto search thecontent typemap.- Parameters:
uri- the URI.- Returns:
- the
IResourceServiceProviderappropriate for the given URI, ornullif 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()
-
-