public interface EnvironmentWithHiddenOpposites extends Environment<EPackage,EClassifier,EOperation,EStructuralFeature,EEnumLiteral,EParameter,EObject,CallOperationAction,SendSignalAction,Constraint,EClass,EObject>
Environment
and is implemented by AbstractEnvironment
.Environment.Internal<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E>, Environment.Lookup<PK,C,O,P>, Environment.Registry
OCL_NAMESPACE_URI, RESULT_VARIABLE_NAME, SELF_VARIABLE_NAME
Modifier and Type | Method and Description |
---|---|
Map<String,EReference> |
getHiddenOppositeProperties(EClassifier classifier)
Finds all
EReference s whose type
is classifier or any of classifier 's super
types and that own an annotation with source
EMOFExtendedMetaData#EMOF_PACKAGE_NS_URI_2_0 containing a detail
entry with key OppositeEndFinder.PROPERTY_OPPOSITE_ROLE_NAME_KEY . |
EClassifier |
getOppositePropertyType(EClassifier owner,
EReference property)
Determines a property's (hidden) opposite's type, assuming that there is not real opposite
but that the opposite's type implicitly defaults to the property's owning class.
|
Variable<EClassifier,EParameter> |
lookupImplicitSourceForOppositeProperty(String name)
Return the most appropriate matching variable to use as the implicit
source of a call to the specified property.
|
EReference |
lookupOppositeProperty(EClassifier owner,
String name)
Finds a property defined or inherited by the specified classifier, based
on a hidden opposite's name which is specified in an annotation on the property.
|
addElement, defineAttribute, defineOperation, deleteElement, getAdditionalAttributes, getAdditionalOperations, getBodyCondition, getContextClassifier, getContextOperation, getContextPackage, getContextProperty, getDefinition, getDeriveConstraint, getFactory, getInitConstraint, getOCLFactory, getOCLStandardLibrary, getParent, getSelfVariable, getStates, getTypeResolver, getUMLReflection, getVariables, isEmpty, isInPostcondition, lookup, lookupAssociationClassReference, lookupClassifier, lookupImplicitSourceForAssociationClass, lookupImplicitSourceForOperation, lookupImplicitSourceForProperty, lookupImplicitSourceForSignal, lookupImplicitSourceForState, lookupLocal, lookupOperation, lookupPackage, lookupProperty, lookupSignal, lookupState, setBodyCondition, setDeriveConstraint, setInitConstraint, setParent, setSelfVariable, undefine
EReference lookupOppositeProperty(EClassifier owner, String name) throws LookupException
owner
- the owner of the "hidden" (non-existing) property that we are looking for, or
null
to find an implicit owner type (in iteration
expressions)name
- the property namenull
if it could not be foundLookupException
Variable<EClassifier,EParameter> lookupImplicitSourceForOppositeProperty(String name)
name
- the property namenull
if no appropriate
variable can be found whose type defines a property of this nameEClassifier getOppositePropertyType(EClassifier owner, EReference property)
Map<String,EReference> getHiddenOppositeProperties(EClassifier classifier)
EReference
s whose type
is classifier
or any of classifier
's super
types and that own an annotation
with source
EMOFExtendedMetaData#EMOF_PACKAGE_NS_URI_2_0
containing a detail
entry with key OppositeEndFinder.PROPERTY_OPPOSITE_ROLE_NAME_KEY
.
The value of the annotation detail is entered into the resulting map as a
key, the EReference
on which the annotation was found is entered
into the result map as the corresponding value.
null
map of all "hidden references" accessible from
classifier
together with their corresponding forward
referencesCopyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.