public interface OCLConstants
Modifier and Type | Field and Description |
---|---|
static String |
OCL_DELEGATE_URI
The EAnnotation source URI for delegate OCL annotations.
|
static String |
OCL_DELEGATE_URI_LPG |
static String |
OCL_DELEGATE_URI_SLASH |
static String |
PLUGIN_ID |
static final String PLUGIN_ID
static final String OCL_DELEGATE_URI
For an EOperation, the EAnnotation details may include
a body key to provide an OCL expression value that specifies body: of the operation.
a precondition key to provide an OCL expression value that specifies pre: for the operation.
a postcondition key to provide an OCL expression value that specifies post: for the operation.
For an EStructuralFeature, the EAnnotation details may include
a derivation key to provide an OCL expression value that specifies derive: for the property.
a initial key to provide an OCL expression value that specifies initial: for the operation.
For an EClassifier (EClass, EDataType), the EAnnotation details may include
a constraintName key to provide an OCL expression value that specifies inv constraintName: for the classifier.
For an EPackage, the EAnnotation details may include
an environmentFactoryClass
key whose value is the fully qualified
class name for the EnvironmentFactory
. If no key is specified either the EcoreEnvironmentFactory
or EcoreEnvironmentFactoryWithHiddenOpposites
class are used.
a hiddenOpposites
key that may have a true value to
use the EcoreEnvironmentFactoryWithHiddenOpposites
class rather than the EcoreEnvironmentFactory
when no environmentFactoryClass
key is specified.
Note that the delegate OCL functionality must be enabled by an EPackage Ecore annotation specifying this URI as the value of invocationDelegates, settingDelegates and validationDelegates details keys.
Note also that validation must be enabled by specifying an EClassifier Ecore annotation with a space separated list of invariant constraintNames as the value of the constraints details key.
See /org.eclipse.ocl.ecore.tests/model/Company.ecore or http://wiki.eclipse.org/MDT/OCLinEcore for an example.
static final String OCL_DELEGATE_URI_SLASH
static final String OCL_DELEGATE_URI_LPG
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.