Package com.sodius.mdw.metamodel.uml21
Interface Substitution
-
- All Superinterfaces:
Abstraction
,Comparable<Object>
,Dependency
,DirectedRelationship
,Element
,org.eclipse.emf.ecore.EModelElement
,org.eclipse.emf.ecore.EObject
,MDWEObject
,MDWObject
,NamedElement
,org.eclipse.emf.common.notify.Notifier
,PackageableElement
,ParameterableElement
,Realization
,Relationship
public interface Substitution extends Realization
A representation of the model object 'Substitution'. A substitution is a relationship between two classifiers signifies 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()
-
-
Field Summary
-
Fields inherited from interface com.sodius.mdw.metamodel.uml21.NamedElement
SEPARATOR
-
-
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.sodius.mdw.metamodel.uml21.Abstraction
createMapping, getMapping, setMapping
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.Dependency
getClient, getClient, getClients, getSupplier, getSupplier, getSuppliers
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.DirectedRelationship
getSources, getTargets
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.Element
addKeyword, allOwnedElements, applyStereotype, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedSubstereotype, getAppliedSubstereotypes, getKeywords, getModel, getNearestPackage, getOwnedComments, getOwnedElements, getOwner, getRelationships, getRelationships, getRequiredStereotype, getRequiredStereotypes, getSourceDirectedRelationships, getSourceDirectedRelationships, getStereotypeApplication, getStereotypeApplications, getTargetDirectedRelationships, getTargetDirectedRelationships, getValue, hasKeyword, hasValue, isStereotypeApplicable, isStereotypeApplied, isStereotypeRequired, mustBeOwned, removeKeyword, setValue, unapplyStereotype, validateHasOwner, validateNotOwnSelf
-
Methods inherited from interface org.eclipse.emf.ecore.EModelElement
getEAnnotation, getEAnnotations
-
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.sodius.mdw.core.model.MDWObject
compareTo, eExtendedClass, eIsInstanceOf, eIsInstanceOf, eIsProfiled, eIsRemoved, eMetamodel, eMetaTypeName, eModel, eRemove, eSetUniqueID, eUniqueID, superScript, superScript, toBoolean, toBoolean, toByte, toByte, toChar, toChar, toDouble, toDouble, toFloat, toFloat, toInt, toInt, toList, toList, toList, toList, toList, toLong, toLong, toObject, toObject, toSet, toSet, toShort, toShort, toString, toString
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.NamedElement
allNamespaces, allOwningPackages, createDependency, createNameExpression, getClientDependencies, getClientDependency, getClientDependency, getLabel, getLabel, getName, getNameExpression, getNamespace, getQualifiedName, getVisibility, isDistinguishableFrom, isSetName, isSetVisibility, separator, setName, setNameExpression, setVisibility, unsetName, unsetVisibility, validateHasNoQualifiedName, validateHasQualifiedName, validateVisibilityNeedsOwnership
-
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.ParameterableElement
getOwningTemplateParameter, getTemplateParameter, isCompatibleWith, isTemplateParameter, setOwningTemplateParameter, setTemplateParameter
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.Relationship
getRelatedElements
-
-
-
-
Method Detail
-
getContract
Classifier getContract()
Returns the value of the 'Contract' reference. The contract with which the substituting classifier complies.- Returns:
- the value of the 'Contract' reference.
- See Also:
setContract(Classifier)
,UMLPackage.getSubstitution_Contract()
-
setContract
void setContract(Classifier value)
Sets the value of the 'Contract
' reference.- Parameters:
value
- the new value of the 'Contract' reference.- See Also:
getContract()
-
getSubstitutingClassifier
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.getSubstitutions()
-
setSubstitutingClassifier
void setSubstitutingClassifier(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()
-
-