|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A representation of the model object 'Generalization'. A generalization is a taxonomic relationship between a more general classifier and a more specific classifier. Each instance of the specific classifier is also an indirect instance of the general classifier. Thus, the specific classifier inherits the features of the more general classifier. A generalization relates a specific classifier to a more general classifier, and is owned by the specific classifier.
The following features are supported:
UMLPackage.getGeneralization()| Method Summary | |
Classifier |
getGeneral()
Returns the value of the 'General' reference |
GeneralizationSet |
getGeneralizationSet(String name)
Retrieves the first GeneralizationSet with the specified 'Name' from the 'Generalization Set' reference list |
GeneralizationSet |
getGeneralizationSet(String name,
boolean ignoreCase)
Retrieves the first GeneralizationSet with the specified 'Name' from the 'Generalization Set' reference list |
EList |
getGeneralizationSets()
Returns the value of the 'Generalization Set' reference list. |
Classifier |
getSpecific()
Returns the value of the 'Specific' container reference. |
boolean |
isSetIsSubstitutable()
Returns whether the value of the ' Is Substitutable' attribute is set |
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 |
void |
unsetIsSubstitutable()
Unsets the value of the ' Is Substitutable' attribute |
boolean |
validateGeneralizationSameClassifier(DiagnosticChain diagnostics,
Map context)
Every Generalization associated with a given GeneralizationSet must have the same general Classifier. |
| Methods inherited from interface org.eclipse.uml2.uml.DirectedRelationship |
getSources, getTargets |
| Methods inherited from interface org.eclipse.uml2.uml.Relationship |
getRelatedElements |
| 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 |
| Method Detail |
public boolean isSubstitutable()
Generalization.isSetIsSubstitutable(),
Generalization.unsetIsSubstitutable(),
Generalization.setIsSubstitutable(boolean),
UMLPackage.getGeneralization_IsSubstitutable()public void setIsSubstitutable(boolean value)
Is Substitutable' attribute.
value - the new value of the 'Is Substitutable' attribute.Generalization.isSetIsSubstitutable(),
Generalization.unsetIsSubstitutable(),
Generalization.isSubstitutable()public void unsetIsSubstitutable()
Is Substitutable' attribute.
Generalization.isSetIsSubstitutable(),
Generalization.isSubstitutable(),
Generalization.setIsSubstitutable(boolean)public boolean isSetIsSubstitutable()
Is Substitutable' attribute is set.
Generalization.unsetIsSubstitutable(),
Generalization.isSubstitutable(),
Generalization.setIsSubstitutable(boolean)public Classifier getGeneral()
Generalization.setGeneral(Classifier),
UMLPackage.getGeneralization_General()public void setGeneral(Classifier value)
General' reference.
value - the new value of the 'General' reference.Generalization.getGeneral()public EList getGeneralizationSets()
GeneralizationSet.
It is bidirectional and its opposite is 'Generalization'.
Designates a set in which instances of Generalization is considered members.
UMLPackage.getGeneralization_GeneralizationSet(),
GeneralizationSet.getGeneralizations()public GeneralizationSet getGeneralizationSet(String name)
GeneralizationSet with the specified 'Name' from the 'Generalization Set' reference list.
name - The 'Name' of the GeneralizationSet to retrieve, or null.
GeneralizationSet with the specified 'Name', or null.Generalization.getGeneralizationSets()
public GeneralizationSet getGeneralizationSet(String name,
boolean ignoreCase)
GeneralizationSet with the specified 'Name' from the 'Generalization Set' reference list.
name - The 'Name' of the GeneralizationSet to retrieve, or null.ignoreCase - Whether to ignore case in String comparisons.
GeneralizationSet with the specified 'Name', or null.Generalization.getGeneralizationSets()public Classifier getSpecific()
Generalization'.
References the specializing classifier in the Generalization relationship.
Generalization.setSpecific(Classifier),
UMLPackage.getGeneralization_Specific(),
Classifier.getGeneralizations()public void setSpecific(Classifier value)
Specific' container reference.
value - the new value of the 'Specific' container reference.Generalization.getSpecific()
public boolean validateGeneralizationSameClassifier(DiagnosticChain diagnostics,
Map context)
|
Copyright 2003, 2006 IBM Corporation and others. All Rights Reserved. |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||