org.eclipse.ocl.examples.xtext.essentialocl.utilities
Class EssentialOCLUtils

java.lang.Object
  extended by org.eclipse.ocl.examples.xtext.essentialocl.utilities.EssentialOCLUtils

public class EssentialOCLUtils
extends java.lang.Object


Constructor Summary
EssentialOCLUtils()
           
 
Method Summary
static ModelElementCS getPivotedCS(org.eclipse.emf.ecore.EObject csElement)
          Return the element associated with csElement for which there is a pivot element with an identical moniker.
static ElementCS getPivotingChildCS(ElementCS csElement)
          Return the CS element from the CS elements associated with the same pivot element as csElement, whose child-parent relationship corresponds to the child-parent relationship of the pivot element.
static org.eclipse.emf.ecore.EReference getPivotingFeature(ElementCS csChildElement, ElementCS csParentElement)
           
static ModelElementCS getPivotingParentCS(ElementCS csElement)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EssentialOCLUtils

public EssentialOCLUtils()
Method Detail

getPivotedCS

public static ModelElementCS getPivotedCS(org.eclipse.emf.ecore.EObject csElement)
Return the element associated with csElement for which there is a pivot element with an identical moniker.

Parameters:
csElement -
Returns:
the csElement with a matching pivot element

getPivotingChildCS

public static ElementCS getPivotingChildCS(ElementCS csElement)
Return the CS element from the CS elements associated with the same pivot element as csElement, whose child-parent relationship corresponds to the child-parent relationship of the pivot element.

Parameters:
csElement - for which the child counterpart is required
Returns:
the child counterpart

getPivotingParentCS

public static ModelElementCS getPivotingParentCS(ElementCS csElement)

getPivotingFeature

public static org.eclipse.emf.ecore.EReference getPivotingFeature(ElementCS csChildElement,
                                                                  ElementCS csParentElement)