public interface Generalization extends DirectedRelationship
The following features are supported:
UMLPackage.getGeneralization()
Modifier and Type | Method and Description |
---|---|
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 |
MDWEList<GeneralizationSet> |
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.
|
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
compareTo, eExtendedClass, eIsInstanceOf, eIsInstanceOf, eIsProfiled, eIsRemoved, eMetamodel, eMetaTypeName, eModel, eRemove, eSetUniqueID, eUniqueID, superScript, superScript, toBoolean, toBoolean, toByte, toByte, toChar, toChar, toDouble, toDouble, toFloat, toFloat, toInt, toInt, toList, toList, toList, toList, toList, toLong, toLong, toObject, toObject, toSet, toSet, toShort, toShort, toString, toString
getEAnnotation, getEAnnotations
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
boolean isSubstitutable()
isSetIsSubstitutable()
,
unsetIsSubstitutable()
,
setIsSubstitutable(boolean)
,
UMLPackage.getGeneralization_IsSubstitutable()
void setIsSubstitutable(boolean value)
Is Substitutable
' attribute.
value
- the new value of the 'Is Substitutable' attribute.isSetIsSubstitutable()
,
unsetIsSubstitutable()
,
isSubstitutable()
void unsetIsSubstitutable()
Is Substitutable
' attribute.
boolean isSetIsSubstitutable()
Is Substitutable
' attribute is
set.
unsetIsSubstitutable()
,
isSubstitutable()
,
setIsSubstitutable(boolean)
Classifier getGeneral()
setGeneral(Classifier)
,
UMLPackage.getGeneralization_General()
void setGeneral(Classifier value)
General
' reference.
value
- the new value of the 'General' reference.getGeneral()
MDWEList<GeneralizationSet> 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()
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
.getGeneralizationSets()
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
.getGeneralizationSets()
Classifier getSpecific()
Generalization
'.
References the specializing classifier in the Generalization relationship.
setSpecific(Classifier)
,
UMLPackage.getGeneralization_Specific()
,
Classifier.getGeneralizations()
void setSpecific(Classifier value)
Specific
' container reference.
value
- the new value of the 'Specific' container reference.getSpecific()
boolean validateGeneralizationSameClassifier(DiagnosticChain diagnostics, Map context)