Interface Substitution
-
- All Superinterfaces:
Abstraction
,BaseElement
,java.lang.Cloneable
,java.lang.Comparable
,Dependency
,DirectedRelationship
,Element
,org.eclipse.emf.ecore.EObject
,MDObject
,ModelObject
,NamedElement
,org.eclipse.emf.common.notify.Notifier
,PackageableElement
,ParameterableElement
,Realization
,javax.jmi.reflect.RefBaseObject
,javax.jmi.reflect.RefFeatured
,javax.jmi.reflect.RefObject
,Relationship
public interface Substitution extends Realization
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:
UMLPackage.getSubstitution()
- Model:
- annotation="MOF package='classes.mddependencies'"
- Generated:
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Classifier
getContract()
Returns the value of the 'Contract' reference.Classifier
getSubstitutingClassifier()
Returns the value of the 'Substituting Classifier' container reference.void
setContract(Classifier value)
Sets the value of the 'Contract
' reference.void
setSubstitutingClassifier(Classifier value)
Sets the value of the 'Substituting Classifier
' container reference.-
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mddependencies.Abstraction
getMapping, setMapping
-
Methods inherited from interface com.nomagic.magicdraw.uml.BaseElement
accept, addPropertyChangeListener, atInsert, canAdd, canAdd, canAddChild, canAddInstance, canBeDeleted, canChangeParent, canDeleteChild, clone, dispose, firePropertyChange, getClassType, getHumanName, getHumanType, getObjectParent, isEditable, isParentOf, removeAllPropertyChangeListeners, removePropertyChangeListener, sGetID
-
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mddependencies.Dependency
get_collaborationUseOfRoleBinding, getClient, getSupplier, hasClient, hasSupplier, set_collaborationUseOfRoleBinding
-
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mdkernel.DirectedRelationship
getSource, getTarget, hasSource, hasTarget
-
Methods 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, setSyncElement
-
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
-
Methods inherited from interface com.nomagic.magicdraw.foundation.MDObject
getID, getMDExtension, getMdExtensions, setID
-
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.base.ModelObject
get_representationText, getLocalID, ignoringRefGetValue, ignoringRefGetValue, isInvalid, isSet, refGetValue, refGetValue, refSetValue, refSetValue, set_representationText, setLocalID, sGetLocalID
-
Methods 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, setNamespace
-
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Methods 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, setVisibility
-
Methods 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, setTemplateParameter
-
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
-
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refInvokeOperation, refInvokeOperation, refSetValue
-
Methods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
-
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Relationship
get_abstraction, getRelatedElement, has_abstraction, hasRelatedElement
-
-
-
-
Method Detail
-
getContract
@CheckForNull Classifier 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:
setContract(Classifier)
,UMLPackage.getSubstitution_Contract()
,Classifier.get_substitutionOfContract()
- Model:
- opposite="_substitutionOfContract" required="true" ordered="false"
- Generated:
-
setContract
void setContract(@CheckForNull Classifier value)
Sets the value of the 'Contract
' reference.- Parameters:
value
- the new value of the 'Contract' reference.- See Also:
getContract()
- Generated:
-
getSubstitutingClassifier
@CheckForNull Classifier 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:
setSubstitutingClassifier(Classifier)
,UMLPackage.getSubstitution_SubstitutingClassifier()
,Classifier.getSubstitution()
- Model:
- opposite="substitution" required="true" transient="false" ordered="false"
- Generated:
-
setSubstitutingClassifier
void setSubstitutingClassifier(@CheckForNull Classifier value)
Sets the value of the 'Substituting Classifier
' container reference.- Parameters:
value
- the new value of the 'Substituting Classifier' container reference.- See Also:
getSubstitutingClassifier()
- Generated:
-
-