org.eclipse.xtext.resource.impl
Class DefaultResourceServiceProvider

java.lang.Object
  extended by org.eclipse.xtext.resource.impl.DefaultResourceServiceProvider
All Implemented Interfaces:
IResourceServiceProvider
Direct Known Subclasses:
SharedCommonTypesResourceServiceProvider

public class DefaultResourceServiceProvider
extends java.lang.Object
implements IResourceServiceProvider

Author:
Sven Efftinge - Initial contribution and API

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.xtext.resource.IResourceServiceProvider
IResourceServiceProvider.Registry
 
Constructor Summary
DefaultResourceServiceProvider()
           
 
Method Summary
 boolean canHandle(org.eclipse.emf.common.util.URI uri)
          Tells whether the given URI can be handled by this IResourceServiceProvider
<T> T
get(java.lang.Class<T> t)
          A generic way to obtain an implementation for a certain type.
 IContainer.Manager getContainerManager()
           
 IEncodingProvider getEncodingProvider()
           
 IResourceDescription.Manager getResourceDescriptionManager()
           
 IResourceValidator getResourceValidator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultResourceServiceProvider

public DefaultResourceServiceProvider()
Method Detail

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.