public interface MetamodelManager
Modifier and Type | Method and Description |
---|---|
Class |
getASClass(java.lang.String className) |
<T extends Element> |
getASOf(java.lang.Class<T> pivotClass,
org.eclipse.emf.ecore.EObject eObject) |
<T extends Element> |
getASOfEcore(java.lang.Class<T> pivotClass,
org.eclipse.emf.ecore.EObject eObject) |
org.eclipse.emf.ecore.resource.ResourceSet |
getASResourceSet() |
CompleteModel |
getCompleteModel() |
<T extends org.eclipse.emf.ecore.EObject> |
getEcoreOfPivot(java.lang.Class<T> ecoreClass,
Element element) |
EnvironmentFactory |
getEnvironmentFactory() |
Class |
getPrimaryClass(Class pivotClass) |
Operation |
getPrimaryOperation(Operation pivotOperation) |
Package |
getPrimaryPackage(Package eObject) |
Property |
getPrimaryProperty(Property pivotProperty) |
StandardLibrary |
getStandardLibrary() |
ExpressionInOCL |
parseSpecification(LanguageExpression specification)
Convert the specification of an OCL expression from textual CS form to parsed executable AS form.
|
Class getASClass(@NonNull java.lang.String className)
@Nullable <T extends Element> T getASOf(@NonNull java.lang.Class<T> pivotClass, @Nullable org.eclipse.emf.ecore.EObject eObject) throws ParserException
ParserException
@Nullable <T extends Element> T getASOfEcore(@NonNull java.lang.Class<T> pivotClass, @Nullable org.eclipse.emf.ecore.EObject eObject)
@NonNull org.eclipse.emf.ecore.resource.ResourceSet getASResourceSet()
@NonNull CompleteModel getCompleteModel()
@Nullable <T extends org.eclipse.emf.ecore.EObject> T getEcoreOfPivot(@NonNull java.lang.Class<T> ecoreClass, @NonNull Element element)
@NonNull EnvironmentFactory getEnvironmentFactory()
@NonNull StandardLibrary getStandardLibrary()
@NonNull ExpressionInOCL parseSpecification(@NonNull LanguageExpression specification) throws ParserException
The returned object may be the same object as the specification, but with the more derived type to signify successful conversion from textual to executable form. Redundant re-invocation of parseSpecification is harmless.
The specification's container, typically a Constraint or Operation is used as the contextElement to determine self within the expression.
ParserException
- if text parsing fails