Interface Substitution
- All Superinterfaces:
Abstraction,BaseElement,Cloneable,Comparable,Dependency,DirectedRelationship,Element,org.eclipse.emf.ecore.EObject,MDObject,com.dassault_systemes.modeler.foundation.model.ModelElement,ModelObject,NamedElement,org.eclipse.emf.common.notify.Notifier,PackageableElement,ParameterableElement,Realization,javax.jmi.reflect.RefBaseObject,javax.jmi.reflect.RefFeatured,javax.jmi.reflect.RefObject,Relationship
A representation of the model object 'Substitution'.
A substitution is a relationship between two classifiers signifying that the substituting classifier complies with the contract specified by the contract classifier . This implies that instances of the substituting classifier are runtime substitutable where instances of the contract classifier are expected.
The following features are supported:
- See Also:
- Model:
- annotation="MOF package='classes.mddependencies'"
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the 'Contract' reference.Returns the value of the 'Substituting Classifier' container reference.voidsetContract(Classifier value) Sets the value of the 'Contract' reference.voidSets the value of the 'Substituting Classifier' container reference.Methods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mddependencies.Abstraction
getMapping, setMappingMethods inherited from interface com.nomagic.magicdraw.uml.BaseElement
accept, addPropertyChangeListener, canAdd, canAdd, canAddChild, canBeDeleted, firePropertyChange, getClassType, getHumanName, getHumanType, isEditable, removePropertyChangeListener, sGetIDMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mddependencies.Dependency
get_collaborationUseOfRoleBinding, getClient, getSupplier, hasClient, hasSupplier, set_collaborationUseOfRoleBindingMethods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mdkernel.DirectedRelationship
getSource, getTarget, hasSource, hasTargetMethods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element
get_activityPartitionOfRepresents, get_commentOfAnnotatedElement, get_constraintOfConstrainedElement, get_diagramOfContext, get_directedRelationshipOfSource, get_directedRelationshipOfTarget, get_elementOfSyncElement, get_elementTaggedValue, get_elementValueOfElement, get_relationshipOfRelatedElement, getAppliedStereotype, getOwnedComment, getOwnedElement, getOwner, getSyncElement, getTaggedValue, has_activityPartitionOfRepresents, has_commentOfAnnotatedElement, has_constraintOfConstrainedElement, has_diagramOfContext, has_directedRelationshipOfSource, has_directedRelationshipOfTarget, has_elementOfSyncElement, has_elementValueOfElement, has_relationshipOfRelatedElement, hasAppliedStereotype, hasElementTaggedValue, hasOwnedComment, hasOwnedElement, hasTaggedValue, setOwner, setSyncElementMethods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnsetMethods inherited from interface com.nomagic.magicdraw.foundation.MDObject
getID, getMDExtension, getMdExtensions, setIDMethods inherited from interface com.dassault_systemes.modeler.foundation.model.ModelElement
canChangeElementOwner, eDynamicGet, getElementOwner, getLocalID, getObjectParent, selfDispose, setLocalID, sGetLocalIDMethods inherited from interface com.nomagic.uml2.ext.magicdraw.base.ModelObject
get_representationText, ignoringRefGetValue, ignoringRefGetValue, isSet, refGetValue, refGetValue, refSetValue, refSetValue, set_representationTextMethods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mdkernel.NamedElement
get_considerIgnoreFragmentOfMessage, get_durationObservationOfEvent, get_informationFlowOfInformationSource, get_informationFlowOfInformationTarget, get_messageOfSignature, get_namespaceOfMember, get_timeObservationOfEvent, getClientDependency, getName, getNameExpression, getNamespace, getQualifiedName, getSupplierDependency, has_considerIgnoreFragmentOfMessage, has_durationObservationOfEvent, has_informationFlowOfInformationSource, has_informationFlowOfInformationTarget, has_messageOfSignature, has_namespaceOfMember, has_timeObservationOfEvent, hasClientDependency, hasSupplierDependency, setName, setNameExpression, setNamespaceMethods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliverMethods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mdkernel.PackageableElement
get_componentOfPackagedElement, get_elementImportOfImportedElement, get_manifestationOfUtilizedElement, getOwningPackage, getVisibility, has_elementImportOfImportedElement, has_manifestationOfUtilizedElement, set_componentOfPackagedElement, setOwningPackage, setVisibilityMethods inherited from interface com.nomagic.uml2.ext.magicdraw.auxiliaryconstructs.mdtemplates.ParameterableElement
get_templateParameterOfDefault, get_templateParameterOfOwnedDefault, get_templateParameterSubstitutionOfActual, get_templateParameterSubstitutionOfOwnedActual, getOwningTemplateParameter, getTemplateParameter, has_templateParameterOfDefault, has_templateParameterSubstitutionOfActual, set_templateParameterOfOwnedDefault, set_templateParameterSubstitutionOfOwnedActual, setOwningTemplateParameter, setTemplateParameterMethods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraintsMethods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refInvokeOperation, refInvokeOperation, refSetValueMethods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostCompositeMethods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Relationship
get_abstraction, getRelatedElement, has_abstraction, hasRelatedElement
-
Method Details
-
getContract
Returns the value of the 'Contract' reference. It is bidirectional and its opposite is 'substitution Of Contract'. The contract with which the substituting classifier complies.- Returns:
- the value of the 'Contract' reference.
- See Also:
- Model:
- opposite="_substitutionOfContract" required="true" ordered="false"
- Generated:
-
setContract
Sets the value of the 'Contract' reference.- Parameters:
value- the new value of the 'Contract' reference.- See Also:
- Generated:
-
getSubstitutingClassifier
Returns the value of the 'Substituting Classifier' container reference. It is bidirectional and its opposite is 'Substitution'. Instances of the substituting classifier are runtime substitutable where instances of the contract classifier are expected.- Returns:
- the value of the 'Substituting Classifier' container reference.
- See Also:
- Model:
- opposite="substitution" required="true" transient="false" ordered="false"
- Generated:
-
setSubstitutingClassifier
Sets the value of the 'Substituting Classifier' container reference.- Parameters:
value- the new value of the 'Substituting Classifier' container reference.- See Also:
- Generated:
-