public interface EnvironmentWithHiddenOpposites extends Environment<EPackage,EClassifier,EOperation,EStructuralFeature,EEnumLiteral,EParameter,EObject,CallOperationAction,SendSignalAction,Constraint,EClass,EObject>
Environmentand is implemented by
|Modifier and Type||Method and Description|
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.
Return the most appropriate matching variable to use as the implicit source of a call to the specified property.
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
nullto find an implicit owner type (in iteration expressions)
name- the property name
nullif it could not be found
name- the property name
nullif no appropriate variable can be found whose type defines a property of this name
EClassifier getOppositePropertyType(EClassifier owner, EReference property)
classifieror any of
classifier's super types and that own an
EMOFExtendedMetaData#EMOF_PACKAGE_NS_URI_2_0containing 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
EReferenceon which the annotation was found is entered into the result map as the corresponding value.
nullmap of all "hidden references" accessible from
classifiertogether with their corresponding forward references
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.