org.eclipse.gmt.umlx.registry.environment
Class ModelRegistryEnvironment

java.lang.Object
  extended by org.eclipse.gmt.umlx.registry.environment.ModelRegistryEnvironment
Direct Known Subclasses:
EclipseModelRegistryEnvironment, StandaloneModelRegistryEnvironment

public abstract class ModelRegistryEnvironment
extends java.lang.Object

The ModelRegistryEnvironment defines the singleton facilities of the Model Registry and their initialisation. Derived StandaloneModelRegistryEnvironment and EclipseModelRegistryEnvironment define environments that are initialised programmatically or by plug-in extensions.


Field Summary
static java.lang.String PLUGIN_ID
           
 
Method Summary
 AccessorKindRegistry getAccessorKindRegistry()
           
 java.io.File getFile(org.eclipse.emf.common.util.URI uri)
          Return a File to access the URI, or null if the URI cannot be resolved to a file protocol.
static ModelRegistryEnvironment getInstance()
           
 ModelContentRegistry getModelContentRegistry()
           
 ModelSerializationRegistry getModelSerializationRegistry()
           
static void logError(java.lang.String string, java.lang.Throwable e)
           
abstract  void logTheError(java.lang.String string, java.lang.Throwable e)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PLUGIN_ID

public static final java.lang.String PLUGIN_ID
See Also:
Constant Field Values
Method Detail

getInstance

public static ModelRegistryEnvironment getInstance()

logError

public static void logError(java.lang.String string,
                            java.lang.Throwable e)

getAccessorKindRegistry

public AccessorKindRegistry getAccessorKindRegistry()

getFile

public java.io.File getFile(org.eclipse.emf.common.util.URI uri)
                     throws java.net.URISyntaxException,
                            java.io.IOException
Return a File to access the URI, or null if the URI cannot be resolved to a file protocol.

Returns:
the File
Throws:
java.net.URISyntaxException - if the URI syntax is bad
java.io.IOException - if URL resolution fails

getModelContentRegistry

public ModelContentRegistry getModelContentRegistry()

getModelSerializationRegistry

public ModelSerializationRegistry getModelSerializationRegistry()

logTheError

public abstract void logTheError(java.lang.String string,
                                 java.lang.Throwable e)