public class OCLDelegateDomain extends java.lang.Object implements DelegateDomain, GlobalEnvironmentFactory.Listener
Modifier and Type | Class and Description |
---|---|
static class |
OCLDelegateDomain.FactoryFactory |
protected static class |
OCLDelegateDomain.PivotOnlyRegistry |
protected static class |
OCLDelegateDomain.PivotOnlyVirtualDelegateMapping |
DelegateDomain.Factory
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.emf.ecore.EPackage |
ePackage |
protected OCL |
ocl |
protected java.lang.String |
uri |
EMPTY_LIST
Constructor and Description |
---|
OCLDelegateDomain(java.lang.String delegateURI,
org.eclipse.emf.ecore.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(org.eclipse.emf.ecore.EModelElement modelElement,
java.lang.Class<T> registryClass,
T defaultRegistry) |
MetamodelManager |
getMetamodelManager() |
OCL |
getOCL() |
<T extends Element> |
getPivot(java.lang.Class<T> requiredClass,
org.eclipse.emf.ecore.EObject eObject) |
java.lang.String |
getURI()
Get the delegate domain name.
|
static void |
initialize(org.eclipse.emf.ecore.resource.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(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
java.lang.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(java.util.Map<java.lang.Object,java.lang.Object> context) |
static void |
initializePivotOnlyDiagnosticianResourceSet(org.eclipse.emf.ecore.resource.ResourceSet resourceSet) |
static void |
lazyInitializeGlobals(java.lang.String oclDelegateURI,
boolean forceInitialization)
Initialize any currently uninitialized global delegate registries to support the oclDelegateURI.
|
static void |
lazyInitializeLocals(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
java.lang.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.
|
java.lang.String |
toString() |
@NonNull protected final java.lang.String uri
@NonNull protected final org.eclipse.emf.ecore.EPackage ePackage
protected OCL ocl
public OCLDelegateDomain(@NonNull java.lang.String delegateURI, @NonNull org.eclipse.emf.ecore.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(org.eclipse.emf.ecore.EModelElement modelElement, @NonNull java.lang.Class<T> registryClass, T defaultRegistry)
public static void initialize(@Nullable org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
public static void initialize(@Nullable org.eclipse.emf.ecore.resource.ResourceSet resourceSet, @NonNull java.lang.String oclDelegateURI)
public static void initializePivotOnlyDiagnosticianContext(@NonNull java.util.Map<java.lang.Object,java.lang.Object> context)
public static void initializePivotOnlyDiagnosticianResourceSet(@NonNull org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
public static void lazyInitializeLocals(@NonNull org.eclipse.emf.ecore.resource.ResourceSet resourceSet, @NonNull java.lang.String oclDelegateURI, boolean forceInitialization, @Nullable OCLDelegateDomain.FactoryFactory delegateFactoryFactory)
public static void lazyInitializeGlobals(@NonNull java.lang.String oclDelegateURI, boolean forceInitialization)
public void environmentFactoryDisposed(@NonNull EnvironmentFactory environmentFactory)
GlobalEnvironmentFactory.Listener
environmentFactoryDisposed
in interface GlobalEnvironmentFactory.Listener
@NonNull public final MetamodelManager getMetamodelManager()
@NonNull public OCL getOCL()
@Nullable public <T extends Element> T getPivot(@NonNull java.lang.Class<T> requiredClass, @NonNull org.eclipse.emf.ecore.EObject eObject)
@NonNull public final java.lang.String getURI()
DelegateDomain
getURI
in interface DelegateDomain
public void reset()
DelegateDomain
reset
in interface DelegateDomain
public java.lang.String toString()
toString
in class java.lang.Object