org.eclipse.ocl.examples.pivot.delegate
Class DelegateInstaller

java.lang.Object
  extended by org.eclipse.ocl.examples.pivot.delegate.DelegateInstaller

public class DelegateInstaller
extends java.lang.Object


Field Summary
protected  java.lang.String exportDelegateURI
           
protected  MetaModelManager metaModelManager
           
 
Constructor Summary
DelegateInstaller(MetaModelManager metaModelManager, java.lang.String exportDelegateURI)
           
 
Method Summary
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)
           
 boolean installDelegate(org.eclipse.emf.ecore.EModelElement eModelElement, Constraint pivotConstraint, org.eclipse.emf.common.util.URI ecoreURI)
           
 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)
           
 boolean installPropertyDelegate(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, OpaqueExpression defaultExpression, org.eclipse.emf.common.util.URI ecoreURI)
           
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

metaModelManager

@NonNull
protected final MetaModelManager metaModelManager

exportDelegateURI

protected final java.lang.String exportDelegateURI
Constructor Detail

DelegateInstaller

public DelegateInstaller(@NonNull
                         MetaModelManager metaModelManager,
                         @Nullable
                         java.lang.String exportDelegateURI)
Method Detail

getDelegateURI

@Nullable
public static java.lang.String getDelegateURI(@NonNull
                                                       java.util.List<org.eclipse.emf.ecore.EObject> contents)

getDelegateURI

@Nullable
public static java.lang.String getDelegateURI(@NonNull
                                                       org.eclipse.emf.ecore.EPackage ePackage)

needsDelegates

public static boolean needsDelegates(@NonNull
                                     org.eclipse.emf.ecore.EPackage ePackage)

installDelegates

public void installDelegates(@NonNull
                             PackageServer packageServer)
Install all Constraints from pivotPackage and its nestedPackages as OCL Delegates.

Parameters:
metaModelManager -
pivotPackage -

installDelegate

public boolean installDelegate(@NonNull
                               org.eclipse.emf.ecore.EModelElement eModelElement,
                               @NonNull
                               Constraint pivotConstraint,
                               @Nullable
                               org.eclipse.emf.common.util.URI ecoreURI)

installDelegate

public void installDelegate(@NonNull
                            org.eclipse.emf.ecore.EOperation eOperation)

installDelegate

public void installDelegate(@NonNull
                            org.eclipse.emf.ecore.EStructuralFeature eFeature)

installDelegates

public void installDelegates(@NonNull
                             org.eclipse.emf.ecore.EClassifier eClassifier,
                             @NonNull
                             Type pivotType)

installDelegates

public void installDelegates(@NonNull
                             org.eclipse.emf.ecore.EPackage ePackage)

installOperationDelegate

public boolean installOperationDelegate(@NonNull
                                        org.eclipse.emf.ecore.EOperation eOperation,
                                        @NonNull
                                        OpaqueExpression bodyExpression,
                                        @Nullable
                                        org.eclipse.emf.common.util.URI ecoreURI)

installPropertyDelegate

public boolean installPropertyDelegate(@NonNull
                                       org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature,
                                       @NonNull
                                       OpaqueExpression defaultExpression,
                                       @Nullable
                                       org.eclipse.emf.common.util.URI ecoreURI)

removeDelegateAnnotations

protected org.eclipse.emf.ecore.EAnnotation removeDelegateAnnotations(@NonNull
                                                                      org.eclipse.emf.ecore.EModelElement eModelElement,
                                                                      @Nullable
                                                                      java.lang.String exportDelegateURI)
Remove all OCL Delegate annotations except that corresponding to exportDelegateURI which is returned.