org.eclipse.ocl.examples.xtext.essentialocl.utilities
Class EssentialOCLUtils
java.lang.Object
org.eclipse.ocl.examples.xtext.essentialocl.utilities.EssentialOCLUtils
public class EssentialOCLUtils
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EssentialOCLUtils
public EssentialOCLUtils()
getPivotedCS
public static MonikeredElementCS 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 MonikeredElementCS getPivotingParentCS(ElementCS csElement)
getPivotingFeature
public static org.eclipse.emf.ecore.EReference getPivotingFeature(ElementCS csChildElement,
ElementCS csParentElement)