org.eclipse.uml2
Interface Generalization

All Superinterfaces:
DirectedRelationship, Element, EModelElement, EObject, Notifier, Relationship

public interface Generalization
extends DirectedRelationship

A representation of the model object 'Generalization'. A generalization relates a specific classifier to a more general classifier, and is owned by the specific classifier. Package PowerTypes (�PowerTypes� on page 109) A generalization can be designated as being a member of a particular generalization set.

The following features are supported:

See Also:
UML2Package.getGeneralization()

Field Summary
static String copyright
           
 
Method Summary
 Classifier getGeneral()
          Returns the value of the 'General' reference
 GeneralizationSet getGeneralizationSet(String unqualifiedName)
          Retrieves the GeneralizationSet with the specified name from the 'Generalization Set' reference list
 EList getGeneralizationSets()
          Returns the value of the 'Generalization Set' reference list.
 Element getOwner()
           
 EList getSources()
           
 Classifier getSpecific()
          Returns the value of the 'Specific' container reference.
 EList getTargets()
           
 boolean isSubstitutable()
          Returns the value of the 'Is Substitutable' attribute
 void setGeneral(Classifier value)
          Sets the value of the 'General' reference
 void setIsSubstitutable(boolean value)
          Sets the value of the 'Is Substitutable' attribute
 void setSpecific(Classifier value)
          Sets the value of the 'Specific' container reference
 
Methods inherited from interface org.eclipse.uml2.DirectedRelationship
getRelatedElements
 
Methods inherited from interface org.eclipse.uml2.Element
addKeyword, allOwnedElements, apply, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedVersion, getKeywords, getModel, getNearestPackage, getOwnedComments, getOwnedElements, 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
 

Field Detail

copyright

public static final String copyright

See Also:
Constant Field Values
Method Detail

isSubstitutable

public boolean isSubstitutable()
Returns the value of the 'Is Substitutable' attribute.

If the meaning of the 'Is Substitutable' attribute isn't clear, there really should be more of a description here...

Indicates whether the specific classifier can be used whereever the general classifier can be used. If true, the execution traces of the specific classifier will be a superset of the execution traces of the general classifier.

Returns:
the value of the 'Is Substitutable' attribute.
See Also:
setIsSubstitutable(boolean), UML2Package.getGeneralization_IsSubstitutable()

setIsSubstitutable

public void setIsSubstitutable(boolean value)
Sets the value of the 'Is Substitutable' attribute.

Parameters:
value - the new value of the 'Is Substitutable' attribute.
See Also:
isSubstitutable()

getSpecific

public Classifier getSpecific()
Returns the value of the 'Specific' container reference. It is bidirectional and its opposite is 'Generalization'.

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

References the specializing classifier in the Generalization relationship. Subsets DirectedRelationship::source and Element::owner. Package PowerTypes (�PowerTypes� on page 109) � generalizationSet Designates a set in which instances of Generalization is considered members.

Returns:
the value of the 'Specific' container reference.
See Also:
setSpecific(Classifier), UML2Package.getGeneralization_Specific(), Classifier.getGeneralizations()

setSpecific

public void setSpecific(Classifier value)
Sets the value of the 'Specific' container reference.

Parameters:
value - the new value of the 'Specific' container reference.
See Also:
getSpecific()

getGeneral

public Classifier getGeneral()
Returns the value of the 'General' reference.

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

References the general classifier in the Generalization relationship. Subsets DirectedRelationship::target.

Returns:
the value of the 'General' reference.
See Also:
setGeneral(Classifier), UML2Package.getGeneralization_General()

setGeneral

public void setGeneral(Classifier value)
Sets the value of the 'General' reference.

Parameters:
value - the new value of the 'General' reference.
See Also:
getGeneral()

getGeneralizationSets

public EList getGeneralizationSets()
Returns the value of the 'Generalization Set' reference list. The list contents are of type GeneralizationSet. It is bidirectional and its opposite is 'Generalization'.

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

Returns:
the value of the 'Generalization Set' reference list.
See Also:
UML2Package.getGeneralization_GeneralizationSet(), GeneralizationSet.getGeneralizations()

getGeneralizationSet

public GeneralizationSet getGeneralizationSet(String unqualifiedName)
Retrieves the GeneralizationSet with the specified name from the 'Generalization Set' reference list.

Parameters:
unqualifiedName - The unqualified name of the GeneralizationSet to retrieve.
Returns:
The GeneralizationSet with the specified name, or null.
See Also:
getGeneralizationSets()

getSources

public EList getSources()

Specified by:
getSources in interface DirectedRelationship
Returns:
the value of the 'Source' reference list.
See Also:
UML2Package.getDirectedRelationship_Source()

getOwner

public Element getOwner()

Specified by:
getOwner in interface Element
Returns:
the value of the 'Owner' reference.
See Also:
UML2Package.getElement_Owner(), Element.getOwnedElements()

getTargets

public EList getTargets()

Specified by:
getTargets in interface DirectedRelationship
Returns:
the value of the 'Target' reference list.
See Also:
UML2Package.getDirectedRelationship_Target()

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