org.eclipse.ocl.examples.xtext.completeocl.pivot2cs
Class CompleteOCLSplitter.Separator

java.lang.Object
  extended by org.eclipse.emf.ecore.util.Switch<T1>
      extended by org.eclipse.ocl.examples.pivot.util.PivotSwitch<org.eclipse.emf.ecore.EObject>
          extended by org.eclipse.ocl.examples.xtext.completeocl.pivot2cs.CompleteOCLSplitter.Separator
Enclosing class:
CompleteOCLSplitter

public static class CompleteOCLSplitter.Separator
extends PivotSwitch<org.eclipse.emf.ecore.EObject>


Field Summary
protected  MetaModelManager metaModelManager
           
protected  org.eclipse.emf.ecore.resource.Resource separateResource
           
 
Fields inherited from class org.eclipse.ocl.examples.pivot.util.PivotSwitch
modelPackage
 
Constructor Summary
CompleteOCLSplitter.Separator(MetaModelManager metaModelManager, org.eclipse.emf.ecore.resource.Resource separateResource)
           
 
Method Summary
 org.eclipse.emf.ecore.EObject caseConstraint(Constraint object)
          Returns the result of interpreting the object as an instance of 'Constraint'.
 org.eclipse.emf.ecore.EObject caseOpaqueExpression(OpaqueExpression object)
          Returns the result of interpreting the object as an instance of 'Opaque Expression'.
 org.eclipse.emf.ecore.EObject caseOperation(Operation object)
          Returns the result of interpreting the object as an instance of 'Operation'.
 org.eclipse.emf.ecore.EObject casePackage(Package object)
          Returns the result of interpreting the object as an instance of 'Package'.
 org.eclipse.emf.ecore.EObject caseProperty(Property object)
          Returns the result of interpreting the object as an instance of 'Property'.
 org.eclipse.emf.ecore.EObject caseRoot(Root object)
          Returns the result of interpreting the object as an instance of 'Root'.
 org.eclipse.emf.ecore.EObject caseType(Type object)
          Returns the result of interpreting the object as an instance of 'Type'.
protected
<T extends NamedElement>
T
cloneNamedElement(java.util.List<T> separateSiblings, T object)
           
 NamedElement getElementByName(java.lang.Iterable<? extends org.eclipse.emf.ecore.EObject> elements, java.lang.String name)
           
protected
<T extends NamedElement>
T
getSeparate(T element)
           
protected  Package getSeparatePackage(Package element)
           
 
Methods inherited from class org.eclipse.ocl.examples.pivot.util.PivotSwitch
caseAnnotation, caseAnyType, caseAssociationClass, caseAssociationClassCallExp, caseBagType, caseBehavior, caseBooleanLiteralExp, caseCallExp, caseCallOperationAction, caseClass, caseCollectionItem, caseCollectionLiteralExp, caseCollectionLiteralPart, caseCollectionRange, caseCollectionType, caseComment, caseConnectionPointReference, caseConstructorExp, caseConstructorPart, caseDataType, caseDetail, caseDynamicElement, caseDynamicProperty, caseDynamicType, caseElement, caseElementExtension, caseEnumeration, caseEnumerationLiteral, caseEnumLiteralExp, caseExpressionInOCL, caseFeature, caseFeatureCallExp, caseFinalState, caseIfExp, caseImport, caseIntegerLiteralExp, caseInvalidLiteralExp, caseInvalidType, caseIterateExp, caseIteration, caseIteratorExp, caseLambdaType, caseLetExp, caseLibrary, caseLiteralExp, caseLoopExp, caseMessageExp, caseMessageType, caseMetaclass, caseMorePivotable, caseNameable, caseNamedElement, caseNamespace, caseNavigationCallExp, caseNullLiteralExp, caseNumericLiteralExp, caseOCLExpression, caseOperationCallExp, caseOperationTemplateParameter, caseOppositePropertyCallExp, caseOrderedSetType, casePackageableElement, caseParameter, caseParameterableElement, casePivotable, casePrecedence, casePrimitiveLiteralExp, casePrimitiveType, caseProfile, caseProfileApplication, casePropertyCallExp, casePseudostate, caseRealLiteralExp, caseReferringElement, caseRegion, caseSelfType, caseSendSignalAction, caseSequenceType, caseSetType, caseSignal, caseState, caseStateExp, caseStateMachine, caseStereotype, caseStringLiteralExp, caseTemplateableElement, caseTemplateBinding, caseTemplateParameter, caseTemplateParameterSubstitution, caseTemplateParameterType, caseTemplateSignature, caseTransition, caseTrigger, caseTupleLiteralExp, caseTupleLiteralPart, caseTupleType, caseTypedElement, caseTypedMultiplicityElement, caseTypeExp, caseTypeExtension, caseTypeTemplateParameter, caseUnlimitedNaturalLiteralExp, caseUnspecifiedType, caseUnspecifiedValueExp, caseValueSpecification, caseVariable, caseVariableDeclaration, caseVariableExp, caseVertex, caseVisitable, caseVisitor, caseVoidType, defaultCase, 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
 

