org.eclipse.uml2
Interface Substitution

All Superinterfaces:
Abstraction, Dependency, DirectedRelationship, Element, EModelElement, EObject, NamedElement, Notifier, PackageableElement, ParameterableElement, Realization, Relationship, TemplateableElement

public interface Substitution
extends Realization

A representation of the model object 'Substitution'. A substitution is a relationship between two classifiers signifies that the substitutingClassifier complies with the contract specified by the contract classifier. This implies that instances of the substitutingClassifier are runtime substitutable where instances of the contract classifier are expected.

The following features are supported:

See Also:
UML2Package.getSubstitution()

Field Summary
static java.lang.String copyright
           
 
Fields inherited from interface org.eclipse.uml2.NamedElement
SEPARATOR
 
Method Summary
 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 org.eclipse.uml2.Realization
getAbstraction, getRealizingClassifier, setAbstraction, setRealizingClassifier
 
Methods inherited from interface org.eclipse.uml2.Abstraction
createMapping, createMapping, getMapping, setMapping
 
Methods inherited from interface org.eclipse.uml2.Dependency
getClient, getClients, getSupplier, getSuppliers
 
Methods inherited from interface org.eclipse.uml2.PackageableElement
getPackageableElement_visibility, setPackageableElement_visibility
 
Methods inherited from interface org.eclipse.uml2.NamedElement
allNamespaces, createDependency, createNameExpression, createNameExpression, getClientDependencies, getClientDependency, getLabel, getLabel, getName, getNameExpression, getNamespace, getQualifiedName, getVisibility, isDistinguishableFrom, qualifiedName, separator, setName, setNameExpression, setVisibility, validateNoName, validateQualifiedName, validateVisibilityNeedsOwnership
 
Methods inherited from interface org.eclipse.uml2.TemplateableElement
createOwnedTemplateSignature, createOwnedTemplateSignature, createTemplateBinding, createTemplateBinding, getOwnedTemplateSignature, getTemplateBindings, parameterableElements, setOwnedTemplateSignature
 
Methods inherited from interface org.eclipse.uml2.Element
addKeyword, allOwnedElements, apply, createEAnnotation, createOwnedComment, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedVersion, getKeywords, getModel, getNearestPackage, getOwnedComments, getOwnedElements, getOwner, getValue, hasKeyword, hasValue, isApplied, isRequired, mustBeOwned, removeKeyword, setValue, unapply, 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, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.eclipse.uml2.ParameterableElement
getOwningParameter, getTemplateParameter, setOwningParameter, setTemplateParameter
 
Methods inherited from interface org.eclipse.uml2.DirectedRelationship
getSources, getTargets
 
Methods inherited from interface org.eclipse.uml2.Relationship
getRelatedElements
 

Field Detail

copyright

public static final java.lang.String copyright

See Also:
Constant Field Values
Method Detail

getContract

public Classifier getContract()
Returns the value of the 'Contract' reference.

If the meaning of the 'Contract' reference isn't clear, there really should be more of a description here...

(Specializes Dependency.target.)

Returns:
the value of the 'Contract' reference.
See Also:
setContract(Classifier), UML2Package.getSubstitution_Contract()

setContract

public void setContract(Classifier value)
Sets the value of the 'Contract' reference.

Parameters:
value - the new value of the 'Contract' reference.
See Also:
getContract()

getSubstitutingClassifier

public Classifier getSubstitutingClassifier()
Returns the value of the 'Substituting Classifier' container reference. It is bidirectional and its opposite is 'Substitution'.

If the meaning of the 'Substituting Classifier' container reference isn't clear, there really should be more of a description here...

(Specializes Dependency.client.)

Returns:
the value of the 'Substituting Classifier' container reference.
See Also:
setSubstitutingClassifier(Classifier), UML2Package.getSubstitution_SubstitutingClassifier(), Classifier.getSubstitutions()

setSubstitutingClassifier

public 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()

Copyright 2003, 2005 IBM Corporation and others.
All Rights Reserved.