public class DelegateInstaller extends Object
Modifier and Type | Field and Description |
---|---|
static String |
OPTION_BOOLEAN_INVARIANTS
True to apply result = () wrapper to invariant body.
|
static String |
OPTION_OMIT_SETTING_DELEGATES
True to omit the setting delegates declaration.
|
Constructor and Description |
---|
DelegateInstaller(EnvironmentFactoryInternal environmentFactory,
Map<String,Object> options) |
Modifier and Type | Method and Description |
---|---|
EAnnotation |
createConstraintDelegate(EModelElement eModelElement,
Constraint pivotConstraint,
URI ecoreURI) |
EAnnotation |
createOperationDelegate(EOperation eOperation,
LanguageExpression bodyExpression,
URI ecoreURI) |
EAnnotation |
createPropertyDelegate(EStructuralFeature eStructuralFeature,
LanguageExpression defaultExpression,
URI ecoreURI) |
static String |
getAnnotationKey(Constraint pivotConstraint) |
static String |
getDelegateURI(EPackage ePackage) |
static String |
getDelegateURI(List<EObject> contents) |
EnvironmentFactory |
getEnvironmentFactory() |
String |
getExportDelegateURI() |
static String |
getExportDelegateURI(Map<String,Object> options) |
void |
installDelegate(EOperation eOperation) |
void |
installDelegate(EStructuralFeature eFeature) |
void |
installDelegates(CompletePackage completePackage)
Install all Constraints from pivotPackage and its nestedPackages as OCL Delegates.
|
void |
installDelegates(EClassifier eClassifier,
Class pivotType) |
void |
installDelegates(EPackage ePackage) |
static boolean |
isBooleanInvariants(Map<String,Object> options) |
static boolean |
needsDelegates(EPackage ePackage) |
public static final String OPTION_BOOLEAN_INVARIANTS
public static final String OPTION_OMIT_SETTING_DELEGATES
public DelegateInstaller(EnvironmentFactoryInternal environmentFactory, Map<String,Object> options)
public static String getAnnotationKey(Constraint pivotConstraint)
public static String getDelegateURI(EPackage ePackage)
public static boolean needsDelegates(EPackage ePackage)
public EAnnotation createConstraintDelegate(EModelElement eModelElement, Constraint pivotConstraint, URI ecoreURI)
public EAnnotation createOperationDelegate(EOperation eOperation, LanguageExpression bodyExpression, URI ecoreURI)
public EAnnotation createPropertyDelegate(EStructuralFeature eStructuralFeature, LanguageExpression defaultExpression, URI ecoreURI)
public EnvironmentFactory getEnvironmentFactory()
public String getExportDelegateURI()
public void installDelegates(CompletePackage completePackage)
public void installDelegate(EOperation eOperation)
public void installDelegate(EStructuralFeature eFeature)
public void installDelegates(EClassifier eClassifier, Class pivotType)
public void installDelegates(EPackage ePackage)
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.