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 classResourceServiceProviderRegistryImpl.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()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.
-
-
-
Method Detail
-
getResourceServiceProvider
public IResourceServiceProvider getResourceServiceProvider(org.eclipse.emf.common.util.URI uri, java.lang.String contentType)
Description copied from interface:IResourceServiceProvider.RegistryReturns theIResourceServiceProviderappropriate for the given URI. Content types are not yet supported.- Specified by:
getResourceServiceProviderin interfaceIResourceServiceProvider.Registry- 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.
-
getContentTypeToFactoryMap
public java.util.Map<java.lang.String,java.lang.Object> getContentTypeToFactoryMap()
- Specified by:
getContentTypeToFactoryMapin interfaceIResourceServiceProvider.Registry
-
getExtensionToFactoryMap
public java.util.Map<java.lang.String,java.lang.Object> getExtensionToFactoryMap()
- Specified by:
getExtensionToFactoryMapin interfaceIResourceServiceProvider.Registry
-
getProtocolToFactoryMap
public java.util.Map<java.lang.String,java.lang.Object> getProtocolToFactoryMap()
- Specified by:
getProtocolToFactoryMapin interfaceIResourceServiceProvider.Registry
-
getResourceServiceProvider
public IResourceServiceProvider getResourceServiceProvider(org.eclipse.emf.common.util.URI uri)
Description copied from interface:IResourceServiceProvider.RegistryReturns 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.- Specified by:
getResourceServiceProviderin interfaceIResourceServiceProvider.Registry- Parameters:
uri- the URI.- Returns:
- the
IResourceServiceProviderappropriate for the given URI, ornullif there isn't one.
-
-