protected class OCLinEcoreGenModelGeneratorAdapter.OCLinEcoreStateAdapter
extends java.lang.Object
implements org.eclipse.emf.common.notify.Adapter
Modifier and Type | Class and Description |
---|---|
protected class |
OCLinEcoreGenModelGeneratorAdapter.OCLinEcoreStateAdapter.AddEAnnotation |
protected class |
OCLinEcoreGenModelGeneratorAdapter.OCLinEcoreStateAdapter.AddEOperation |
protected class |
OCLinEcoreGenModelGeneratorAdapter.OCLinEcoreStateAdapter.AddModelPluginVariable |
protected class |
OCLinEcoreGenModelGeneratorAdapter.OCLinEcoreStateAdapter.RemoveEAnnotation |
protected class |
OCLinEcoreGenModelGeneratorAdapter.OCLinEcoreStateAdapter.SetEAnnotationDetail |
protected class |
OCLinEcoreGenModelGeneratorAdapter.OCLinEcoreStateAdapter.SetInvocationDelegates |
protected class |
OCLinEcoreGenModelGeneratorAdapter.OCLinEcoreStateAdapter.SetSettingDelegates |
protected class |
OCLinEcoreGenModelGeneratorAdapter.OCLinEcoreStateAdapter.SetValidationDelegates |
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.emf.codegen.ecore.genmodel.GenModel |
genModel |
protected OCLInternal |
ocl |
Modifier and Type | Method and Description |
---|---|
protected void |
addEAnnotationDetail(org.eclipse.emf.ecore.EModelElement eModelElement,
java.lang.String sourceURI,
java.lang.String detailName,
java.lang.String value) |
protected void |
addEOperation(org.eclipse.emf.ecore.EClass eClass,
org.eclipse.emf.ecore.EOperation eOperation) |
protected void |
addModelPluginVariable(java.lang.String modelPluginVariable) |
protected void |
convertConstraintsToOperations(MetamodelManagerInternal metamodelManager) |
protected void |
convertConstraintToOperation(Ecore2AS ecore2as,
org.eclipse.emf.codegen.ecore.genmodel.GenModel genModel,
org.eclipse.emf.ecore.EClass eClass,
java.lang.String key,
java.lang.String body,
java.lang.String message) |
java.util.Map<java.lang.String,java.lang.String> |
createFeatureBodies(org.eclipse.emf.codegen.ecore.genmodel.GenModel genModel)
Create a Map of feature identification to body to be embedded in the EMF model.
|
void |
dispose() |
java.util.Map<org.eclipse.emf.codegen.ecore.genmodel.GenPackage,java.lang.String> |
getConstantTexts() |
protected OCLinEcoreGenModelGeneratorAdapter |
getGenModelGeneratorAdapter() |
MetamodelManagerInternal |
getMetamodelManager() |
org.eclipse.emf.codegen.ecore.genmodel.GenModel |
getTarget() |
protected void |
installJavaBodies(MetamodelManagerInternal metamodelManager,
org.eclipse.emf.codegen.ecore.genmodel.GenModel genModel,
java.util.Map<java.lang.String,java.lang.String> results) |
protected void |
installOperation(Ecore2AS ecore2as,
org.eclipse.emf.ecore.EOperation eOperation,
java.util.Map<java.lang.String,java.lang.String> results) |
protected void |
installProperty(Ecore2AS ecore2as,
org.eclipse.emf.ecore.EStructuralFeature eFeature,
java.util.Map<java.lang.String,java.lang.String> results) |
boolean |
isAdapterForType(java.lang.Object type) |
void |
notifyChanged(org.eclipse.emf.common.notify.Notification notification) |
protected void |
pruneDelegates(org.eclipse.emf.codegen.ecore.genmodel.GenModel genModel)
Eliminate all OCL validation/setting/invocation delegates.
|
protected java.util.List<java.lang.String> |
pruneDelegates(java.util.List<java.lang.String> oldDelegates) |
protected void |
removeEAnnotation(org.eclipse.emf.ecore.EAnnotation oclAnnotation) |
protected void |
removeEAnnotationDetail(org.eclipse.emf.ecore.EAnnotation eAnnotation,
java.lang.String detailName) |
void |
setTarget(org.eclipse.emf.common.notify.Notifier newTarget) |
@NonNull protected final OCLInternal ocl
@NonNull protected final org.eclipse.emf.codegen.ecore.genmodel.GenModel genModel
protected void addEAnnotationDetail(@NonNull org.eclipse.emf.ecore.EModelElement eModelElement, java.lang.String sourceURI, @NonNull java.lang.String detailName, @NonNull java.lang.String value)
protected void addEOperation(@NonNull org.eclipse.emf.ecore.EClass eClass, @NonNull org.eclipse.emf.ecore.EOperation eOperation)
protected void addModelPluginVariable(@NonNull java.lang.String modelPluginVariable)
protected void convertConstraintToOperation(@NonNull Ecore2AS ecore2as, @NonNull org.eclipse.emf.codegen.ecore.genmodel.GenModel genModel, @NonNull org.eclipse.emf.ecore.EClass eClass, @NonNull java.lang.String key, @NonNull java.lang.String body, @Nullable java.lang.String message)
protected void convertConstraintsToOperations(@NonNull MetamodelManagerInternal metamodelManager)
@NonNull public java.util.Map<java.lang.String,java.lang.String> createFeatureBodies(@NonNull org.eclipse.emf.codegen.ecore.genmodel.GenModel genModel) throws java.io.IOException
java.io.IOException
public void dispose()
@NonNull public java.util.Map<org.eclipse.emf.codegen.ecore.genmodel.GenPackage,java.lang.String> getConstantTexts()
@NonNull protected OCLinEcoreGenModelGeneratorAdapter getGenModelGeneratorAdapter()
@NonNull public MetamodelManagerInternal getMetamodelManager()
@NonNull public org.eclipse.emf.codegen.ecore.genmodel.GenModel getTarget()
getTarget
in interface org.eclipse.emf.common.notify.Adapter
protected void installJavaBodies(@NonNull MetamodelManagerInternal metamodelManager, @NonNull org.eclipse.emf.codegen.ecore.genmodel.GenModel genModel, @NonNull java.util.Map<java.lang.String,java.lang.String> results)
protected void installOperation(@NonNull Ecore2AS ecore2as, @NonNull org.eclipse.emf.ecore.EOperation eOperation, @NonNull java.util.Map<java.lang.String,java.lang.String> results)
protected void installProperty(@NonNull Ecore2AS ecore2as, @NonNull org.eclipse.emf.ecore.EStructuralFeature eFeature, @NonNull java.util.Map<java.lang.String,java.lang.String> results)
protected void pruneDelegates(@NonNull org.eclipse.emf.codegen.ecore.genmodel.GenModel genModel)
@NonNull protected java.util.List<java.lang.String> pruneDelegates(@Nullable java.util.List<java.lang.String> oldDelegates)
protected void removeEAnnotation(@Nullable org.eclipse.emf.ecore.EAnnotation oclAnnotation)
protected void removeEAnnotationDetail(@NonNull org.eclipse.emf.ecore.EAnnotation eAnnotation, @NonNull java.lang.String detailName)
public boolean isAdapterForType(java.lang.Object type)
isAdapterForType
in interface org.eclipse.emf.common.notify.Adapter
public void notifyChanged(org.eclipse.emf.common.notify.Notification notification)
notifyChanged
in interface org.eclipse.emf.common.notify.Adapter
public void setTarget(org.eclipse.emf.common.notify.Notifier newTarget)
setTarget
in interface org.eclipse.emf.common.notify.Adapter