public interface Generalization extends DirectedRelationship
From package UML::Classification.
The following features are supported:
UMLPackage.getGeneralization()
Modifier and Type | Method and Description |
---|---|
Classifier |
getGeneral()
Returns the value of the 'General' reference.
|
GeneralizationSet |
getGeneralizationSet(java.lang.String name)
Retrieves the first
GeneralizationSet with the specified 'Name' from the 'Generalization Set' reference list |
GeneralizationSet |
getGeneralizationSet(java.lang.String name,
boolean ignoreCase)
Retrieves the first
GeneralizationSet with the specified 'Name' from the 'Generalization Set' reference list |
org.eclipse.emf.common.util.EList<GeneralizationSet> |
getGeneralizationSets()
Returns the value of the 'Generalization Set' reference list.
|
Classifier |
getSpecific()
Returns the value of the 'Specific' container reference.
|
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 |
getSources, getTargets
getRelatedElements
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
getEAnnotation, getEAnnotations
boolean isSubstitutable()
"true"
.
Indicates whether the specific Classifier can be used wherever the general Classifier can be used. If true, the execution traces of the specific Classifier shall be a superset of the execution traces of the general Classifier. If false, there is no such constraint on execution traces. If unset, the modeler has not stated whether there is such a constraint or not.
From package UML::Classification.
setIsSubstitutable(boolean)
,
UMLPackage.getGeneralization_IsSubstitutable()
void setIsSubstitutable(boolean value)
Is Substitutable
' attribute.
value
- the new value of the 'Is Substitutable' attribute.isSubstitutable()
Classifier getGeneral()
This feature subsets the following features:
Target
'From package UML::Classification.
setGeneral(Classifier)
,
UMLPackage.getGeneralization_General()
void setGeneral(Classifier value)
General
' reference.
value
- the new value of the 'General' reference.getGeneral()
org.eclipse.emf.common.util.EList<GeneralizationSet> getGeneralizationSets()
GeneralizationSet
.
It is bidirectional and its opposite is 'Generalization
'.
Represents a set of instances of Generalization. A Generalization may appear in many GeneralizationSets.
From package UML::Classification.
UMLPackage.getGeneralization_GeneralizationSet()
,
GeneralizationSet.getGeneralizations()
GeneralizationSet getGeneralizationSet(java.lang.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
.getGeneralizationSets()
GeneralizationSet getGeneralizationSet(java.lang.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
.getGeneralizationSets()
Classifier getSpecific()
Generalization
'.
This feature subsets the following features:
The specializing Classifier in the Generalization relationship.From package UML::Classification.
setSpecific(Classifier)
,
UMLPackage.getGeneralization_Specific()
,
Classifier.getGeneralizations()
void setSpecific(Classifier value)
Specific
' container reference.
value
- the new value of the 'Specific' container reference.getSpecific()