|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ocl.examples.pivot.delegate.DelegateInstaller
public class DelegateInstaller
| Field Summary | |
|---|---|
protected java.lang.String |
exportDelegateURI
|
protected MetaModelManager |
metaModelManager
|
static java.lang.String |
OPTION_BOOLEAN_INVARIANTS
True to apply result = () wrapper to invariant body. |
static java.lang.String |
OPTION_OMIT_SETTING_DELEGATES
True to omit the setting delegates declaration. |
protected java.util.Map<java.lang.String,java.lang.Object> |
options
|
| Constructor Summary | |
|---|---|
DelegateInstaller(MetaModelManager metaModelManager,
java.util.Map<java.lang.String,java.lang.Object> options)
|
|
| Method Summary | |
|---|---|
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()
|
static java.lang.String |
getExportDelegateURI(java.util.Map<java.lang.String,java.lang.Object> options)
|
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 |
isBooleanInvariants(java.util.Map<java.lang.String,java.lang.Object> options)
|
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 |
|---|
@NonNull public static final java.lang.String OPTION_BOOLEAN_INVARIANTS
@NonNull public static final java.lang.String OPTION_OMIT_SETTING_DELEGATES
@NonNull protected final MetaModelManager metaModelManager
@NonNull protected final java.util.Map<java.lang.String,java.lang.Object> options
@Nullable protected final java.lang.String exportDelegateURI
| Constructor Detail |
|---|
public DelegateInstaller(@NonNull
MetaModelManager metaModelManager,
@Nullable
java.util.Map<java.lang.String,java.lang.Object> options)
| Method Detail |
|---|
@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)
@Nullable
public static java.lang.String getExportDelegateURI(@NonNull
java.util.Map<java.lang.String,java.lang.Object> options)
public static boolean isBooleanInvariants(@NonNull
java.util.Map<java.lang.String,java.lang.Object> options)
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||