org.eclipse.ocl.examples.modelregistry.environment
Class ModelRegistryEnvironment

java.lang.Object
  extended by org.eclipse.ocl.examples.modelregistry.environment.ModelRegistryEnvironment
Direct Known Subclasses:
EclipseModelRegistryEnvironment, JavaModelRegistryEnvironment

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
           
 
Constructor Summary
protected ModelRegistryEnvironment()
           
 
Method Summary
protected  ModelSerializationRegistry createModelSerializationRegistry()
           
protected  NamespaceRegistry createNamespaceRegistry()
           
 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()
           
 ModelSerializationRegistry getModelSerializationRegistry()
           
 NamespaceRegistry getNamespaceRegistry()
           
protected abstract  void initializeModelSerializationRegistry(ModelSerializationRegistry modelSerializationRegistry)
          Install any required content in the ModelSerializationRegistry.
protected abstract  void initializeNamespaceRegistry(NamespaceRegistry namespaceRegistry)
          Install any required content in the NamespaceRegistry.
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
clone, equals, finalize, 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
Constructor Detail

ModelRegistryEnvironment

protected ModelRegistryEnvironment()
Method Detail

getInstance

public static ModelRegistryEnvironment getInstance()

logError

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

createModelSerializationRegistry

protected ModelSerializationRegistry createModelSerializationRegistry()

createNamespaceRegistry

protected NamespaceRegistry createNamespaceRegistry()

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

getModelSerializationRegistry

public ModelSerializationRegistry getModelSerializationRegistry()

getNamespaceRegistry

public NamespaceRegistry getNamespaceRegistry()

initializeModelSerializationRegistry

protected abstract void initializeModelSerializationRegistry(ModelSerializationRegistry modelSerializationRegistry)
Install any required content in the ModelSerializationRegistry.


initializeNamespaceRegistry

protected abstract void initializeNamespaceRegistry(NamespaceRegistry namespaceRegistry)
Install any required content in the NamespaceRegistry.


logTheError

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