public class DelegateInstaller
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
exportDelegateURI |
protected MetaModelManager |
metaModelManager |
| Constructor and Description |
|---|
DelegateInstaller(MetaModelManager metaModelManager,
java.lang.String exportDelegateURI) |
| Modifier and Type | Method and Description |
|---|---|
protected org.eclipse.emf.ecore.EAnnotation |
createAnnotation(org.eclipse.emf.ecore.EModelElement eModelElement) |
org.eclipse.emf.ecore.EAnnotation |
createConstraintDelegate(org.eclipse.emf.ecore.EModelElement eModelElement,
Constraint pivotConstraint,
org.eclipse.emf.common.util.URI ecoreURI) |
protected java.lang.String |
createExpression(OCLExpression bodyExpression,
org.eclipse.emf.common.util.URI ecoreURI) |
protected java.lang.String |
createExpression(OpaqueExpression bodyExpression,
org.eclipse.emf.common.util.URI ecoreURI) |
org.eclipse.emf.ecore.EAnnotation |
createOperationDelegate(org.eclipse.emf.ecore.EOperation eOperation,
OpaqueExpression bodyExpression,
org.eclipse.emf.common.util.URI ecoreURI) |
org.eclipse.emf.ecore.EAnnotation |
createPropertyDelegate(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature,
OpaqueExpression defaultExpression,
org.eclipse.emf.common.util.URI ecoreURI) |
static java.lang.String |
getAnnotationKey(Constraint pivotConstraint) |
static java.lang.String |
getDelegateURI(org.eclipse.emf.ecore.EPackage ePackage) |
static java.lang.String |
getDelegateURI(java.util.List<org.eclipse.emf.ecore.EObject> contents) |
java.lang.String |
getExportDelegateURI() |
MetaModelManager |
getMetaModelManager() |
boolean |
installDelegate(org.eclipse.emf.ecore.EModelElement eModelElement,
Constraint pivotConstraint,
org.eclipse.emf.common.util.URI ecoreURI)
Deprecated.
|
void |
installDelegate(org.eclipse.emf.ecore.EOperation eOperation) |
void |
installDelegate(org.eclipse.emf.ecore.EStructuralFeature eFeature) |
void |
installDelegates(org.eclipse.emf.ecore.EClassifier eClassifier,
Type pivotType) |
void |
installDelegates(org.eclipse.emf.ecore.EPackage ePackage) |
void |
installDelegates(PackageServer packageServer)
Install all Constraints from pivotPackage and its nestedPackages as OCL Delegates.
|
boolean |
installOperationDelegate(org.eclipse.emf.ecore.EOperation eOperation,
OpaqueExpression bodyExpression,
org.eclipse.emf.common.util.URI ecoreURI)
Deprecated.
|
boolean |
installPropertyDelegate(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature,
OpaqueExpression defaultExpression,
org.eclipse.emf.common.util.URI ecoreURI)
Deprecated.
|
static boolean |
needsDelegates(org.eclipse.emf.ecore.EPackage ePackage) |
protected org.eclipse.emf.ecore.EAnnotation |
removeDelegateAnnotations(org.eclipse.emf.ecore.EModelElement eModelElement,
java.lang.String exportDelegateURI)
Remove all OCL Delegate annotations except that corresponding to exportDelegateURI which is returned.
|
@NonNull protected final MetaModelManager metaModelManager
@Nullable protected final java.lang.String exportDelegateURI
public DelegateInstaller(@NonNull
MetaModelManager metaModelManager,
@Nullable
java.lang.String exportDelegateURI)
@Nullable
public static java.lang.String getAnnotationKey(@NonNull
Constraint pivotConstraint)
@Nullable
public static java.lang.String getDelegateURI(@NonNull
java.util.List<org.eclipse.emf.ecore.EObject> contents)
@Nullable
public static java.lang.String getDelegateURI(@NonNull
org.eclipse.emf.ecore.EPackage ePackage)
public static boolean needsDelegates(@NonNull
org.eclipse.emf.ecore.EPackage ePackage)
@NonNull
protected org.eclipse.emf.ecore.EAnnotation createAnnotation(@NonNull
org.eclipse.emf.ecore.EModelElement eModelElement)
@Nullable
public org.eclipse.emf.ecore.EAnnotation createConstraintDelegate(@NonNull
org.eclipse.emf.ecore.EModelElement eModelElement,
@NonNull
Constraint pivotConstraint,
@Nullable
org.eclipse.emf.common.util.URI ecoreURI)
@Nullable
protected java.lang.String createExpression(@NonNull
OpaqueExpression bodyExpression,
@Nullable
org.eclipse.emf.common.util.URI ecoreURI)
@Nullable
protected java.lang.String createExpression(@NonNull
OCLExpression bodyExpression,
@Nullable
org.eclipse.emf.common.util.URI ecoreURI)
@Nullable
public org.eclipse.emf.ecore.EAnnotation createOperationDelegate(@NonNull
org.eclipse.emf.ecore.EOperation eOperation,
@NonNull
OpaqueExpression bodyExpression,
@Nullable
org.eclipse.emf.common.util.URI ecoreURI)
@Nullable
public org.eclipse.emf.ecore.EAnnotation createPropertyDelegate(@NonNull
org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature,
@NonNull
OpaqueExpression defaultExpression,
@Nullable
org.eclipse.emf.common.util.URI ecoreURI)
@Nullable public java.lang.String getExportDelegateURI()
@NonNull public MetaModelManager getMetaModelManager()
public void installDelegates(@NonNull
PackageServer packageServer)
metaModelManager - pivotPackage - @Deprecated
public boolean installDelegate(@NonNull
org.eclipse.emf.ecore.EModelElement eModelElement,
@NonNull
Constraint pivotConstraint,
@Nullable
org.eclipse.emf.common.util.URI ecoreURI)
public void installDelegate(@NonNull
org.eclipse.emf.ecore.EOperation eOperation)
public void installDelegate(@NonNull
org.eclipse.emf.ecore.EStructuralFeature eFeature)
public void installDelegates(@NonNull
org.eclipse.emf.ecore.EClassifier eClassifier,
@NonNull
Type pivotType)
public void installDelegates(@NonNull
org.eclipse.emf.ecore.EPackage ePackage)
@Deprecated
public boolean installOperationDelegate(@NonNull
org.eclipse.emf.ecore.EOperation eOperation,
@NonNull
OpaqueExpression bodyExpression,
@Nullable
org.eclipse.emf.common.util.URI ecoreURI)
@Deprecated
public boolean installPropertyDelegate(@NonNull
org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature,
@NonNull
OpaqueExpression defaultExpression,
@Nullable
org.eclipse.emf.common.util.URI ecoreURI)
@Nullable
protected org.eclipse.emf.ecore.EAnnotation removeDelegateAnnotations(@NonNull
org.eclipse.emf.ecore.EModelElement eModelElement,
@Nullable
java.lang.String exportDelegateURI)