public interface GeneralizationSet extends PackageableElement
The following features are supported:
UMLPackage.getGeneralizationSet()
SEPARATOR
Modifier and Type | Method and Description |
---|---|
Generalization |
getGeneralization(Classifier general)
Retrieves the first
Generalization with the specified 'General' from the '
Generalization' reference list |
MDWEList<Generalization> |
getGeneralizations()
Returns the value of the 'Generalization' reference list.
|
Classifier |
getPowertype()
Returns the value of the 'Powertype' reference.
|
boolean |
isCovering()
Returns the value of the 'Is Covering' attribute.
|
boolean |
isDisjoint()
Returns the value of the 'Is Disjoint' attribute.
|
void |
setIsCovering(boolean value)
Sets the value of the '
Is Covering ' attribute |
void |
setIsDisjoint(boolean value)
Sets the value of the '
Is Disjoint ' attribute |
void |
setPowertype(Classifier value)
Sets the value of the '
Powertype ' reference |
boolean |
validateGeneralizationSameClassifier(DiagnosticChain diagnostics,
Map context)
Every Generalization associated with a particular GeneralizationSet must have the same general Classifier.
|
boolean |
validateMapsToGeneralizationSet(DiagnosticChain diagnostics,
Map context)
The Classifier that maps to a GeneralizationSet may neither be a specific nor a general Classifier in any of the Generalization relationships
defined for that GeneralizationSet.
|
allNamespaces, allOwningPackages, createDependency, createNameExpression, getClientDependencies, getClientDependency, getClientDependency, getLabel, getLabel, getName, getNameExpression, getNamespace, getQualifiedName, getVisibility, isDistinguishableFrom, isSetName, isSetVisibility, separator, setName, setNameExpression, setVisibility, unsetName, unsetVisibility, validateHasNoQualifiedName, validateHasQualifiedName, validateVisibilityNeedsOwnership
getOwningTemplateParameter, getTemplateParameter, isCompatibleWith, isTemplateParameter, setOwningTemplateParameter, setTemplateParameter
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 isCovering()
"false"
.
Indicates (via the associated Generalizations) whether or not the set of specific Classifiers are covering for a particular general classifier.
When isCovering is true, every instance of a particular general Classifier is also an instance of at least one of its specific Classifiers for
the GeneralizationSet. When isCovering is false, there are one or more instances of the particular general Classifier that are not instances of
at least one of its specific Classifiers defined for the GeneralizationSet.
setIsCovering(boolean)
,
UMLPackage.getGeneralizationSet_IsCovering()
void setIsCovering(boolean value)
Is Covering
' attribute.
value
- the new value of the 'Is Covering' attribute.isCovering()
boolean isDisjoint()
"false"
.
Indicates whether or not the set of specific Classifiers in a Generalization relationship have instance in common. If isDisjoint is true, the
specific Classifiers for a particular GeneralizationSet have no members in common; that is, their intersection is empty. If isDisjoint is
false, the specific Classifiers in a particular GeneralizationSet have one or more members in common; that is, their intersection is not empty.
For example, Person could have two Generalization relationships, each with the different specific Classifier: Manager or Staff. This would be
disjoint because every instance of Person must either be a Manager or Staff. In contrast, Person could have two Generalization relationships
involving two specific (and non-covering) Classifiers: Sales Person and Manager. This GeneralizationSet would not be disjoint because there are
instances of Person which can be a Sales Person and a Manager.
setIsDisjoint(boolean)
,
UMLPackage.getGeneralizationSet_IsDisjoint()
void setIsDisjoint(boolean value)
Is Disjoint
' attribute.
value
- the new value of the 'Is Disjoint' attribute.isDisjoint()
Classifier getPowertype()
Powertype Extent
'.
Designates the Classifier that is defined as the power type for the associated GeneralizationSet.
setPowertype(Classifier)
,
UMLPackage.getGeneralizationSet_Powertype()
,
Classifier.getPowertypeExtents()
void setPowertype(Classifier value)
Powertype
' reference.
value
- the new value of the 'Powertype' reference.getPowertype()
MDWEList<Generalization> getGeneralizations()
Generalization
.
It is bidirectional and its opposite is 'Generalization Set
'.
Designates the instances of Generalization which are members of a given GeneralizationSet.
UMLPackage.getGeneralizationSet_Generalization()
,
Generalization.getGeneralizationSets()
Generalization getGeneralization(Classifier general)
Generalization
with the specified 'General' from the '
Generalization' reference list.
general
- The 'General' of the Generalization
to retrieve, or null
.Generalization
with the specified 'General', or null
.getGeneralizations()
boolean validateGeneralizationSameClassifier(DiagnosticChain diagnostics, Map context)
boolean validateMapsToGeneralizationSet(DiagnosticChain diagnostics, Map context)