Package org.eclipse.xtext.resource.impl
Class ResourceServiceProviderRegistryImpl
- java.lang.Object
-
- org.eclipse.xtext.resource.impl.ResourceServiceProviderRegistryImpl
-
- All Implemented Interfaces:
IResourceServiceProvider.Registry
public class ResourceServiceProviderRegistryImpl extends java.lang.Object implements IResourceServiceProvider.Registry
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ResourceServiceProviderRegistryImpl.InternalData
-
Nested classes/interfaces inherited from interface org.eclipse.xtext.resource.IResourceServiceProvider.Registry
IResourceServiceProvider.Registry.RegistryProvider
-
-
Field Summary
-
Fields inherited from interface org.eclipse.xtext.resource.IResourceServiceProvider.Registry
INSTANCE
-
-
Constructor Summary
Constructors Constructor Description ResourceServiceProviderRegistryImpl()
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Method Detail
-
getResourceServiceProvider
public IResourceServiceProvider getResourceServiceProvider(org.eclipse.emf.common.util.URI uri, java.lang.String contentType)
Description copied from interface:IResourceServiceProvider.Registry
Returns theIResourceServiceProvider
appropriate for the given URI. Content types are not yet supported.- Specified by:
getResourceServiceProvider
in interfaceIResourceServiceProvider.Registry
- 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.
-
getContentTypeToFactoryMap
public java.util.Map<java.lang.String,java.lang.Object> getContentTypeToFactoryMap()
- Specified by:
getContentTypeToFactoryMap
in interfaceIResourceServiceProvider.Registry
-
getExtensionToFactoryMap
public java.util.Map<java.lang.String,java.lang.Object> getExtensionToFactoryMap()
- Specified by:
getExtensionToFactoryMap
in interfaceIResourceServiceProvider.Registry
-
getProtocolToFactoryMap
public java.util.Map<java.lang.String,java.lang.Object> getProtocolToFactoryMap()
- Specified by:
getProtocolToFactoryMap
in interfaceIResourceServiceProvider.Registry
-
getResourceServiceProvider
public IResourceServiceProvider getResourceServiceProvider(org.eclipse.emf.common.util.URI uri)
Description copied from interface:IResourceServiceProvider.Registry
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.- Specified by:
getResourceServiceProvider
in interfaceIResourceServiceProvider.Registry
- Parameters:
uri
- the URI.- Returns:
- the
IResourceServiceProvider
appropriate for the given URI, ornull
if there isn't one.
-
-