org.eclipse.ocl.examples.pivot.ecore
Class Ecore2PivotDeclarationSwitch
java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
org.eclipse.emf.ecore.util.EcoreSwitch<java.lang.Object>
org.eclipse.ocl.examples.pivot.ecore.Ecore2PivotDeclarationSwitch
public class Ecore2PivotDeclarationSwitch
- extends org.eclipse.emf.ecore.util.EcoreSwitch<java.lang.Object>
Fields inherited from class org.eclipse.emf.ecore.util.EcoreSwitch |
modelPackage |
Method Summary |
java.lang.Object |
caseEAnnotation(org.eclipse.emf.ecore.EAnnotation eObject)
|
java.lang.Object |
caseEAttribute(org.eclipse.emf.ecore.EAttribute eObject)
|
java.lang.Object |
caseEClass(org.eclipse.emf.ecore.EClass eObject)
|
java.lang.Object |
caseEDataType(org.eclipse.emf.ecore.EDataType eObject)
|
java.lang.Object |
caseEEnum(org.eclipse.emf.ecore.EEnum eObject)
|
java.lang.Object |
caseEEnumLiteral(org.eclipse.emf.ecore.EEnumLiteral eEnumLiteral)
|
java.lang.Object |
caseEGenericType(org.eclipse.emf.ecore.EGenericType eObject)
|
java.lang.Object |
caseEOperation(org.eclipse.emf.ecore.EOperation eObject)
|
java.lang.Object |
caseEPackage(org.eclipse.emf.ecore.EPackage eObject)
|
java.lang.Object |
caseEParameter(org.eclipse.emf.ecore.EParameter eObject)
|
java.lang.Object |
caseEReference(org.eclipse.emf.ecore.EReference eObject)
|
java.lang.Object |
caseETypeParameter(org.eclipse.emf.ecore.ETypeParameter eObject)
|
protected Constraint |
convertEOperation2Constraint(org.eclipse.emf.ecore.EOperation eOperation)
|
protected Operation |
convertEOperation2Operation(org.eclipse.emf.ecore.EOperation eOperation)
|
protected java.util.List<org.eclipse.emf.ecore.EAnnotation> |
convertEOperationEAnnotations(Operation pivotElement,
org.eclipse.emf.ecore.EOperation eOperation)
|
protected void |
copyAnnotatedElement(NamedElement pivotElement,
org.eclipse.emf.ecore.EModelElement eModelElement,
java.util.List<org.eclipse.emf.ecore.EAnnotation> excludedAnnotations)
Convert all eModelElement EAnnotations to pivotElement Annotations except specifically excludedAnnotations. |
protected void |
copyAnnotationComment(Constraint pivotElement,
org.eclipse.emf.ecore.EAnnotation eModelElement,
java.lang.String key)
Convert all eModelElement EAnnotations to pivotElement Annotations except specifically excludedAnnotations. |
protected void |
copyClassifier(Class pivotElement,
org.eclipse.emf.ecore.EClassifier eClassifier,
java.util.List<org.eclipse.emf.ecore.EAnnotation> excludedAnnotations)
|
protected void |
copyDataTypeOrEnum(DataType pivotElement,
org.eclipse.emf.ecore.EDataType eDataType)
|
protected void |
copyNamedElement(NamedElement pivotElement,
org.eclipse.emf.ecore.ENamedElement eNamedElement)
|
protected void |
copyStructuralFeature(Property pivotElement,
org.eclipse.emf.ecore.EStructuralFeature eObject,
java.util.List<org.eclipse.emf.ecore.EAnnotation> excludedAnnotations)
|
protected void |
copyTemplateSignature(TemplateableElement pivotElement,
java.util.List<org.eclipse.emf.ecore.ETypeParameter> eTypeParameters)
|
protected void |
copyTypedMultiplicityElement(TypedMultiplicityElement pivotElement,
org.eclipse.emf.ecore.ETypedElement eTypedElement,
java.util.List<org.eclipse.emf.ecore.EAnnotation> excludedAnnotations)
|
Element |
defaultCase(org.eclipse.emf.ecore.EObject object)
|
java.lang.Object |
doInPackageSwitch(org.eclipse.emf.ecore.EObject eObject)
|
|
doSwitchAll(java.util.List<? extends org.eclipse.emf.ecore.EObject> eObjects)
|
|
doSwitchAll(java.util.List<T> pivotObjects,
java.util.List<? extends org.eclipse.emf.ecore.EObject> eObjects)
|
static boolean |
hasDocumentationKey(java.lang.String source,
org.eclipse.emf.common.util.EMap<java.lang.String,java.lang.String> details)
|
static boolean |
hasImportKey(java.lang.String source,
org.eclipse.emf.common.util.EMap<java.lang.String,java.lang.String> details)
|
static boolean |
isDocumentationKey(java.lang.String source,
java.lang.String key)
|
protected java.util.List<org.eclipse.emf.ecore.EAnnotation> |
refreshTypeConstraints(Class pivotElement,
org.eclipse.emf.ecore.EClassifier eClassifier,
java.util.List<org.eclipse.emf.ecore.EAnnotation> excludedAnnotations)
|
Methods inherited from class org.eclipse.emf.ecore.util.EcoreSwitch |
caseEClassifier, caseEFactory, caseEModelElement, caseENamedElement, caseEStringToStringMapEntry, caseEStructuralFeature, caseETypedElement, doSwitch, isSwitchFor |
Methods inherited from class org.eclipse.emf.ecore.util.Switch |
doSwitch, doSwitch |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
converter
protected final AbstractEcore2Pivot converter
metaModelManager
protected final MetaModelManager metaModelManager
Ecore2PivotDeclarationSwitch
public Ecore2PivotDeclarationSwitch(AbstractEcore2Pivot converter)
hasDocumentationKey
public static boolean hasDocumentationKey(@Nullable
java.lang.String source,
@NonNull
org.eclipse.emf.common.util.EMap<java.lang.String,java.lang.String> details)
hasImportKey
public static boolean hasImportKey(@Nullable
java.lang.String source,
@NonNull
org.eclipse.emf.common.util.EMap<java.lang.String,java.lang.String> details)
isDocumentationKey
public static boolean isDocumentationKey(@Nullable
java.lang.String source,
@Nullable
java.lang.String key)
caseEAnnotation
public java.lang.Object caseEAnnotation(org.eclipse.emf.ecore.EAnnotation eObject)
- Overrides:
caseEAnnotation
in class org.eclipse.emf.ecore.util.EcoreSwitch<java.lang.Object>
caseEAttribute
public java.lang.Object caseEAttribute(org.eclipse.emf.ecore.EAttribute eObject)
- Overrides:
caseEAttribute
in class org.eclipse.emf.ecore.util.EcoreSwitch<java.lang.Object>
caseEClass
public java.lang.Object caseEClass(org.eclipse.emf.ecore.EClass eObject)
- Overrides:
caseEClass
in class org.eclipse.emf.ecore.util.EcoreSwitch<java.lang.Object>
caseEDataType
public java.lang.Object caseEDataType(org.eclipse.emf.ecore.EDataType eObject)
- Overrides:
caseEDataType
in class org.eclipse.emf.ecore.util.EcoreSwitch<java.lang.Object>
caseEEnum
public java.lang.Object caseEEnum(org.eclipse.emf.ecore.EEnum eObject)
- Overrides:
caseEEnum
in class org.eclipse.emf.ecore.util.EcoreSwitch<java.lang.Object>
caseEEnumLiteral
public java.lang.Object caseEEnumLiteral(org.eclipse.emf.ecore.EEnumLiteral eEnumLiteral)
- Overrides:
caseEEnumLiteral
in class org.eclipse.emf.ecore.util.EcoreSwitch<java.lang.Object>
caseEGenericType
public java.lang.Object caseEGenericType(org.eclipse.emf.ecore.EGenericType eObject)
- Overrides:
caseEGenericType
in class org.eclipse.emf.ecore.util.EcoreSwitch<java.lang.Object>
caseEOperation
public java.lang.Object caseEOperation(org.eclipse.emf.ecore.EOperation eObject)
- Overrides:
caseEOperation
in class org.eclipse.emf.ecore.util.EcoreSwitch<java.lang.Object>
caseEPackage
public java.lang.Object caseEPackage(org.eclipse.emf.ecore.EPackage eObject)
- Overrides:
caseEPackage
in class org.eclipse.emf.ecore.util.EcoreSwitch<java.lang.Object>
caseEParameter
public java.lang.Object caseEParameter(org.eclipse.emf.ecore.EParameter eObject)
- Overrides:
caseEParameter
in class org.eclipse.emf.ecore.util.EcoreSwitch<java.lang.Object>
caseEReference
public java.lang.Object caseEReference(org.eclipse.emf.ecore.EReference eObject)
- Overrides:
caseEReference
in class org.eclipse.emf.ecore.util.EcoreSwitch<java.lang.Object>
caseETypeParameter
public java.lang.Object caseETypeParameter(org.eclipse.emf.ecore.ETypeParameter eObject)
- Overrides:
caseETypeParameter
in class org.eclipse.emf.ecore.util.EcoreSwitch<java.lang.Object>
convertEOperation2Constraint
@NonNull
protected Constraint convertEOperation2Constraint(@NonNull
org.eclipse.emf.ecore.EOperation eOperation)
convertEOperation2Operation
@NonNull
protected Operation convertEOperation2Operation(@NonNull
org.eclipse.emf.ecore.EOperation eOperation)
convertEOperationEAnnotations
@Nullable
protected java.util.List<org.eclipse.emf.ecore.EAnnotation> convertEOperationEAnnotations(@NonNull
Operation pivotElement,
@NonNull
org.eclipse.emf.ecore.EOperation eOperation)
copyClassifier
protected void copyClassifier(@NonNull
Class pivotElement,
@NonNull
org.eclipse.emf.ecore.EClassifier eClassifier,
@Nullable
java.util.List<org.eclipse.emf.ecore.EAnnotation> excludedAnnotations)
copyDataTypeOrEnum
protected void copyDataTypeOrEnum(@NonNull
DataType pivotElement,
@NonNull
org.eclipse.emf.ecore.EDataType eDataType)
copyTemplateSignature
protected void copyTemplateSignature(@NonNull
TemplateableElement pivotElement,
@NonNull
java.util.List<org.eclipse.emf.ecore.ETypeParameter> eTypeParameters)
copyAnnotatedElement
protected void copyAnnotatedElement(@NonNull
NamedElement pivotElement,
@NonNull
org.eclipse.emf.ecore.EModelElement eModelElement,
java.util.List<org.eclipse.emf.ecore.EAnnotation> excludedAnnotations)
- Convert all eModelElement EAnnotations to pivotElement Annotations except specifically excludedAnnotations.
Documentation EAnnotations are converted to Comments rather than Annotations.
Import EAnnotations are excluded here and processed at the root.
copyAnnotationComment
protected void copyAnnotationComment(@NonNull
Constraint pivotElement,
@NonNull
org.eclipse.emf.ecore.EAnnotation eModelElement,
@NonNull
java.lang.String key)
- Convert all eModelElement EAnnotations to pivotElement Annotations except specifically excludedAnnotations.
Documentation EAnnotations are converted to Comments rather than Annotations.
Import EAnnotations are excluded here and processed at the root.
copyNamedElement
protected void copyNamedElement(@NonNull
NamedElement pivotElement,
@NonNull
org.eclipse.emf.ecore.ENamedElement eNamedElement)
copyStructuralFeature
protected void copyStructuralFeature(@NonNull
Property pivotElement,
@NonNull
org.eclipse.emf.ecore.EStructuralFeature eObject,
java.util.List<org.eclipse.emf.ecore.EAnnotation> excludedAnnotations)
copyTypedMultiplicityElement
protected void copyTypedMultiplicityElement(@NonNull
TypedMultiplicityElement pivotElement,
@NonNull
org.eclipse.emf.ecore.ETypedElement eTypedElement,
java.util.List<org.eclipse.emf.ecore.EAnnotation> excludedAnnotations)
defaultCase
public Element defaultCase(org.eclipse.emf.ecore.EObject object)
- Overrides:
defaultCase
in class org.eclipse.emf.ecore.util.EcoreSwitch<java.lang.Object>
doInPackageSwitch
public java.lang.Object doInPackageSwitch(org.eclipse.emf.ecore.EObject eObject)
doSwitchAll
public <T extends Element> void doSwitchAll(java.util.List<T> pivotObjects,
java.util.List<? extends org.eclipse.emf.ecore.EObject> eObjects)
doSwitchAll
public <T extends Element> void doSwitchAll(java.util.List<? extends org.eclipse.emf.ecore.EObject> eObjects)
refreshTypeConstraints
protected java.util.List<org.eclipse.emf.ecore.EAnnotation> refreshTypeConstraints(@NonNull
Class pivotElement,
@NonNull
org.eclipse.emf.ecore.EClassifier eClassifier,
@Nullable
java.util.List<org.eclipse.emf.ecore.EAnnotation> excludedAnnotations)