public class SettingBehavior extends AbstractDelegatedBehavior<EStructuralFeature,SettingDelegate.Factory.Registry,SettingDelegate.Factory>
Modifier and Type | Field and Description |
---|---|
static String |
DERIVATION_CONSTRAINT_KEY |
static String |
INITIAL_CONSTRAINT_KEY |
static SettingBehavior |
INSTANCE |
static String |
NAME |
NO_OCL_DEFINITION
Constructor and Description |
---|
SettingBehavior() |
Modifier and Type | Method and Description |
---|---|
void |
cacheOCLExpression(EStructuralFeature property,
OCLExpression e)
Creates an
ExpressionCacheAdapter for expression e and adds
it to property 's adapter list so that getCachedOCLExpression(EStructuralFeature)
will return e when called for property . |
OCLExpression |
getCachedOCLExpression(EStructuralFeature property)
Looks for an
ExpressionCacheAdapter attached to property . |
SettingDelegate.Factory |
getDefaultFactory() |
SettingDelegate.Factory.Registry |
getDefaultRegistry() |
EPackage |
getEPackage(EStructuralFeature eStructuralFeature) |
SettingDelegate.Factory |
getFactory(DelegateDomain delegateDomain,
EStructuralFeature eStructuralFeature) |
Class<SettingDelegate.Factory> |
getFactoryClass() |
OCLExpression |
getFeatureBody(OCL ocl,
EStructuralFeature structuralFeature)
Return the feature body associated with structuralFeature, if necessary using ocl to
create the relevant parsing environment for a textual definition..
|
String |
getName() |
Class<SettingDelegate.Factory.Registry> |
getRegistryClass() |
boolean |
hasCompileableFeatureBody(EStructuralFeature structuralFeature)
Tells if there is a textual expression for the
structuralFeature in an
annotation that can be compiled by getFeatureBody(OCL, EStructuralFeature) . |
getDelegatedBehaviors, getDelegateDomains, getFactories, getFactory, isNoOCLDefinition, setDelegates, toString
public static final SettingBehavior INSTANCE
public static final String DERIVATION_CONSTRAINT_KEY
public static final String INITIAL_CONSTRAINT_KEY
public static final String NAME
public void cacheOCLExpression(EStructuralFeature property, OCLExpression e)
ExpressionCacheAdapter
for expression e
and adds
it to property
's adapter list so that getCachedOCLExpression(EStructuralFeature)
will return e
when called for property
. To achieve this, any other
ExpressionCacheAdapter
in property
's adapter list is removed.e
- if null
, any existing cache entry is removed and no new entry
is created. getCachedOCLExpression(EStructuralFeature)
will then return null
.public OCLExpression getCachedOCLExpression(EStructuralFeature property)
ExpressionCacheAdapter
attached to property
.
If such an adapter is found, its cached expression is returned. The cached expression
may be a reserved expression indicating that no OCL expression exists and that an
unsuccessful attempt to obtain one has been made before.
AbstractDelegatedBehavior.isNoOCLDefinition(OCLExpression)
should be used to check for the reserved expression.
null is returned if no cached expression is available.public SettingDelegate.Factory getDefaultFactory()
public SettingDelegate.Factory.Registry getDefaultRegistry()
public EPackage getEPackage(EStructuralFeature eStructuralFeature)
public SettingDelegate.Factory getFactory(DelegateDomain delegateDomain, EStructuralFeature eStructuralFeature)
public Class<SettingDelegate.Factory> getFactoryClass()
public OCLExpression getFeatureBody(OCL ocl, EStructuralFeature structuralFeature)
public String getName()
public Class<SettingDelegate.Factory.Registry> getRegistryClass()
public boolean hasCompileableFeatureBody(EStructuralFeature structuralFeature)
structuralFeature
in an
annotation that can be compiled by getFeatureBody(OCL, EStructuralFeature)
. Probing
this saves callers the more expensive construction of an OCL
object.Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.