Field Detail

metaModelManager

@NonNull
protected final MetaModelManager metaModelManager

separateResource

@NonNull
protected final org.eclipse.emf.ecore.resource.Resource separateResource
Constructor Detail

CompleteOCLSplitter.Separator

public CompleteOCLSplitter.Separator(@NonNull
                                     MetaModelManager metaModelManager,
                                     @NonNull
                                     org.eclipse.emf.ecore.resource.Resource separateResource)
Method Detail

caseConstraint

public org.eclipse.emf.ecore.EObject caseConstraint(Constraint object)
Description copied from class: PivotSwitch
Returns the result of interpreting the object as an instance of 'Constraint'. This implementation returns null; returning a non-null result will terminate the switch.

Overrides:
caseConstraint in class PivotSwitch<org.eclipse.emf.ecore.EObject>
Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Constraint'.
See Also:
doSwitch(EObject)

caseOpaqueExpression

public org.eclipse.emf.ecore.EObject caseOpaqueExpression(OpaqueExpression object)
Description copied from class: PivotSwitch
Returns the result of interpreting the object as an instance of 'Opaque Expression'. This implementation returns null; returning a non-null result will terminate the switch.

Overrides:
caseOpaqueExpression in class PivotSwitch<org.eclipse.emf.ecore.EObject>
Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Opaque Expression'.
See Also:
doSwitch(EObject)

caseOperation

public org.eclipse.emf.ecore.EObject caseOperation(Operation object)
Description copied from class: PivotSwitch
Returns the result of interpreting the object as an instance of 'Operation'. This implementation returns null; returning a non-null result will terminate the switch.

Overrides:
caseOperation in class PivotSwitch<org.eclipse.emf.ecore.EObject>
Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Operation'.
See Also:
doSwitch(EObject)

casePackage

public org.eclipse.emf.ecore.EObject casePackage(Package object)
Description copied from class: PivotSwitch
Returns the result of interpreting the object as an instance of 'Package'. This implementation returns null; returning a non-null result will terminate the switch.

Overrides:
casePackage in class PivotSwitch<org.eclipse.emf.ecore.EObject>
Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Package'.
See Also:
doSwitch(EObject)

caseProperty

public org.eclipse.emf.ecore.EObject caseProperty(Property object)
Description copied from class: PivotSwitch
Returns the result of interpreting the object as an instance of 'Property'. This implementation returns null; returning a non-null result will terminate the switch.

Overrides:
caseProperty in class PivotSwitch<org.eclipse.emf.ecore.EObject>
Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Property'.
See Also:
doSwitch(EObject)

caseRoot

public org.eclipse.emf.ecore.EObject caseRoot(Root object)
Description copied from class: PivotSwitch
Returns the result of interpreting the object as an instance of 'Root'. This implementation returns null; returning a non-null result will terminate the switch.

Overrides:
caseRoot in class PivotSwitch<org.eclipse.emf.ecore.EObject>
Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Root'.
See Also:
doSwitch(EObject)

caseType

public org.eclipse.emf.ecore.EObject caseType(Type object)
Description copied from class: PivotSwitch
Returns the result of interpreting the object as an instance of 'Type'. This implementation returns null; returning a non-null result will terminate the switch.

Overrides:
caseType in class PivotSwitch<org.eclipse.emf.ecore.EObject>
Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Type'.
See Also:
doSwitch(EObject)

cloneNamedElement

protected <T extends NamedElement> T cloneNamedElement(java.util.List<T> separateSiblings,
                                                       T object)

getElementByName

public NamedElement getElementByName(java.lang.Iterable<? extends org.eclipse.emf.ecore.EObject> elements,
                                     java.lang.String name)

getSeparate

protected <T extends NamedElement> T getSeparate(T element)

getSeparatePackage

protected Package getSeparatePackage(Package element)