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 class
IResourceServiceProvider.Registry.RegistryProvider
-
Field Summary
Fields Modifier and Type Field Description static IResourceServiceProvider.Registry
INSTANCE
-
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()
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 theIResourceServiceProvider
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 theIResourceServiceProvider
appropriate for the given URI. Content types are not yet supported.- Parameters:
uri
- the URI.contentType
- the content type of the URI ornull
if a content type should not be used during lookup.- Returns:
- the
IResourceServiceProvider
appropriate for the given URI, ornull
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 theprotocol
map the URI'sfile extension
to searchextension
map, and the URI'scontent type identifier
to search thecontent type
map.- Parameters:
uri
- the URI.- Returns:
- the
IResourceServiceProvider
appropriate for the given URI, ornull
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()
-
-