public class OCLstdlib extends ASResourceImpl
This Standard Library may be registered as the definition of a Standard Library for
the OCL evaluation framework by invoking install()
.
The Standard Library is normally activated when the MetamodelManager attempts to locate a library type when its default Standard Library URI is the same as this Standard Library.
Modifier and Type | Class and Description |
---|---|
static class |
OCLstdlib.Loader
The Loader shares the Standard Library instance whenever this default library
is loaded from the registry of Standard Libraries populated by the standard_library
extension point.
|
Modifier and Type | Field and Description |
---|---|
static String |
STDLIB_URI
The URI of this Standard Library.
|
COMPLETE_OCL_CONTENT_TYPE, CONTENT_TYPE, DEFAULT_ENCODING, ECORE_CONTENT_TYPE, ESSENTIALOCL_CONTENT_TYPE, FILE_EXTENSION, OCLINECORE_CONTENT_TYPE, OCLSTDLIB_CONTENT_TYPE, OPTION_INTERNAL_UUIDS, OPTION_NORMALIZE_CONTENTS, UML_CONTENT_TYPE
Modifier and Type | Method and Description |
---|---|
NotificationChain |
basicSetResourceSet(ResourceSet resourceSet,
NotificationChain notifications)
Overridden to inhibit entry of the static shared instance in any ResourceSet.
|
static OCLstdlib |
create(String asURI)
Construct a copy of the OCL Standard Library with specified resource URI,
and package name, prefix and namespace URI.
|
static OCLstdlib |
getDefault()
Return the default http://www.eclipse.org/ocl/2015/Library standard Library Resource.
|
static Model |
getDefaultModel()
Return the default http://www.eclipse.org/ocl/2015/Library standard Library model.
|
static Package |
getDefaultPackage()
Return the default http://www.eclipse.org/ocl/2015/Library standard Library package.
|
static void |
install()
Install this library in the
StandardLibraryContribution.REGISTRY . |
static void |
lazyInstall()
Install this library in the
StandardLibraryContribution.REGISTRY
unless some other library contribution has already been installed. |
void |
load(Map<?,?> options)
Overridden to trivialise loading of the static shared instance.
|
static void |
uninstall()
Unnstall this library from the
StandardLibraryContribution.REGISTRY . |
basicGetEObjectByID, basicGetLUSSIDs, getASResourceFactory, getDefaultSaveOptions, getLUSSIDs, getModel, getURIFragment, getXmiidVersion, resetLUSSIDs, setXmiidVersion
public static final String STDLIB_URI
public static OCLstdlib getDefault()
public static Model getDefaultModel()
public static Package getDefaultPackage()
public static void install()
StandardLibraryContribution.REGISTRY
.
This method may be invoked by standalone applications to replicate
the registration that should appear as a standard_library plugin
extension when running within Eclipse.public static void lazyInstall()
StandardLibraryContribution.REGISTRY
unless some other library contribution has already been installed.public static void uninstall()
StandardLibraryContribution.REGISTRY
.
This method may be invoked by standalone applications to release the library
resources for garbage collection and memory leakage detection.public static OCLstdlib create(String asURI)
public NotificationChain basicSetResourceSet(ResourceSet resourceSet, NotificationChain notifications)
public void load(Map<?,?> options) throws IOException
IOException
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.