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 String copyright
           
 
Fields inherited from interface org.eclipse.uml2.NamedElement
SEPARATOR
 
Method Summary
 EList getClients()
           
 Classifier getContract()
          Returns the value of the 'Contract' reference
 EList getSources()
           
 Classifier getSubstitutingClassifier()
          Returns the value of the 'Substituting Classifier' container reference.
 EList getSuppliers()
           
 EList getTargets()
           
 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, getOwner, getRealizingClassifier, setAbstraction, setRealizingClassifier
 
Methods inherited from interface org.eclipse.uml2.Abstraction
createMapping, getMapping, getOwnedElements, setMapping
 
Methods inherited from interface org.eclipse.uml2.Dependency
getClient, getSupplier
 
Methods inherited from interface org.eclipse.uml2.PackageableElement
getPackageableElement_visibility, getVisibility, setPackageableElement_visibility, setVisibility
 
Methods inherited from interface org.eclipse.uml2.NamedElement
allNamespaces, createNameExpression, getClientDependencies, getClientDependency, getName, getNameExpression, getNamespace, getQualifiedName, isDistinguishableFrom, qualifiedName, separator, setName, setNameExpression, validateNoName, validateQualifiedName, validateVisibilityNeedsOwnership
 
Methods inherited from interface org.eclipse.uml2.TemplateableElement
createOwnedTemplateSignature, createTemplateBinding, getOwnedTemplateSignature, getTemplateBindings, parameterableElements, setOwnedTemplateSignature
 
Methods inherited from interface org.eclipse.uml2.Element
addKeyword, allOwnedElements, apply, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedVersion, getKeywords, getModel, getNearestPackage, getOwnedComments, getValue, hasKeyword, 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
getRelatedElements
 

Field Detail

copyright

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

getSuppliers

public EList getSuppliers()

Specified by:
getSuppliers in interface Realization

getTargets

public EList getTargets()

Specified by:
getTargets in interface Realization

getClients

public EList getClients()

Specified by:
getClients in interface Realization

getSources

public EList getSources()

Specified by:
getSources in interface Realization

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