public class ResourceRegistry
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static java.util.Map<org.eclipse.emf.common.util.URI,TypeRegistry> |
MAP |
| Modifier | Constructor and Description |
|---|---|
private |
ResourceRegistry()
Prevents external object creation.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
clear()
Clears the registry.
|
static TypeRegistry |
getTypeRegistry(org.eclipse.emf.ecore.EObject object)
Returns the type registry for a given (grammar tree) EObject (via its resource URI).
|
static TypeRegistry |
getTypeRegistry(org.eclipse.xtext.nodemodel.INode node)
Returns the type registry for a given (parse tree) node (via its resource URI).
|
static TypeRegistry |
getTypeRegistry(org.eclipse.emf.ecore.resource.Resource resource)
Returns the type registry for a given resource (via its URI).
|
static TypeRegistry |
getTypeRegistry(java.net.URI uri)
Registers a type registry for a given resource (via its URI).
|
static TypeRegistry |
getTypeRegistry(org.eclipse.emf.common.util.URI uri)
Returns the type registry for a given URI.
|
static void |
register(org.eclipse.emf.ecore.resource.Resource resource,
TypeRegistry registry)
Registers a type registry for a given resource (via its URI).
|
static void |
register(org.eclipse.emf.common.util.URI uri,
TypeRegistry registry)
Registers a type registry for a given URI.
|
static void |
unregister(org.eclipse.emf.ecore.resource.Resource resource)
Unregisters the type registry for a given resource (via its URI).
|
static void |
unregister(org.eclipse.emf.common.util.URI uri)
Unregisters the type registry for a given URI.
|
private static final java.util.Map<org.eclipse.emf.common.util.URI,TypeRegistry> MAP
public static void clear()
public static void unregister(org.eclipse.emf.common.util.URI uri)
uri - the URI (may be null)public static void unregister(org.eclipse.emf.ecore.resource.Resource resource)
resource - the resource (may be null)unregister(URI)public static void register(org.eclipse.emf.common.util.URI uri,
TypeRegistry registry)
uri
is not null and the given registry is not TypeRegistry.DEFAULT.uri - the URI to register the registry forregistry - the registry to be registeredpublic static void register(org.eclipse.emf.ecore.resource.Resource resource,
TypeRegistry registry)
resource
(and its URI) are not null and the given registry is not TypeRegistry.DEFAULT.uri - the URI to register the registry for (may be null)registry - the registry to be registeredpublic static TypeRegistry getTypeRegistry(java.net.URI uri)
resource
(and its URI) are not null and the given registry is not TypeRegistry.DEFAULT.uri - the URI to register the registry for (may be null)registry - the registry to be registeredpublic static TypeRegistry getTypeRegistry(org.eclipse.emf.common.util.URI uri)
uri - the URL the type registry shall be returned for (may be null)TypeRegistry.DEFAULT if non was registeredpublic static TypeRegistry getTypeRegistry(org.eclipse.emf.ecore.resource.Resource resource)
resource - the resource the type registry shall be returned for (may be null)TypeRegistry.DEFAULT if non was registeredgetTypeRegistry(URI)public static TypeRegistry getTypeRegistry(org.eclipse.xtext.nodemodel.INode node)
node - the node the type registry shall be returned for (may be null)TypeRegistry.DEFAULT if non was registeredgetTypeRegistry(EObject)public static TypeRegistry getTypeRegistry(org.eclipse.emf.ecore.EObject object)
object - the object the type registry shall be returned for (may be null)TypeRegistry.DEFAULT if non was registeredgetTypeRegistry(Resource)Copyright © 2009 - 2018 SSE. All Rights Reserved.