org.eclipse.xtext.resource.generic
Class GenericResourceServiceProvider
java.lang.Object
org.eclipse.xtext.resource.generic.GenericResourceServiceProvider
- All Implemented Interfaces:
- IResourceServiceProvider
public class GenericResourceServiceProvider
- extends java.lang.Object
- implements IResourceServiceProvider
An IResourceServiceProvider
for non-Xtext resources.
- Author:
- Sven Efftinge - Initial contribution and API, Jan Koehnlein
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericResourceServiceProvider
public GenericResourceServiceProvider()
getContainerManager
public IContainer.Manager getContainerManager()
- Specified by:
getContainerManager
in interface IResourceServiceProvider
- Returns:
- the container manager for this resource service manager.
getResourceDescriptionManager
public IResourceDescription.Manager getResourceDescriptionManager()
- Specified by:
getResourceDescriptionManager
in interface IResourceServiceProvider
- Returns:
- the resource description manager for this resource service manager.
getResourceValidator
public IResourceValidator getResourceValidator()
- Specified by:
getResourceValidator
in interface IResourceServiceProvider
- Returns:
- the resource description manager for this resource service manager. Not null.
canHandle
public boolean canHandle(org.eclipse.emf.common.util.URI uri)
- Description copied from interface:
IResourceServiceProvider
- Tells whether the given URI can be handled by this
IResourceServiceProvider
- Specified by:
canHandle
in interface IResourceServiceProvider
- Returns:
- true if the URI can be handled
getEncodingProvider
public IEncodingProvider getEncodingProvider()
- Specified by:
getEncodingProvider
in interface IResourceServiceProvider
get
public <T> T get(java.lang.Class<T> t)
- Description copied from interface:
IResourceServiceProvider
- A generic way to obtain an implementation for a certain type.
- Specified by:
get
in interface IResourceServiceProvider
- Returns:
null
is no implementation of the given type can be provided.