public class OCLDelegateDomain extends Object implements DelegateDomain, GlobalEnvironmentFactory.Listener
Modifier and Type | Class and Description |
---|---|
static class |
OCLDelegateDomain.FactoryFactory |
DelegateDomain.Factory
EMPTY_LIST
Constructor and Description |
---|
OCLDelegateDomain(String delegateURI,
EPackage ePackage)
Initializes me with my delegate URI and package.
|
Modifier and Type | Method and Description |
---|---|
void |
environmentFactoryDisposed(EnvironmentFactory environmentFactory)
Respond to disposal of the EnvironmentFactory by eliminating all further usage.
|
static <T> T |
getDelegateResourceSetRegistry(EModelElement modelElement,
Class<T> registryClass,
T defaultRegistry) |
MetamodelManager |
getMetamodelManager() |
OCL |
getOCL() |
<T extends Element> |
getPivot(Class<T> requiredClass,
EObject eObject) |
String |
getURI()
Get the delegate domain name.
|
static void |
initialize(ResourceSet resourceSet)
Initialize the resourceSet registries, if non-null, or the global registries, if null,
to support usage of the Pivot OCL Delegate Evaluator for the Pivot OCL Delegate URI.
|
static void |
initialize(ResourceSet resourceSet,
String oclDelegateURI)
Initialize the resourceSet registries, if non-null, or the global registries, if null,
to support usage of the Pivot OCL Delegate Evaluator for the oclDelegateURI.
|
static void |
initializePivotOnlyDiagnosticianContext(Map<Object,Object> context) |
static void |
initializePivotOnlyDiagnosticianResourceSet(ResourceSet resourceSet) |
static void |
lazyInitializeGlobals(String oclDelegateURI,
boolean forceInitialization)
Initialize any currently uninitialized global delegate registries to support the oclDelegateURI.
|
static void |
lazyInitializeLocals(ResourceSet resourceSet,
String oclDelegateURI,
boolean forceInitialization,
OCLDelegateDomain.FactoryFactory delegateFactoryFactory)
Initialize the local resourceSet delegate registries to support the oclDelegateURI.
|
void |
reset()
Reset this delegate domain releasing any resources cached to support
delegated behaviour for the associated package.
|
String |
toString() |
public OCLDelegateDomain(String delegateURI, EPackage ePackage)
delegateURI
- the delegate namespace I handleePackage
- the package that I handleParserException
- if the operation's OCL body expression is invalidpublic static <T> T getDelegateResourceSetRegistry(EModelElement modelElement, Class<T> registryClass, T defaultRegistry)
public static void initialize(ResourceSet resourceSet)
public static void initialize(ResourceSet resourceSet, String oclDelegateURI)
public static void initializePivotOnlyDiagnosticianContext(Map<Object,Object> context)
public static void initializePivotOnlyDiagnosticianResourceSet(ResourceSet resourceSet)
public static void lazyInitializeLocals(ResourceSet resourceSet, String oclDelegateURI, boolean forceInitialization, OCLDelegateDomain.FactoryFactory delegateFactoryFactory)
public static void lazyInitializeGlobals(String oclDelegateURI, boolean forceInitialization)
public void environmentFactoryDisposed(EnvironmentFactory environmentFactory)
GlobalEnvironmentFactory.Listener
environmentFactoryDisposed
in interface GlobalEnvironmentFactory.Listener
public final MetamodelManager getMetamodelManager()
public OCL getOCL()
public final String getURI()
DelegateDomain
getURI
in interface DelegateDomain
public void reset()
DelegateDomain
reset
in interface DelegateDomain
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.