org.eclipse.ocl.examples.modelregistry.environment
Class ModelRegistryEnvironment
java.lang.Object
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PLUGIN_ID
public static final java.lang.String PLUGIN_ID
- See Also:
- Constant Field Values
ModelRegistryEnvironment
protected ModelRegistryEnvironment()
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)